Python Objective Questions - Set 2
Set 2 of 3
Question: 21
(A) Depends on operators
(B) Left to Right
(C) Right to Left
(D) Depends on Python Compiler
Level: Beginner Category of MCQ: operators
Question: 22
(A) 17
(B) 2
(C) 0
(D) None of these
Level: Beginner Category of MCQ: operators
Question: 23
(A) //
(B) %
(C) /
(D) None of the above
Level: Beginner Category of MCQ: operators
Question: 24
(A) print('cppbuzz-' + 'chicago');
(B) print('cppbuzz' + '-chicago');
(C) print('cppbuzz' + '-' + 'chicago');
(D) All of the above
Level: Beginner Category of MCQ: operators
Question: 25
(A) Class
(B) List
(C) Tuple
(D) Dictionary
Level: Beginner Category of MCQ: variables
Question: 26
(A) Tuple
(B) Array
(C) Dictionary
(D) List
Level: Practitioner Category of MCQ: variables
Question: 27
(A) Yes
(B) No
Level: Practitioner Category of MCQ: methods
Question: 28
(A) uzz
(B) cpp
(C) buzz
(D) cppb
Level: Beginner Category of MCQ: variables
Question: 29
(A) 0
(B) 1
(C) 2
(D) 0.5
Level: Beginner Category of MCQ: variables
Question: 30
(A) 13
(B) 2
(C) 15
(D) None of these
Level: Beginner Category of MCQ: variables
Question: 31
(A) Class
(B) List
(C) Dictionary
(D) Tuple
Level: Beginner Category of MCQ: classesAndobjects
Question: 32
(A) “%d/%m/%Y”
(B) “%d/%M/%y”
(C) “%D/%M/%Y”
(D) “%d/%m/%y”
Level: Practitioner Category of MCQ: regularexpressions
Question: 33
Level: Beginner Category of MCQ: other
Question: 34
(A) outfile = open(file = “c:cppbuzz.txt”, “o”)
(B) outfile = open(“c:cppbuzz.txt”, “r”)
(C) outfile = open(“c:cppbuzz.txt”, “w”)
(D) outfile = open(“c:cppbuzz.txt”, “r”)
Level: Practitioner Category of MCQ: filehandling
Question: 35
(A) Error
(B) 25
(C) None
(D) 2
Level: Practitioner Category of MCQ: arrays
Question: 36
(A) abc = 1,000,000
(B) a b c = 1000 2000 3000
(C) a,b,c = 1000, 2000, 3000
(D) a_b_c = 1,000,000
Level: Expert Category of MCQ: variables
Question: 37
(A) 32 characters
(B) 63 characters
(C) 79 characters
(D) None of the above
Level: Beginner Category of MCQ: variables
Question: 38
Level: Practitioner Category of MCQ: other
Question: 39
Level: Practitioner Category of MCQ: arrays
Question: 40
Level: Practitioner Category of MCQ: other