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

Quiz Instructions

Select an option to see the correct answer instantly.

1. ..... is used to define a block of code in programming.
2. What will print(3 + 2) show?
3. What will be printed by the following code? "'pythonlength = 10width = 5print(length * width) "'
4. How do you access the third element in a list called 'colours'?
5. What is one of the goals defined by Guido van Rossum for Python's code?
6. What colour is the information that is that is displayed in the shell?
7. What does the relational operator '<=' represent?
8. All keywords in Python are in lower case (T/F).
9. Is python an object oriented language?
10. An expression can often be evaluated as true or false, for instance print(10>9) would return as true. What is this an example of?
11. What is a correct syntax to get output as "Hello World" in Python?
12. How do you specify a default value for an argument in a function?
13. What is Python
14. The operator < means
15. Which of the following would be an example of an integer variable:
16. You can declare string variables with single or double quotes.x = "John"# is the same asx = 'John'
17. Which one is a correct way to get user input?
18. What is the output of print(type(5)) in Python?
19. What is the purpose of the 'def' keyword in Python?
20. How do you take input from a user in Python?
21. Python is named after:
22. Which of the following is NOT a common application of Python?
23. Why data analysis is important?
24. No, a function can only have one return statement
25. What is the result of the following operation:$10 / 4$