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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Write the output of the following:a=8; def abc(a):print(a); abc(7)
2. Code for Hello, World!
3. What will the following code return? type([1, 2, 3])
4. Suppose d = \{ "john" :40, "peter" :45\}to delete the entry for "john" what command do we use?
5. The < ..... assignment operator in pseudocode is replaced by ..... in python
6. What is a syntax?
7. What will the following code output? print('Hello, ' + input('Enter your name:'))
8. What symbol is used to start a comment in Python?
9. Name one popular library in Python for machine learning.
10. What is one of the main reasons Python is popular among beginners?
11. What is the output of:print('Hi' + 'There')?
12. Fungsi dalam Python ditulis menggunakan kata kunci .....
13. What will be the output of the following code? "'pythonprint(type(3.5)) "'
14. Which of the following symbols is used to place a multiline comment?
15. What does forward(300) do?
16. How is computer science divided into strands?
17. What do we use to define a block of code in Python language?
18. What is the purpose of the else statement in a control structure?
19. You need to store GPS coordinates that should never change. Which Python data structure best fits this need?
20. What is Data Science?
21. Jenis data apa yang digunakan untuk menyimpan urutan karakter di Python?
22. Which of the following is a correct way to use the 'input()' function to ask for a user's name?
23. Which of the following is the correct way to call a function named 'greet'?
24. What should you do if you encounter an error message in Python?
25. What symbol is used to print something in Python?