Online Test for Python

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

  1. Which of the following operating systems does Python run on?
    Mac OS X only
    Mac OS X, Windows only
    Mac OS X, Windows, Linux only
    Mac OS X, Windows, Linux, and Unix only


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

  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 core types in Python is considered immutable?
    Lists
    Dictionaries
    Strings
    Sets

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

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

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

Post Your Question
Social Sharing
Search