Online Test for Python

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

  1. What is a Python Virtual Machine (PVM)?
    runtime engine of Python that compiled your compiled byte code
    runtime engine of Python that interprets your compiled byte code
    runtime engine of Python that convert source code into byte code
    None of the above


  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. What is the extension of the Python byte code file?
    .py
    pyc
    .pyd
    None of the above

  1. Which of the following core types in Python is considered immutable?
    Lists
    Dictionaries
    Strings
    Sets

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


  1. Python is
    Interpreter Programming language
    Compiled programming language
    Interpreter and Compiled programming language
    None of the above

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

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

  1. Immutability can be used to guarantee that an object remains constant throughout your program.
    True
    False

Post Your Question
Social Sharing
Search