Class 11 Computer Science Chapter 2 Introduction To Python Quiz 30 (60 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. What are the rules for naming variables?
2. What does string concatenation mean?
3. Which of the following is used to handle exceptions in Python?
4. What is the correct extension of a Python file?
5. In which of the following mode, the interpreter executes the statement and displays the result as soon as we press 'Enter' key?
6. Look at the code below and identify which of the statements below are true:for loopCounter in range(10, 101, 10):print(loopCounter)
7. Which of the following is a command to have a message appear on the screen?
8. What does the following code print? "'pythonx = 5if x > 3:print("High")else:print("Low") "'
9. What's the output of the below code?D = {1:1, 2:'2', '1':1, '2':3} D['1'] = 2print(D[D[D[str(D[1])]]])
10. Which of the following functions display an output to the screen?
11. What does the following code output? 'print("Bananas", 3, "Peaches", sep="-")'
12. How do you create a string in Python?
13. Comments are executable statement in Python
14. Course Objective:The course aims to appraise the need for working with various documents like ..... , PDF, Word and Others.
15. How to call a method?
16. What is one of the objectives of the 'Introduction to Python Programming' course?
17. What is the correct way to declare a list in Python?
18. Data Science bertanggung jawab untuk .....
19. What data type is used for decimal numbers in Python?
20. Which of the following is an exponent operator?
21. What should you do to keep a running total of numbers in a for loop?
22. How many pixels does Tracy move forward before drawing another circle?
23. Which function shows the largest value?
24. Python can be used to build
25. What if the colour entered is NOT red?colour = input( "Enter the trafficlight colour" )if colour == "Red" :print "Stop" else:print "Go"
26. What is the purpose of the command "import turtle" in Python?
27. What will be the output of the following code?num1 = "30"num2 = "80"print(num1 + num2)
28. The term which describes the rules that govern a computer language, how it is structured and written.
29. Which keyword is used to create a function in Python?
30. What will the following code print?for i in range(3):if i == 1:continueprint(i)
31. Which of the following is used to get the remainder of a division in Python?
32. How do you write an else statement in Python?
33. What is the purpose of the 'pass' statement in Python?
34. Which value is a Float data type?
35. What is the purpose of the 'pendown()' subprogram in the turtle library?
36. What will the following code print? "'pythonx = 4if x > 2:print("A")else:print("B") "'
37. Kako se deklarira varijabla u Pythonu?
38. Print("What's your favourite food?") food = input() print("I've never tried", food)When this program is executed, what will be displayed on the screen, as a result of executing line 3?
39. What is the purpose of the task:distance = user INPUT(), time = user INPUT(), speed = distance / time, OUTPUT:The speed of travel is + speed + m/s?
40. "True" is an example of what data type?
41. Which operator is used to concatenate two strings in Python?
42. What is a module in Python?
43. Who is the creator of Python?
44. What is an error in Python?
45. What symbol is used to create a dictionary in Python?
46. Which of the following statements is true about comments in Python?
47. X, y=3, 7print(x, y)
48. Keyword check:In the statement age = 13, what is the identifier?
49. Which function takes a users input
50. How do you make the turtle draw a circle?
51. A code that does a specific task is called a-
52. What is a Series in Pandas?
53. Which method is used to start the Tkinter event loop?
54. What does the 'break' statement do in a loop?
55. Computers understand the language of 0s and 1s which is called .....
56. Which programming language uses visual block coding?
57. What type of loop is most appropriate to use when you know exactly how many times you want the code block to execute (e.g., iterating through a list or using a range)?
58. Which of the following best describes a programming language?
59. What is the result of the expression 15 / 3 in Python?
60. Num = 90Num = 20print(Num)