Python Quiz for Beginners. 0% 0 Oops! Time up! Python programming Python Basic Quiz This Quiz for beginners. You can enhance and check your knowledge in python after attending this quiz. Login Here. NameEmail 1 / 50 Category: Output Based Questions 1. print(type(3.14)) a. decimal b. int c. float 2 / 50 Category: Output Based Questions 2. print(type("10")) a. float b. int c. string 3 / 50 Category: Output Based Questions 3. print(10 == 10) a. 10 b. True c. False d. Error 4 / 50 Category: Output Based Questions 4. print(5 + 3) a. 8 b. Error c. None d. 53 5 / 50 Category: Output Based Questions 5. print("Hello" + "World") a. HelloWorld b. Error c. Hello World d. Hello+World 6 / 50 Category: Output Based Questions 6. x = 10 print(x) a. x b. 0 c. Error d. 10 7 / 50 Category: Output Based Questions 7. x = 5 x += 3 print(x) a. Error b. 5 c. 8 d. 2 8 / 50 Category: Output Based Questions 8. print(bool(0)) a. True b. 0 c. Error d. False 9 / 50 Category: Output Based Questions 9. print("Python"[0]) a. Error b. Python c. P d. y 10 / 50 Category: Output Based Questions 10. print(len("Python")) a. 6 b. 5 c. 7 d. 8 11 / 50 Category: Output Based Questions 11. print(5 % 2) a. 2 b. Error c. 0 d. 1 12 / 50 Category: Output Based Questions 12. print(2 ** 3) a. 9 b. 8 c. 6 d. Error 13 / 50 Category: Output Based Questions 13. a = [1,2,3] print(len(a)) a. Error b. 2 c. 3 d. 1 14 / 50 Category: Output Based Questions 14. print(10 > 5) a. Error b. False c. True d. 10 15 / 50 Category: Output Based Questions 15. print(10 / 2) a. 5 b. Error c. 2 d. 5.0 16 / 50 Category: True / False 1. Python supports object-oriented programming. a. False b. True 17 / 50 Category: True / False 2. while loop executes at least once. a. True b. False 18 / 50 Category: True / False 3. Python code runs faster than C language. a. False b. True 19 / 50 Category: True / False 4. Python supports multiple inheritance. a. True b. False 20 / 50 Category: True / False 5. Tuples are mutable data types. a. True b. False 21 / 50 Category: True / False 6. None represents absence of a value. a. True b. False 22 / 50 Category: True / False 7. print() is used for input in Python. a. False b. True 23 / 50 Category: True / False 8. = is a comparison operator in Python. a. True b. False 24 / 50 Category: True / False 9. Python is case-sensitive. a. False b. True 25 / 50 Category: True / False 10. Indentation is mandatory in Python. a. True b. False 26 / 50 Category: Fill in the Blanks 1. The multiplication operator in Python is __________. a. % b. x c. X d. * 27 / 50 Category: Fill in the Blanks 2. __________ is used to exit a loop in Python. a. stop b. end c. break d. exit 28 / 50 Category: Fill in the Blanks 3. Python is a __________ level programming language. a. High b. Assembly c. Low d. Machine 29 / 50 Category: Fill in the Blanks 4. __________ function returns the length of a list. a. length() b. len() c. count() d. size() 30 / 50 Category: Fill in the Blanks 5. The symbol used for comments in Python is __________. a. /**/ b. // c. # d. <!-- --> 31 / 50 Category: Fill in the Blanks 6. The output of print(type(10)) is __________. a. int b. number c. integer 32 / 50 Category: Fill in the Blanks 7. Python was created by __________. a. Bjarne Stroustrup b. Dennis Ritchie c. James Gosling d. Guido van Rossum 33 / 50 Category: Fill in the Blanks 8. Lists in Python are enclosed within __________ brackets. a. {} b. () c. [] 34 / 50 Category: Fill in the Blanks 9. __________ is used to take input from the user in Python. a. input() b. read() c. scan() d. get() 35 / 50 Category: Fill in the Blanks 10. __________ keyword is used to check a condition in Python. a. if b. while c. check d. for 36 / 50 Category: Fill in the Blanks 11. Python is an __________ language. a. Assembled b. Binary c. Compiled d. Interpreted 37 / 50 Category: Fill in the Blanks 12. Python is a __________ typed language. a. Dynamically b. Strongly c. Statically d. Weakly 38 / 50 Category: Fill in the Blanks 13. The correct file extension for Python files is __________. a. .python b. .pyt c. .pt d. .py 39 / 50 Category: Fill in the Blanks 14. The value of True in Python is __________. a. 1 b. true c. 0 d. True 40 / 50 Category: Fill in the Blanks 15. The keyword used to define a function in Python is __________. a. fun b. define c. function d. def 41 / 50 Category: Syntax & Errors 1. int("abc") a. ValueError b. TypeError c. abc d. 0 42 / 50 Category: Syntax & Errors 2. if 5 > 3 print("Yes") a. Syntax Error b. Logical Error c. Indentation Error d. No Error 43 / 50 Category: Syntax & Errors 3. a = [1,2,3] print(a[5]) a. 3 b. IndexError c. KeyError d. None 44 / 50 Category: Syntax & Errors 4. print(x) a. x is printed b. NameError c. 0 d. SyntaxError 45 / 50 Category: Syntax & Errors 5. for i in range(5) print(i) a. Syntax Error b. Name Error c. No Error d. Type Error 46 / 50 Category: Syntax & Errors 6. print(10 / 0) a. infinity b. 0 c. SyntaxError d. ZeroDivisionError 47 / 50 Category: Syntax & Errors 7. print(unknown) a. NameError b. 0 c. SyntaxError d. unknown 48 / 50 Category: Syntax & Errors 8. list = 10 print(list[0]) a. 0 b. IndexError c. TypeError d. 1 49 / 50 Category: Syntax & Errors 9. print("Hello) a. Name Error b. Value Error c. No Error d. Syntax Error 50 / 50 Category: Syntax & Errors 10. def fun(): print("Hi") a. Indentation Error b. Syntax Error c. Name Error d. No Error Your score isThe average score is 0% 0% Restart quiz Rate the Quiz. Thank You For Rating Us! Send feedback Like this: Table of Contents ToggleLike this: Like Loading...Share post Please Share This Share this content Opens in a new window Opens in a new window Opens in a new window Opens in a new window Read more articles Previous PostLearn Python: A Comprehensive Guide for Beginners Next PostPython List Datatype Quiz Prajjwal Singh Tech Blogger || Web developer || Computer Networking Enthusiast || Microsoft SQL Database Management Expert || Software Debugger || Learned DOS OS Structure You Might Also Like Working with Math Module of Python April 27, 2023 Conditional Construct In Python October 30, 2023 Python Fundamentals: Beginners concepts September 17, 2022 Leave a ReplyCancel reply