Online Test for Python

  1. Which of the following core types in Python is considered mutable?
    Numbers
    Strings
    Tuples
    Lists

  1. When execute Python program, Python first compiles source code(file statement) into a format known as pseudo code.
    True
    False


  1. Which of the following is NOT an area where Python is commonly used?
    Web development (server-side)
    Software development
    Mathematics
    Graphic design

  1. Python automatically stores byte code in files with a .pyc extension.
    True
    False

  1. How to start an interactive interpreter session in python?
    python interactive
    python
    python script.py
    None of the above

  1. Which of the following is not a valid data type in Python?
    character
    list
    dictionary
    set


  1. What is the extension of the Python byte code file?
    .py
    pyc
    .pyd
    None of the above

  1. An “immutable” object is an object that can be changed after it is created.
    True
    False

  1. which of the following is immutable core data type of python?
    Numbers, Strings, and Lists
    Numbers, Dictionary, and Tuples
    List, Strings, and Tuples
    Numbers, Strings, and Tuples

  1. In which year was the Python programming language released?
    1995
    1991
    2000
    2005

Post Your Question
Social Sharing
Search