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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Tahap data cleansing berarti .....
2. What does 'len()' return?
3. What is the result of 'math.sqrt(x)'?
4. What is a nested loop? Provide an example.
5. Which of the following is a valid way to create a set in Python?
6. Which of the following is NOT a valid Python data type?
7. Which of the following is an integer (not a string)?
8. Which of the following is the correct way to get an integer input from the user in Python?
9. Name = "Mr Gregson" print("Welcome", name)When this program is executed, what will be displayed on the screen?
10. What type of error occurs if you try to print a variable named 'mesage' when you have only defined a variable named 'message'?
11. What will be the output of the following code? "'pythonprint("Hello, World!") "'
12. What will the output be from the following code?print("Hello" + "world" + "today")
13. What command would you use to change the turtle's speed?
14. Which of the following is a Python command word used to indicate we want to work with DECIMAL numbers
15. Which data type in Python is immutable?
16. The opposite of True is:
17. Which of the following is a facet of data?
18. Python uses the traditional ..... character set.
19. You must import the Random library so the random functions can work
20. What does the input() function do in Python?
21. Identify the below expressions which would result in False?a) False and True b) 1==1 or 2==1c) 1==1 and 2!=1 d) True and 1==1 e) False or 1>2
22. You've created a variable to keep track of a player's score in your video game named:player ..... scoreWhich variable can be typed into your program in order to use it?
23. What is the main purpose of the Turtle Library?
24. What will be the result of the following import statement?import module ..... name as mod
25. A named memory location used to store values in computer is a .....