This blog helps you to learn basics to high level Python programming practicals.
num = 1 while num < 5: print(num, end=" ") num = num + 1 A. 1 2 3 4 B. 1 2 3 4 5 C. 1 3 5 D. none of these
A. 1 3 4 B. 1 2 C. 1 2 3 4 5 D. none of these
A. 1 2 3 4 B. 1 2 C. 3 4 5 D. Syntax error
A. 1 2 3 4 'num' is now out of range. B. 1 2 3 4 C. 'num' is now out of range. D. none of these
A. infinite loop B. 1 2 3 4 5 C. 2 3 4 5 D. Syntax error
A. PYTHONPRACTICALS B. python C. pythonpracticals D. none of these
A. pythonpracticals B. python C. practicals D. error
A. 1 B. 5 C. 10 D. error
A. abcd B. 0123 C. 0a1b2c3d D. error
A. Hello5 4 3 2 1 B. Hello1 2 3 4 5 C. Hello5 4 3 2 D. Hello
A. True B. False C. both True and False D. none of these
a, b, c = 5, 1, 15 if (a < b) and (a < c): print("A is minimum") elif (b < a) and (b < c): print("B is minimum") else: print("C is minimum")
A. A is minimum B. B is minimum C. C is minimum D. none of these
if(4-6): print("Android") else: print("Linux") A. Android B. Linux C. Error D. none of these
A. AAA B. BBB C. CCC D. none of these
A. Pass B. Fail C. Syntax Error D. none of these
A. variables B. tokens C. keywords D. none of these
A. # B. $ C. // D. none of these
A. variables B. comments C. tokens D. loops
A. number B. letter C. underscore D. none of these
A. _num B. Num C. 101_ D. Syntax