St. Britto Hr. Sec. School - Madurai
12th Computer Science Weekly Test - 1 ( Control Structures )-Aug 2020
-
-
-
-
-
-
-
-
-
-
-
-
Write is the syntax of if..else statement
-
Write the syntax how break statement used in while loop.
-
Draw the flowchart that illustrate the working of for loop.
-
What are the two types of looping constructs in python?
-
Write the syntax of while loop.
-
-
Write a note on simple if statement with an example.
-
Write the syntax of working of continue statement in for and while loop.
-
-
List the differences between break and continue statements.
-
Write note on if..else structure.
-
Write a note on sequential statement with an example.
-
Explain Jump statement in python.
-
Program to illustrate the use of break statement inside for loop
for word in “Jump Statement”:
if word = = “e”:
break
print (word, end= ' ') -
-
Write a program in python to display the following output.
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5 -
Program to illustrate the use of pass statement in for loop
for val in “Computer”:
pass
print (“End of the loop, loop structure will be built in future”)
-