This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 2 Introduction To Python – Quiz 69 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 2 Introduction To Python Quiz 69 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. Which of the following statements will correctly assign the value "blue" to a variable called 'colour'? A) 'colour = "blue"'. B) 'colour == "blue"'. C) '"blue" = colour'. D) 'colour:= "blue"'. Show Answer Correct Answer: A) 'colour = "blue"'. 2. What is the output of the following code? "'pythonprint(12 / 4) "' A) 3. B) 3.0. C) 4. D) 12. Show Answer Correct Answer: B) 3.0. 3. Which function is used to convert a float to a string in Python? A) Str(). B) FloatToString(). C) ConvertToString(). D) ToString(). Show Answer Correct Answer: A) Str(). 4. List items have an index number. In the following list, which item has the index number of 3?["John", "Harry", "Jesse", "John", "Harry", "Harry"] A) "John". B) "Harry". C) "Jesse". D) None of the above. Show Answer Correct Answer: A) "John". 5. What does the statement 'print' do? A) Output a hard copy of a program to a printer. B) Output a message on the screen. C) Print a hard copy of a flowchart to a computer. D) None of the above. Show Answer Correct Answer: B) Output a message on the screen. 6. TRUE or FALSE:Python is a high level language A) TRUE. B) FALSE. C) All the above. D) None of the above. Show Answer Correct Answer: A) TRUE. 7. Which of the following is a built-in data structure in Python? A) Array. B) Stack. C) List. D) Pointer. Show Answer Correct Answer: C) List. 8. Which programming concept is implemented in Python as per the course objectives? A) Object Oriented Programming. B) Functional Programming. C) Procedural Programming. D) Logic Programming. Show Answer Correct Answer: A) Object Oriented Programming. 9. What will be the output of the following code? "'pythonprint(7 + 3.5) "' A) 10.5. B) 10. C) 735. D) 7.35. Show Answer Correct Answer: A) 10.5. 10. Who might use Python to make websites? A) A gardener. B) A web developer. C) A chef. D) A driver. Show Answer Correct Answer: B) A web developer. 11. When you have an error in your code what is the term to summarise finding and fixing that error? A) Error checking. B) Debugging. C) Syntax finder. D) Error finder. Show Answer Correct Answer: B) Debugging. 12. Which of the following is immutable (values that cannot be changed)? A) List. B) Dictionary. C) Set. D) Tuple. Show Answer Correct Answer: D) Tuple. 13. What is one advantage of Python's syntax? A) Verbose code structure. B) Readability and simplicity of syntax. C) Lack of flexibility. D) Complexity in syntax. Show Answer Correct Answer: B) Readability and simplicity of syntax. 14. Suppose listExample is ['h', 'e', 'l', 'l', 'o']what is len(listExample)? A) 5. B) 4. C) None. D) Error. Show Answer Correct Answer: A) 5. 15. By default, the Python scripts are saved in ..... A) Desktop. B) D drive. C) Python installation folder. D) Document. Show Answer Correct Answer: C) Python installation folder. 16. Who developed Python programming? A) Guido Van Rossum in 1990s. B) Guido Ros Rossum in 1992s. C) Guido Van Rossum in 1992s. D) Guido Ray Rossum in 1995s. Show Answer Correct Answer: A) Guido Van Rossum in 1990s. 17. Which of the following is a valid way to create a dictionary in Python? A) Dict = \{key:value\}. B) Dict = [key:value]. C) Dict = (key:value). D) Dict =. Show Answer Correct Answer: A) Dict = \{key:value\}. 18. Can we add backdrops and sprites from the internet or our device? A) Yes. B) No. C) All the above. D) None of the above. Show Answer Correct Answer: A) Yes. 19. What will be the output of the following code? "'pythonprint("The temperature is", 20, "degrees Celsius.") "' A) The temperature is 20 degrees Celsius. B) The temperature is 20degrees Celsius. C) The temperature is20degrees Celsius. D) The temperature is, 20, degrees Celsius. Show Answer Correct Answer: A) The temperature is 20 degrees Celsius. 20. Which arithmetic operator would you use to find the product of two numbers? A) +. B) -. C) *. D) //. Show Answer Correct Answer: C) *. 21. Which of the following is used to check the identity of two objects in Python? A) =. B) ==. C) Is. D) In. Show Answer Correct Answer: C) Is. 22. Which of the following is a valid way to define a function in Python? A) MyFunc() = function. B) Create myFunc(). C) Def myFunc():. D) Function myFunc(). Show Answer Correct Answer: C) Def myFunc():. 23. Which of these is a string? A) 13. B) "Year 9". C) Age. D) =. Show Answer Correct Answer: B) "Year 9". 24. Variables in python are case sensitive? A) True. B) False. C) Not define. D) Can't say. Show Answer Correct Answer: A) True. 25. What does the keyboard shortcut CTRL+Z do? A) Cut. B) Copy. C) Undo. D) Save. Show Answer Correct Answer: C) Undo. ← 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