Class - 12 CBSE Computer Science Important Output Questions 2025

  • Python Funda

    Write the output of the following Python code:

    for i in range(2,7,2):
        print(i*'$')
    
    View Answer

    12 Likes


  • Python Control Flow

    Predict the output of the following code fragments:

    count = 0         
    while count < 10:
        print ("Hello")
        count += 1
    
    View Answer

    35 Likes


  • Python Control Flow

    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 Answer

    64 Likes


  • Python Control Flow

    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 Answer

    42 Likes


  • Python Control Flow

    Predict the output of the following code fragments:

    x = 45
    while x < 50 :
        print (x)
    
    View Answer

    38 Likes


  • Python Control Flow

    Predict the output of the following code fragments:

    for x in [1,2,3,4,5]:
        print (x)
    
    View Answer

    10 Likes


  • Python Control Flow

    Predict the output of the following code fragments:

    for p in range(1,10):
       print (p)        
    
    View Answer

    10 Likes


  • Python Control Flow

    Predict the output of the following code fragments:

    for z in range(-500, 500, 100):
        print (z)
    
    View Answer

    17 Likes


  • Python Control Flow

    Predict the output of the following code fragments:

    x = 10                     
    y = 5                     
    for i in range(x-y * 2):  
        print (" % ", i)
    
    View Answer

    40 Likes


  • Python Control Flow

    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 Answer

    28 Likes


Showing 1 - 10 of 98 Questions