New ! Computer Science MCQ Practise Tests



Control Structures 2 Mark Creative Question Paper With Answer Key

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 30

    2 Marks 

    15 x 2 = 30
  1. What is meant by alternative or branching?

  2. Draw a flow chart that defines the execution of if-else statement.

  3. Write a program in python to check if the accepted number even or odd.
    a = int(input("Enter any number:"))
    if a%2==0:
    print (a, "is an even number")
    else:
    print (a, "is an odd number")

  4. Write the syntax of alternative method to write complete if-else.

  5. Write a program in python to check if the accepted number us even or odd (use alternate method of if-else).

  6. What are the two types of looping construct in python?

  7. Write a note on the parameters used in print () statement.

  8. Write the syntax of for loop.

  9. Draw the flowchart that illustrates the working of for loop.

  10. What will the output of the following program?
    for i in range (1,9, 2):
            print (i, end = ' ')
    else:
            print (")n. End of the loop")

  11. What is the expression. or statement at? 1? and ?2? in the following program to get the output 2 4 6 8.
    for ?!? in range (2, ?2?, 2):
    print (i, end =")

  12. Write a python program to calculate the sum of numbers between. 1 and 100.

  13. Write a python program to find the sum of even numbers between 1 and 10.

  14. Write a python program to find the sum of odd numbers between. 10 and 20.

  15. What are the values taken by range ()?

*****************************************

Reviews & Comments about 12th Standard Computer Science English Medium - Control Structures 2 Mark Creative Question Paper and Answer Key 2022 - 2023

Write your Comment