Class 12 Python Revision Tour 1 Quiz Preview 0% Python Revision Tour 1 Quiz Click here to learn basics of Python NameEmail 1 / 26 Which of the following cannot be a variable ? in var init no1 2 / 26 Which of the following is valid arithmetic operator in Python : / / and < ? 3 / 26 The expression 8/4/2 will evaluate equivalent to which of the following expression : 8/(4/2) (8/4)/2 4 / 26 The value of the expressions 4/(3*(4-2)) and 4/3*(4-2) is the same . False True 5 / 26 Which of the following expression results in an error ? float (‘12’) int(’12.5’) int (‘12’) float(’12.5’) 6 / 26 Which of the following operators can be used on numeric values ? % @ + # 7 / 26 Which of these is not a core data type ? Lists Tuples Dictionary Class 8 / 26 Which among the following list of operators has the highest precedence ?+, -, ** , % , / , << , >> | << | ** % 9 / 26 In a nested loop, a break statement terminates all the nested loops in one go. False True 10 / 26 Only if statement has else clause in Python. True False 11 / 26 What is the value of x ?x = int ( 13.25 + 4/2 ) 23 4 17 15 12 / 26 String can be surrounded by three sets of single quotation marks or double quotation marks. True False 13 / 26 Which of the following is not a keyword ? assert pass nonlocal Eval 14 / 26 What will be the value of the expression ?14 + 13 % 15 0 14 27 12 15 / 26 Which of the following statement prints the output as given belowhello \ dear \ friend print (“hello \ “dear \ “friend”) Print (“hello \ dear \ friend”) print(“hello” \ dear ” \ friend”) print (“hello \ \ dear \ \ friend”) 16 / 26 Which of the following is an invalid Variable ? Day_two _2 2nd_day My_day_2 17 / 26 The value of the expressions 4/(3*(2-1)) and 4/3*(2-1) is the same . True False 18 / 26 Which of the following code will give following output ? Hello Dear Friend Print ( ‘ Hello Dear Friend‘) (a) Print ( ‘ ‘ ‘ Hello \nDear \nFriend ‘ ‘ ‘ ) Print ( ‘ ‘ ‘ HelloDearFriend‘ ‘ ‘ ) Print ( ‘ Hello\nDear\nFriend’) 19 / 26 How would you write xy in Python as an expression ? x**y none of these x^y x^^y 20 / 26 Evaluate the expression below if A = 16 and B = 15.A % B / / A 1.0 0.0 0 1 21 / 26 The expressions 2**2**3 is evaluated as: (2**2)**3 . False True 22 / 26 The expression int(x) implies that the variable x is converted to integer True False 23 / 26 Loops in Python can also have else clause . True False 24 / 26 Variable is a placeholder for data in Python. False True 25 / 26 what type of value does input ( ) return ? Int Float Boolean String 26 / 26 Variable can be assigned only once in Python. True False Your score is LinkedIn Facebook Twitter VKontakte 0% Restart quiz Lesson tags: python quiz for class 12 class 12 computer science practical paper with solution Class 12 Python Revision Tour 2 Quiz Back to: CBSE class 12 Computer Science notes