Interesting Quizzes 28/2/23

  1. What is the output of the following Python code?

A. hello
B. world
C. hello world
D. None of the above

2)Which of the following is not a Python keyword?
A. break
B. class
C. continue
D. interface

3)What is the output of the following Python code?


A. 2
B. 2, 3
C. 3, 2
D. None of the above

  1. What is the output of the following Python code?

A. [1, 2, 3, 4]
B. [1, 2, 3]
C. [1, 2, 3, [4]]
D. None of the above

  1. What is the output of the following Python code?

A. 5
B. 8
C. 10
D. 13
E. None of the above

1 Like

------------>>>>>Answers<<<<----------
(1) . C
(2) . D
(3) . B
(4) . A
(5). D

2 Likes

Solutions

(1) A
(2) B
(3) B
(4) A
(5) D.

2 Likes

Q1 → A
Q2 ->D
Q3 ->B
Q4 ->A
Q5 → D
Thank you for this @kalyani-ta-ds learnt something knew today :smiling_face: