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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What data type is the result of the following expression:'5 + 3.0'?
2. Which data type is used to store:TRUE
3. Which of the following is the correct way to create a list containing the values 4, 5, and 6?
4. Aturan apa yang harus diperhatikan dalam memberi nama variabel dalam Python?
5. When a value or text string entered in Interactive Mode it is immediately shown on the screen.
6. What is the name of the environment in Python that write your programs and then test them out?
7. What is the standard function used in Python to prompt the user to type in a value from the keyboard?
8. Write the output of the following code:s = None; s
9. How are statements terminated in Python and most text-based programming languages?
10. Which of the following will create a variable called 'temperature' and assign it the value $15^\circ$
11. What symbol would you use to add a comment to your code?
12. What will be the output of the following code? print(5 + 3 * 2)
13. An error in a code is called a-
14. Which is NOT a programming language.
15. What will be the output of the following code? name = input("Enter your name: ") print("Hello, '' + name)
16. Which of the following expressions will evaluate to False in Python?
17. What is the main advantage of using Python for web development?
18. The syntax in Python (TM) is one of the main advantages over other high level programming languages.
19. Adding strings together is called ..... & ..... is used in it
20. A mini programme used inside a larger programme
21. To show some text on the screen in Python we can use the ..... function:
22. What is the correct way to open the file file ..... in.txt for reading?
23. What are the two main types of loops in Python?
24. Which of the following is a string in Python?
25. How do you access the first element of a list named 'colours'?