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?
- (A) Write Code
- (B) Compile/Interpret
- (C) Execute
- (D) Ignore Errors ✓
2. What should you do when installing Python to run it from the command line more easily?
- (A) Uncheck "Add Python to PATH"
- (B) Choose a different IDE
- (C) Check "Add Python to PATH" ✓
- (D) Install only the IDE
3. What will be the output of: print(10 // 3)?
- (A) 3.333
- (B) 3 ✓
- (C) 1
- (D) 4
4. What does the input() function return?
- (A) Integer
- (B) Float
- (C) String ✓
- (D) Boolean
5. Which operator has the highest precedence in Python?
- (A) Addition (+)
- (B) Multiplication (*)
- (C) Exponentiation (**)
- (D) Parentheses () ✓
6. What is the result of 5 > 3 and 2 < 1?
- (A) True
- (B) False ✓
- (C) Error
- (D) None
7. What does the += operator do?
- (A) Adds two numbers
- (B) Compares values
- (C) Adds and assigns ✓
- (D) Multiplies values
8. Which function converts string to integer?
- (A) str()
- (B) int() ✓
- (C) float()
- (D) input()
9. What is the output of the below code? age = 25 print("Age:", age)
- (A) Age: 25 ✓
- (B) 25
- (C) Age
- (D) age
10. Which symbol is used for comments in Python?
- (A) //
- (B) /*
- (C) # ✓
- (D) --
11. ________ is the process of creating a set of instructions for a computer to perform a task.
- (A) Programming ✓
- (B) Debugging
- (C) Compiling
- (D) Executing
12. Python is a ________ programming language.
- (A) Low-level
- (B) High-level ✓
- (C) Machine-level
- (D) Assembly-level
13. ________ refers to the process of preparing a computer to write, run and debug Python programs.
- (A) Development environment ✓
- (B) Software compilation
- (C) Code debugging
- (D) System administration
14. IDE stands for:
- (A) Internal Device Editor
- (B) Integrated Development Environment ✓
- (C) Internet Data Engine
- (D) Input Device Environment
15. Which of the following is NOT an IDE?
- (A) PyCharm
- (B) VS Code
- (C) Google Chrome ✓
- (D) IDLE
16. Which of the following is a Python IDE included with Python?
- (A) PyCharm
- (B) IDLE ✓
- (C) Google Chrome
- (D) VS Code
17. PyCharm is developed by:
- (A) Microsoft
- (B) JetBrains ✓
- (C) Google
- (D) Apple
18. What is the extension of a Python file?
- (A) .py ✓
- (B) .ppt
- (C) .exe
- (D) .js
19. Which button is used to execute code in PyCharm/IDLE?
- (A) Go
- (B) Execute
- (C) Run ✓
- (D) Start
20. Which key is commonly used to run code in VS Code?
- (A) F1
- (B) F2
- (C) F5 ✓
- (D) F10
Student? Practise every question of the book inside the app: join your class.