This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 2 Introduction To Python – Quiz 68 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 2 Introduction To Python Quiz 68 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. Loop while akan berhenti ketika ..... A) Kondisi bernilai False. B) Nilai variabel mencapai 0. C) Dihentikan manual. D) Program selesai. Show Answer Correct Answer: A) Kondisi bernilai False. 2. What will be the output of the following code? "'pythonprint(5 + 3) "' A) 53. B) 8. C) 5 + 3. D) Error. Show Answer Correct Answer: B) 8. 3. How do you create a dictionary in Python? A) Using square brackets []. B) Using curly braces \{\}. C) Using angle brackets <>. D) Using parentheses (). Show Answer Correct Answer: B) Using curly braces \{\}. 4. Which statement best describes zip() when used on tuples of different lengths? A) Stops at the shortest tuple. B) Pads with None values. C) Repeats last element to match length. D) Raises a ValueError for mismatch. Show Answer Correct Answer: A) Stops at the shortest tuple. 5. ..... are special words that are used by Python interpreter to recognize thestructure of program. A) Tokens. B) Identifiers. C) Keywords. D) Operators. Show Answer Correct Answer: C) Keywords. 6. If you want to store multiple values in a single variable, which data type would you use? A) Float. B) List. C) Str. D) Int. Show Answer Correct Answer: B) List. 7. What is the output of the following code:print(3 * 'Python')? A) PythonPythonPythonPython. B) Python3Python3Python3. C) 3PythonPython. D) PythonPythonPython. Show Answer Correct Answer: D) PythonPythonPython. 8. Python can be used to design games and 3D graphics A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 9. Is the result of 9 + 4 * 2 A) 26. B) 28. C) 39. D) 17. Show Answer Correct Answer: D) 17. 10. Keyword check:In the statement age = 13, what is the value? A) Age. B) =. C) 13. D) Print. Show Answer Correct Answer: C) 13. 11. What word means creating instructions to solve a problem? A) Algorithm. B) Loop. C) Variable. D) Remix. Show Answer Correct Answer: A) Algorithm. 12. What do we call a loop within a loop? A) Nested loop. B) Multi-loop. C) Double loop. D) Forever loop. Show Answer Correct Answer: A) Nested loop. 13. Which mode would you typically use in Python to write larger programs and save them as .py files? A) Script mode. B) Interactive mode. C) Batch mode. D) Debug mode. Show Answer Correct Answer: A) Script mode. 14. The symbol for checking equality is: A) =. B) ==. C) !=. D) <>. Show Answer Correct Answer: B) ==. 15. Which keyword is used to skip the current iteration of a loop in Python? A) Pass. B) Continue. C) Skip. D) Break. Show Answer Correct Answer: B) Continue. 16. What is the result of 2 + 3 * 4 in Python? A) 20. B) 5. C) 14. D) 10. Show Answer Correct Answer: C) 14. 17. What will be the output of the following code snippet?print("Hello, World!") A) Hello, World!. B) "Hello, World!". C) Print("Hello, World!"). D) Error. Show Answer Correct Answer: A) Hello, World!. 18. Which symbol is used to print something in Python? A) @. B) Print. C) Echo. D) Show. Show Answer Correct Answer: B) Print. 19. Which translator converts a HLL program into machine language by converting and executing line by line A) Compiler. B) Interpreter. C) Assembler. D) All of these. Show Answer Correct Answer: B) Interpreter. 20. The integer and float data types are used to represent A) Text. B) Code. C) Bananas. D) Numbers. Show Answer Correct Answer: D) Numbers. 21. What is mentioned as the seed from which Python sprouted? A) The work of thousands of programmers. B) The continuous evolution of components. C) Guido van Rossum's initial idea. D) The spread of Python around the world. Show Answer Correct Answer: C) Guido van Rossum's initial idea. 22. The Boolean operator that returns true if EITHER of its operands are true A) And. B) Or. C) Not. D) Equal. Show Answer Correct Answer: B) Or. 23. For var1=input(); var2 = var1 + var1; print(var2). If the user enters 6, what is printed? A) 10. B) 66. C) 5. D) Error. Show Answer Correct Answer: B) 66. 24. What will be the output of the following Python code?x = ['ab', 'cd'] for i in x:i.upper() print(x) A) ['ab', 'cd']. B) ['AB', 'CD']. C) [none, none]. D) None of the mentioned. Show Answer Correct Answer: A) ['ab', 'cd']. 25. Who created Python and when was it released? A) James Gosling, 1995. B) Bjarne Stroustrup, 1985. C) Guido van Rossum, 1991. D) Dennis Ritchie, 1972. Show Answer Correct Answer: C) Guido van Rossum, 1991. ← 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