Class 11 Computer Science Chapter 2 Introduction To Python Quiz 15 (25 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is a syntax error in Python?
2. What is an if statement in Python?
3. Which of the following is a valid string in Python?
4. What is the result of 10 % 3?
5. What will print(10 // 3) output?
6. Input() function takes the input from the user and always returns it as a:
7. What is the result of the expression 10-4 in Python?
8. Which is the correct syntax?
9. What does the following code do? myAge = int (myAge)
10. What is the value of 'result' after the following code is executed? "'pythonresult = 15-4 "'
11. The term which describes errors in a programme which are due to the programmers algorithm and calculations being wrong
12. What symbol is used to join (concatenate) variables in Python?
13. Read the Python program below:print(a, b)b = 42a = 13When this program is executed, what will be displayed on the screen?
14. Which of the following statements about variables in Python is TRUE?
15. What is the backdrop area called in Scratch?
16. After converting a tuple to a list for editing, which operation is appropriate before restoring immutability?
17. What are syntax errors in programming?
18. What is a string in programming?
19. The term which describes identifying errors in a programme and fixing them
20. What is a program in computer science?
21. What happens if you use else with a for loop?
22. Which one checks if something is true?
23. Which of the following is a method of a list in Python?
24. Which of the following is a Python command word used to indicate we want to work with WHOLE numbers/Integers
25. What is wrong with this line of code?print("Hi)