Skip to content

Category Archives: Python-Quizzes

Question 11: What is the output of the following program? (A) TypeError (B) (1, 5, 3, 4) (C) 1 TypeError (D) 6 Answer: (D) Explanation:… Read More
Question 10: What is the output of the following program? (A) 0 2 3 10 (B) 32 34 35 42 (C) 48 64 72 128… Read More
Question 9: What is the output of the following program? (A) [66, 97, 99, 101] (B) [66, 68, 70, 72] (C) [66, 67, 68, 69]… Read More
Question 8: What is the output of the following program? (A) [6.222e-04, ‘aboy’, True, 641] (B) [6.2202, ‘aboy’, 1, 641] (C) TypeError (D) [6.2202, ‘aboy’,… Read More
Question 8: What is the output of the following program? (A) (‘g’, ‘*’, ‘*’, ‘k’, ‘s’) (B) (‘g’, ‘e’, ‘e’, ‘k’, ‘s’) (C) (‘geeks’, ‘*’,… Read More
Prerequisite: Dictionaries in PythonThese question sets will make you conversant with Dictionary Concepts in Python programming language. Question 1: Which of the following is true… Read More
Question 7: What is the output of the following program? (A) 12 (B) 11 (C) 11.001199999999999 (D) TypeError Answer: (B) Explanation: Integer value of 2e-04(0.0002)… Read More
Question 6: What is the output of the following program? (A) (‘g’, ‘*’, ‘*’, ‘k’, ‘s’) (B) (‘g’, ‘e’, ‘e’, ‘k’, ‘s’) (C) (‘geeks’, ‘*’,… Read More
Question 5: What is the output of the following program? (A) Unexpected (B) 3Check (C) CheckCheckCheck (D) Syntax Error Answer: (C) Explanation: Here (“Check”) will… Read More
Question 4: What is the output of the following program? (A) (1, 2, 3, 1, 2, 3) (B) (1, 2, 3, 4, 5, 6) (C)… Read More
Question 3: What is the output of the following program? (A) Error (B) True (C) False (D) Unexpected Answer: (C) Explanation: In this case elements… Read More
Question 2: What is the output of the following program? (A) 30 (B) 31 (C) 32 (D) 33 Answer: (D) Explanation: Tuples can be used… Read More
Question 1: What is the output of the following program? (A) 1 (B) 2 (C) 5 (D) Error Answer: (D) Explanation: In this case, an… Read More
Question 11: What is the output of the following program? (A) {4, 5, 6, 7, 10, 11} (B) {4, 5, 10, 11} (C) {4, 5,… Read More
Question 10: What is the output of the following program? (A) {1, 2, 4, 4, 3, 3, 3, 6, 5} (B) {1, 2, 3, 4,… Read More