SMG Testing System › MCQs › 10th class Computer Science and Entrepreneurship › Chapter 3

10th class Computer Science and Entrepreneurship, Chapter 3: Introduction to Python Programming MCQs

20 of 129 multiple-choice questions, with the correct answer in green.

1. Which of the following steps is NOT part of the basic programming process?

  1. (A) Write Code
  2. (B) Compile/Interpret
  3. (C) Execute
  4. (D) Ignore Errors ✓

2. What should you do when installing Python to run it from the command line more easily?

  1. (A) Uncheck "Add Python to PATH"
  2. (B) Choose a different IDE
  3. (C) Check "Add Python to PATH" ✓
  4. (D) Install only the IDE

3. What will be the output of: print(10 // 3)?

  1. (A) 3.333
  2. (B) 3 ✓
  3. (C) 1
  4. (D) 4

4. What does the input() function return?

  1. (A) Integer
  2. (B) Float
  3. (C) String ✓
  4. (D) Boolean

5. Which operator has the highest precedence in Python?

  1. (A) Addition (+)
  2. (B) Multiplication (*)
  3. (C) Exponentiation (**)
  4. (D) Parentheses () ✓

6. What is the result of 5 > 3 and 2 < 1?

  1. (A) True
  2. (B) False ✓
  3. (C) Error
  4. (D) None

7. What does the += operator do?

  1. (A) Adds two numbers
  2. (B) Compares values
  3. (C) Adds and assigns ✓
  4. (D) Multiplies values

8. Which function converts string to integer?

  1. (A) str()
  2. (B) int() ✓
  3. (C) float()
  4. (D) input()

9. What is the output of the below code? age = 25 print("Age:", age)

  1. (A) Age: 25 ✓
  2. (B) 25
  3. (C) Age
  4. (D) age

10. Which symbol is used for comments in Python?

  1. (A) //
  2. (B) /*
  3. (C) # ✓
  4. (D) --

11. ________ is the process of creating a set of instructions for a computer to perform a task.

  1. (A) Programming ✓
  2. (B) Debugging
  3. (C) Compiling
  4. (D) Executing

12. Python is a ________ programming language.

  1. (A) Low-level
  2. (B) High-level ✓
  3. (C) Machine-level
  4. (D) Assembly-level

13. ________ refers to the process of preparing a computer to write, run and debug Python programs.

  1. (A) Development environment ✓
  2. (B) Software compilation
  3. (C) Code debugging
  4. (D) System administration

14. IDE stands for:

  1. (A) Internal Device Editor
  2. (B) Integrated Development Environment ✓
  3. (C) Internet Data Engine
  4. (D) Input Device Environment

15. Which of the following is NOT an IDE?

  1. (A) PyCharm
  2. (B) VS Code
  3. (C) Google Chrome ✓
  4. (D) IDLE

16. Which of the following is a Python IDE included with Python?

  1. (A) PyCharm
  2. (B) IDLE ✓
  3. (C) Google Chrome
  4. (D) VS Code

17. PyCharm is developed by:

  1. (A) Microsoft
  2. (B) JetBrains ✓
  3. (C) Google
  4. (D) Apple

18. What is the extension of a Python file?

  1. (A) .py ✓
  2. (B) .ppt
  3. (C) .exe
  4. (D) .js

19. Which button is used to execute code in PyCharm/IDLE?

  1. (A) Go
  2. (B) Execute
  3. (C) Run ✓
  4. (D) Start

20. Which key is commonly used to run code in VS Code?

  1. (A) F1
  2. (B) F2
  3. (C) F5 ✓
  4. (D) F10
Teacher? Make a full exam paper with solutions from this chapter in minutes. Register free.
Student? Practise every question of the book inside the app: join your class.