This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 2 Introduction To Python – Quiz 54 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books 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 ..... A) Menghapus data penting. B) Menambahkan noise pada data. C) Membersihkan data dari ketidakkonsistenan. D) Menggabungkan data dari sumber berbeda. Show Answer Correct Answer: C) Membersihkan data dari ketidakkonsistenan. 2. What does 'len()' return? A) Length. B) Width. C) Height. D) Area. Show Answer Correct Answer: A) Length. 3. What is the result of 'math.sqrt(x)'? A) The largest integer not greater than x. B) The smallest integer not less than x. C) The square root of the value x. D) The constant Pi. Show Answer Correct Answer: C) The square root of the value x. 4. What is a nested loop? Provide an example. A) A loop that iterates over a single list. B) Example of a nested loop in Python:for i in range(3):for j in range(2):print(i, j). C) A loop that runs only once. D) A loop that does not contain any other loops. Show Answer Correct Answer: B) Example of a nested loop in Python:for i in range(3):for j in range(2):print(i, j). 5. Which of the following is a valid way to create a set in Python? A) Set = (). B) Set = set(). C) Set = []. D) Set = \{\}. Show Answer Correct Answer: B) Set = set(). 6. Which of the following is NOT a valid Python data type? A) String. B) Integer. C) Decimal. D) List. Show Answer Correct Answer: C) Decimal. 7. Which of the following is an integer (not a string)? A) "13 years old". B) 13. C) "Year 9". D) "13". Show Answer Correct Answer: B) 13. 8. Which of the following is the correct way to get an integer input from the user in Python? A) 'age = input("Enter your age: ")'. B) 'age = int(input("Enter your age: "))'. C) 'age = float(input("Enter your age: "))'. D) 'age = str(input("Enter your age: "))'. Show Answer Correct Answer: B) 'age = int(input("Enter your age: "))'. 9. Name = "Mr Gregson" print("Welcome", name)When this program is executed, what will be displayed on the screen? A) "Welcome", name. B) "Welcome", "Mr Gregson". C) Welcome Mr Gregson. D) Welcome name. Show Answer Correct Answer: C) Welcome Mr Gregson. 10. What type of error occurs if you try to print a variable named 'mesage' when you have only defined a variable named 'message'? A) ValueError. B) NameError. C) TypeError. D) SyntaxError. Show Answer Correct Answer: B) NameError. 11. What will be the output of the following code? "'pythonprint("Hello, World!") "' A) Hello World. B) "Hello, World!". C) Hello, World!. D) HelloWorld. Show Answer Correct Answer: C) Hello, World!. 12. What will the output be from the following code?print("Hello" + "world" + "today") A) Helloworldtoday. B) Hello world today. C) "Hello" "world" "today". D) SyntaxError. Show Answer Correct Answer: A) Helloworldtoday. 13. What command would you use to change the turtle's speed? A) Turtle.speed(). B) Turtle.setSpeed(). C) Turtle.changeSpeed(). D) Turtle.adjustSpeed(). Show Answer Correct Answer: A) Turtle.speed(). 14. Which of the following is a Python command word used to indicate we want to work with DECIMAL numbers A) Input. B) Int. C) Float. D) Print. Show Answer Correct Answer: C) Float. 15. Which data type in Python is immutable? A) List. B) Ductionary. C) Tuple. D) Set. Show Answer Correct Answer: C) Tuple. 16. The opposite of True is: A) 1. B) False. C) None. D) Zero. Show Answer Correct Answer: B) False. 17. Which of the following is a facet of data? A) Structured. B) Unstructured. C) Semi-structured. D) All of the above. Show Answer Correct Answer: D) All of the above. 18. Python uses the traditional ..... character set. A) MSIIC. B) DCCIS. C) ASCII. D) PSCII. Show Answer Correct Answer: C) ASCII. 19. You must import the Random library so the random functions can work A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 20. What does the input() function do in Python? A) Executes a block of code. B) Displays a message on the screen. C) Pauses and waits for user input. D) Saves data to a file. Show Answer Correct Answer: C) Pauses and waits for user input. 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 A) C, d. B) A, e. C) B, c, d. D) A, c. Show Answer Correct Answer: B) A, e. 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? A) Player score. B) Player Score. C) Player Score. D) Any of these will work. E) None of these will work. Show Answer Correct Answer: E) None of these will work. 23. What is the main purpose of the Turtle Library? A) Generate random numbers. B) Create user interfaces. C) Explore the behavior of turtles in nature. D) Aid in understanding graphic programming concepts. Show Answer Correct Answer: D) Aid in understanding graphic programming concepts. 24. What will be the result of the following import statement?import module ..... name as mod A) You can access module name using the alias mod. B) You import only the module name attribute. C) You create a new module mod with module name. D) You define a function mod within module name. Show Answer Correct Answer: A) You can access module name using the alias mod. 25. A named memory location used to store values in computer is a ..... A) Casting. B) String. C) Variable. D) Hard Drive Disk. Show Answer Correct Answer: C) Variable. ← PreviousNext →Related QuizzesClass 11 Computer Science Chapter 2 Introduction To Python Quiz 1Class 11 Computer Science Chapter 2 Introduction To Python Quiz 2Class 11 Computer Science Chapter 2 Introduction To Python Quiz 3Class 11 Computer Science Chapter 2 Introduction To Python Quiz 4Class 11 Computer Science Chapter 2 Introduction To Python Quiz 5Class 11 Computer Science Chapter 2 Introduction To Python Quiz 6Class 11 Computer Science Chapter 2 Introduction To Python Quiz 7Class 11 Computer Science Chapter 2 Introduction To Python Quiz 8Class 11 Computer Science Chapter 2 Introduction To Python Quiz 9Class 11 Computer Science Chapter 2 Introduction To Python Quiz 10 🏠 Back to Homepage 📘 Download PDF Books 📕 Premium PDF Books