(A) factorial()
(B) seed()
(C) print()
(D) sqrt()
2. Which type of Programming does Python support?
(A) object-oriented programming
(B) structured programming
(C) functional programming
(D) all of the mentioned
3. Which of the following is an invalid statement?
(A) xy = 1,000,000
(B) x, y = 1000, 2000
(C) x y = 1000 2000
(D) x_y = 1,000,000
4. What will be the output of the following Python statement?
x = "ab"
y = "cd"
z = x+y
print(z[1:3])
(A) ab
(B) bc
(C) cd
(D) dc
5. What will be the output of the following Python statement?
if (9 < 0) and (0 < -9):
print("hello")
elif (9 > 0) or False:
print("good")
else:
print("bad")
(A) error
(B) hello
(C) good
(D) bad
2|Page
This study source was downloaded by 100000899606070 from CourseHero.com on 03-04-2026 13:48:13 GMT -06:00
https://www.coursehero.com/file/252321309/-v3pdf/