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

Quiz Instructions

Select an option to see the correct answer instantly.

1. How to call a method?
2. What is one of the objectives of the 'Introduction to Python Programming' course?
3. What is the correct way to declare a list in Python?
4. Data Science bertanggung jawab untuk .....
5. Which of the following is the correct way to implement a function named DivExp that takes two parameters a and b, returns c=a/b, asserts a>0, and raises an exception when b=0?
6. What data type is used for decimal numbers in Python?
7. Which of the following is an exponent operator?
8. What should you do to keep a running total of numbers in a for loop?
9. How many pixels does Tracy move forward before drawing another circle?
10. Which function shows the largest value?
11. Python can be used to build
12. What if the colour entered is NOT red?colour = input( "Enter the trafficlight colour" )if colour == "Red" :print "Stop" else:print "Go"
13. What is the purpose of the command "import turtle" in Python?
14. What will be the output of the following code?num1 = "30"num2 = "80"print(num1 + num2)
15. The term which describes the rules that govern a computer language, how it is structured and written.
16. Which keyword is used to create a function in Python?
17. What are comments in Python?
18. What will the following code print?for i in range(3):if i == 1:continueprint(i)
19. Which of the following is used to get the remainder of a division in Python?
20. How do you write an else statement in Python?
21. What is the purpose of the 'pass' statement in Python?
22. Which value is a Float data type?
23. What is the purpose of the 'pendown()' subprogram in the turtle library?
24. What will the following code print? "'pythonx = 4if x > 2:print("A")else:print("B") "'
25. Kako se deklarira varijabla u Pythonu?