Site icon CBSECS

Introduction to Python and program modes

Introduction to Python and program modes

Python Introduction & Modes Quiz | cbsecs.in

Python Introduction Quiz

History | Features | Interactive vs Script Mode

Part 1: History & General Features

1. Who developed the Python programming language?
  • Dennis Ritchie
  • Guido van Rossum
  • Bjarne Stroustrup
2. Python was released in which year?
  • 1989
  • 1991
  • 1995
3. Python is a _______ programming language.
  • Low-level
  • High-level
  • Machine-level
4. Which feature allows Python to run on different platforms like Windows, Linux, and Mac?
  • Scalability
  • Portability
  • Case-sensitivity
5. Python is ‘Interpreted’. This means:
  • It converts all code to binary at once
  • It executes code line-by-line
  • It doesn’t need an interpreter
6. Python is ‘Open Source’. What does this imply?
  • It is very expensive
  • Its source code is freely available to everyone
  • It can only be used on Windows
7. Python was named after:
  • A large snake
  • A comedy TV show (Monty Python)
  • The creator’s pet
8. Which of the following is NOT a feature of Python?
  • Easy to use
  • Compiled only
  • Expressive language
9. Python is ‘Case Sensitive’. What is the result of choosing ‘score’ vs ‘Score’?
  • They are the same
  • They are different identifiers
10. Large standard library support is a benefit of Python. This is often called:
  • Heavy Coding
  • Batteries Included
  • Plug and Play

Part 2: Execution Modes

11. Which mode is best for testing single lines of code instantly?
  • Interactive Mode
  • Script Mode
12. What is the prompt symbol in Interactive Mode?
  • >>>
  • ###
  • $$$
13. In which mode can you NOT save your commands for later use?
  • Script Mode
  • Interactive Mode
14. What is the file extension for a Python script?
  • .txt
  • .py
  • .exe
15. To create a new file in IDLE, you navigate to:
  • File -> New File
  • Edit -> New File
16. Which key is the shortcut to ‘Run’ a script in IDLE?
  • F1
  • F5
  • F10
17. Script mode is suitable for:
  • Quick one-line calculations
  • Developing large programs
18. What happens when you type 5 + 2 in Interactive mode?
  • It displays 7 immediately
  • It does nothing until you save
  • It gives an error
19. In Script Mode, to see the output of 5 + 2, you must use:
  • display() function
  • print() function
  • show() function
20. Which software environment comes bundled with Python for writing code?
  • Visual Studio
  • IDLE
  • Notepad++
CERTIFICATE OF ACHIEVEMENT

This award is presented to

Student Name

for completing the Python Introduction & Execution Modes Quiz

Score: 0 / 20

Exit mobile version