Online Test for Python

  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 a correct statement about Python programs?
    Python programs are composed of functions, loops, and objects.
    Python programs consist of variables, arrays, and objects.
    Python programs are divided into modules, statements, expressions, and objects.
    Python programs are made up of classes, methods, and expressions.


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

  1. Python has deep support of Object Oriented Programming (OOP)
    True
    False

  1. Which of the following is a loop in Python?
    for loop
    repeat loop
    until loop
    while loop

  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. An “immutable” object is an object that can be changed after it is created.
    True
    False

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

  1. Which of the following is a correct way to declare a variable in Python?
    int x = 5
    x = "hello"
    x := 5
    5 = x

Post Your Question
Social Sharing
Search