Online Test for Python

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


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

  1. What is the purpose of the "if" statement in Python?
    To create a loop
    To declare a variable
    To define a function
    To conditionally execute code

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

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


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

  1. Which individual created the Python programming language?
    Bill Gates
    Steve Jobs
    Van Rossum
    Dennis Ritchie

  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

Post Your Question
Social Sharing
Search