Class - 12 CBSE Computer Science Important Output Questions 2025
Python Fundamentals
Write the output of the following Python code:
for i in range(2,7,2): print(i*'$')
View Answer21 Likes
Python Flow of Control
Predict the output of the following code fragments:
count = 0 while count < 10: print ("Hello") count += 1
View Answer41 Likes
Python Flow of Control
Predict the output of the following code fragments:
x = 10 y = 0 while x > y: print (x, y) x = x - 1 y = y + 1
View Answer73 Likes
Python Flow of Control
Predict the output of the following code fragments:
keepgoing = True x=100 while keepgoing : print (x) x = x - 10 if x < 50 : keepgoing = False
View Answer48 Likes
Python Flow of Control
Predict the output of the following code fragments:
x = 45 while x < 50 : print (x)
View Answer45 Likes
Python Flow of Control
Predict the output of the following code fragments:
for x in [1,2,3,4,5]: print (x)
View Answer12 Likes
Python Flow of Control
Predict the output of the following code fragments:
for p in range(1,10): print (p)
View Answer12 Likes
Python Flow of Control
Predict the output of the following code fragments:
for z in range(-500, 500, 100): print (z)
View Answer21 Likes
Python Flow of Control
Predict the output of the following code fragments:
x = 10 y = 5 for i in range(x-y * 2): print (" % ", i)
View Answer44 Likes
Python Flow of Control
Predict the output of the following code fragments:
c = 0 for x in range(10): for y in range(5): c += 1 print (c)
View Answer34 Likes
Showing 1 - 10 of 98 Questions