Python Multile Choice Questions (Test 2) January 31, 2025September 6, 2024 by Naman 0% 36 Python Programming Python Multiple Choice Questions (Test 2) Python quiz helps us to increase our knowledge 1 / 20 Category: Python Programming 1. What will be the output after the following statements?x = 8y = 2print(x // y) A) 4.0 B) 4 C) 16 D) 16.0 2 / 20 Category: Python Programming 2. . A user-specified value can be assigned to a variable with this function ... A) user B) enter C) input D) value 3 / 20 Category: Python Programming 3. Comments in Python begin with ...? A) { B) % C) * D) # 4 / 20 Category: Python Programming 4. For which type of error does the interpreter runs the program and does notreport an error? A) Semantic Errors B) Syntax Errors C) Runtime Errors D) All type of errors 5 / 20 Category: Python Programming 5. User input is read as ...? A) Floating Decimal B) Text String C) Boolean Value D) . Integer 6 / 20 Category: Python Programming 6. Python files are saved with the extension as ...? A) .python B) .pe C) .py D) .pi 7 / 20 Category: Python Programming 7. Which of the following version of Python was released in December, 2015 byPython.org? A) 3.3 B) 3.5.1 C) .2.4 D) 2.6 8 / 20 Category: Python Programming 8. What will be the output after the following statements?x = 5y = 4print(x % y) A) 0 B) 20 C) 1.0 D) 1 9 / 20 Category: Python Programming 9. What is the name of the GUI that comes in-built as an interactive shell withPython? A) PGUI B) Pyshell C) IDLE D) PythonSh 10 / 20 Category: Python Programming 10. Which of the following will provide a * character as alternative line endingfor the print function? A) . end to * B) end as * C) end = '*' D) ending = '* 11 / 20 Category: Python Programming 11. What will be the output after the following statements?x = 6y = 3print(x / y) A) 2 B) 2.0 C) 18 D) 18.0 12 / 20 Category: Python Programming 12. Which of the following is used to initialize multiple variables with a commonvalue? A) x = y: y = 33 B) x = y = z = 33 C) x = z; y = z; x = 33; D) x & y & z = 33 13 / 20 Category: Python Programming 13. Output displayed by the print function will add this invisible character at theend of the line by default ... A) . t B) n C) s D) r 14 / 20 Category: Python Programming 14. Which of the following will provide an ! character as alternative separatorfor the print function? A) sep is ! B) separate = ! C) sep >> '!' D) sep = '!' 15 / 20 Category: Python Programming 15. 4. IDLE stands for ... ? A) Indigenous Development Lab B) . Integrated Development Environment C) . Integrated Development Local Environment D) Indie Developers Environment 16 / 20 Category: Python Programming 16. The function to display a specified message on the screen is ... ? A) print B) display C) run D) output 17 / 20 Category: Python Programming 17. Multiple values specified in parentheses to print function will display eachvalue separated with this by default ... A) Single Space B) Double Space C) A new Line D) Double Lines 18 / 20 Category: Python Programming 18. 6. For which type of error does the interpreter runs the program but halts aterror and reports the error as an "Exception"? A) Semantic error B) Syntax error C) Runtime error D) All type of errors 19 / 20 Category: Python Programming 19. Which of the following is an assignment operator in Python? A) . == B) . === C) >>> D) = 20 / 20 Category: Python Programming 20. For which type of error does the interpreter halts and reports the error butdoes not execute the program? A) Semantic error B) Syntax error C) Runtime error D) All type of errors Your score is LinkedIn Facebook VKontakte 0% Restart quiz Please rate this quiz See review Send feedback