Any2Quiz
CBSE / 11 / Computer Science / Programming and Computational Thinking

Getting Started with Python Quiz - CBSE Class 11 Computer Science

Free practice quiz: Getting Started with Python (CBSE Class 11 Computer Science). 20 multiple-choice questions with answers and explanations. Play online, no sign-up needed.

Play all 20 questions free

Sample questions

  1. What is Python?

    1. A programming language
    2. An operating system
    3. A type of hardware
    4. A software application
    Show answer

    Answer: A. A programming language

    Python is a high-level, general-purpose programming language.

  2. How do you comment out a single line of code in Python?

    1. // This is a comment
    2. # This is a comment
    3. /* This is a comment */
    4. ' This is a comment'
    Show answer

    Answer: B. # This is a comment

    In Python, a single line comment is denoted by #.

  3. What is the output of `print(type(10))`?

    1. <class 'int'>
    2. <class 'str'>
    3. <class 'float'>
    4. <class 'bool'>
    Show answer

    Answer: A. <class 'int'>

    `type()` returns the data type of a variable or value.

  4. What is an infinite loop?

    1. A loop that never ends
    2. A loop that runs only once
    3. A loop that runs for a specific number of times
    4. A loop that is interrupted by an error
    Show answer

    Answer: A. A loop that never ends

    An infinite loop lacks a condition to terminate it.

  5. What is a tuple in Python and how does it differ from a list?

    1. A tuple is mutable, a list is immutable
    2. A tuple is immutable, a list is mutable
    3. Both are same
    4. Tuples are faster, lists are slower
    Show answer

    Answer: B. A tuple is immutable, a list is mutable

    Tuples are immutable (cannot be changed after creation), while lists are mutable.

Take the full quiz

More quizzes

Browse all Programming and Computational Thinking quizzes