Page 1 :
opter : PYTHON REVISION TOUR, 8. What is the value of x ?, x int(13.25+4/2), (a) 17, (b) 14, () 15, 4)23, 9. The expression 8/4/2 will evaluate equivalent to which of the following expressions:, (a) 8/(4/2), (b) (8/4)/2, 10. Which among the following list of operators has the highest precedence ?, +, **, %, /, <<, >>, |, (a) <<, >>, (b) **, 11. Which of the following expressions results in an error ?, (c) I, (d) %, (a) float('12'), (b) int('12), 12. Which of the following statement prints the shown output below ?, (c) float('12.5'), (d) int('12.5'), hello\example\test.txt, (a) print("hello\example\ test.txt"), (c) print("hello\"example\"test.txt"), 13. Which value type does input() return ?, (b) print("hello\ \example\ \test.txt"), (d) print("hello"\example" \ test.txt"), (a) Boolean, (b) String, (c) Int, (d) Float, 14. Which two operators can be used on numeric values in Python ?, (a) @, (b) %, (c) +, (d) #, 15. Which of the following four code fragments will yield following output ?, Eina, Mina, Dika, Select all of the function calls that result in this output, (a), print('''Eina, \nMina, \nDika'), (b), print('''EinaMinaDika''), (c), print('Eina\nMina\nDika'), (d), print('Eina, Mina, Dika'), 16 Which of the following is valid arithmetic operator in Python:, (b) ?, AI DUAL CAMERA, (c) <, (d) and, (Shot on realme 3i
Page 2 :
A DUA CAMERA, Eter ealm, The while foyn is on loop as it has a entry in the loop in the form of test cond, Lops in con else clause too The else clause of u is in the end of the p, D ay pun doo fuuuno o s ao) au ym pun -s y o, The break can terminate a loop ond the over to the fol, e a y, Axp terminates normally, In nested loops, a break sztement terminates the very loop it apprors in., The contimue statement ubandons the curren iterationi of the ioop by skippping over the rest of d, loop-body It imtedlateiy tronsfers controi to the heginning of the next iteration of the loon, bjective Type Questions, OTQS, Mulfiple Choice Questions, 1. Which of the following, is an invalid variable ?, (4) my day 2, 2 Which of the following is not a keyword ?, (b) 2nd day, (c) Day two, (b) assert, (e) nonlocal, A (), 3. Which of the following cannot be a variable ?, (c) it, ut (4), 4. Which of these is not a core data type ?, (@)init, uo (p), (b) Dictionary, 5. How would you write x in Python as an expression ?, (a) Lists, (c) Tuples, (d) Class, Ax (0), 6. What will be the value of the expression ?, (1) x"y, o auou (p), 14+13% 15, (b) 27, 7. Evaluate the expression given below if A 16 and B-15., (c) 12, O (p), AXB//A, 00 (), (c) 1.0, 0 (), I ()