12th Standard Syllabus & Materials
12th Standard
TN 12th Computer Applications மின்னணு தரவு பரிமாற்றம் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications மின் - வணிக பாதுகாப்பு அமைப்புகள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications மின்னணு செலுத்தல் முறைகள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications மின் - வணிகம் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications திறந்த மூல கருத்துருக்கள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications வலையமைப்பு வடமிடல் Sample Question Papers Study Material - QB365 Set A

Published on: 03/02/2021
12th Standard Computer Science English Medium Control Structures Reduced Syllabus Important Questions 2021
Download Tamil Nadu 12th Standard Computer Science question papers, model tests, one-mark questions, important questions, and public exam papers in PDF format. Free study materials and answer keys for TN State Board students.
Questions + Answers key
Take MCQ Computer Science Test

1.
Control of the program flows to the statements immediately after the body of the loop by using ____ statements.
continue
pass
break
goto
2.
Which statement transfers the control out of loop even when the loop condition is tested true?
continue
break
pass
goto
3.
Which of the following statement provided control to check the true false and false block?
if
while
do-while
if else
4.
What can be learned through alternative or branching statement?
looping
decision making
functions
classes
5.
The following statements is an example of
Print ("ONE")
Print ("Four")
iterative
branching
sequential
looping
6.
Find the odd man out
Branching
looping
sequential
Condition
7.
Which of the following is not control structures?
Sequential
Branching
Operator
Looping
8.
Find the odd man out.
keywords
Operator
Identifiers
Programs
9.
Which of the following are the executable segments that yield the result?
Operator
Statements
Keywords
Identifiers
10.
Which punctuation should be used in the blank?
if < condition > ____
statements-block 1
else:
statements-block 2
;
::
!
" : "
11.
Which amongst this is not a jump statement?
for
goto
continue
break
12.
What is the output of the following snippet?
T=1
while T:
print(True)
break
False
True
0
1
13.
What plays a vital role in Python programming?
Statements
Control
Structure
Indentation
14.
elif can be considered to be abbreviation of
nested if
if..else
else if
if..elif
15.
How many important control structures are there in Python?
3
4
5
6
16.
Write a python program to calculate the sum of numbers between. 1 and 100.
17.
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")
18.
Write the syntax of for loop.
19.
Write a program in python to check if the accepted number us even or odd (use alternate method of if-else).
20.
Write the syntax of alternative method to write complete if-else.
21.
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")
22.
Draw a flow chart that defines the execution of if-else statement.
23.
What is meant by alternative or branching?
24.
Define control structure.
25.
List the control structures in Python.
26.
Why we need to construct the pass statement?
27.
What will be output of the following program?
28.
What will be the range of values displayed by the following?
29.
Write the syntax of working of continue statement in for and while loop.
30.
Draw the flowchart that illustrates the working of break statement
31.
Write a python program to print all numbers from 10 to 15 using while loop.
32.
Write a note on sequential statement with an example.
33.
List the differences between break and continue statements.
34.
Write note on if..else structure.
35.
Write a program to display
A
A B
A B C
A B C D
A B C D E
36.
Write a program in python to display the following output.
(i) 5 5 5 5 5
4 4 4 4
3 3 3
2 2
1
(ii) 1 2 3 4 5
1 2 3 4
1 2 3
1 2
1
37.
Write a program in python to display he following output.
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
38.
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
39.
Write a program to display multiplication table for a given number.
40.
Write a program to display all 3 digit odd numbers.
41.
Write a detail note on if..else..elif statement with suitable example.
42.
Write a detail note on for loop.
1.
(c)
break
2.
(b)
break
3.
(d)
if else
4.
(b)
decision making
5.
(c)
sequential
6.
(d)
Condition
7.
(c)
Operator
8.
(d)
Programs
9.
(b)
Statements
10.
(d)
" : "
11.
(a)
for
12.
(b)
True
13.
(d)
Indentation
14.
(c)
else if
15.
(a)
3
16.
Program to calculate the sum of numbers 1 to 100
Program:
n= 100
sum=0
for counter in ranget (1, n + 1):
sum = sum + counter
print("Sum of 1 until %d: %d" % (n,sum))
Output:
Sum of 1 until 100: 5050
17.
Output:
1, 3, 5, 7
End of the loop
18.
Syntax:
for counter_variable in sequence:
statements-block 1
[else: # optional block
statement-block 2]
19.
a = int (input("Enter any number :"))
x="even" if a%2==0 else "odd"
print (a, "is",x)
Output 1:
Enter any number 3
3 is odd
Output 2:
Enter any number: 22
22 is even
20.
Syntax:
variable = variablel if condition else variable 2
21.
Output:
Enter any number: 56
56 is an even number
Output 2:
Enter any number: 67
67 is an odd number
22.

23.
There may be situations in our real life programming where we need to skip a segment or set of statements and execute another segment based on the test of a condition. This is called alternative or branching.
24.
A program statement that causes a jump of control from one part of the program to another is called control structure or control statement.
25.
There are three important control Structures
(i) Sequential
(ii) Alternative or Branching
(iii) Iterative or Looping
26.
pass statement is generally used as a placeholder. When we have a loop or function that is to be implemented in the future and not now, we cannot develop such functions or loops with empty body segment because the interpreter would raise an error. So, to avoid this we can use pass statement to construct a body that does nothing.
27.
for word in "Jump Statement":
if word = = "e":
break
print (word, end=")
else:
print ("End of the loop")
print ("\n End of the program")
Output:
Jump Stat
End of the program
28.
range (1,30,1) - will start the range of values from 1 and end at 29
range (2,30,2) - will start the range of values from 2 and end at 28
range (30,3,-3) - will start the range of values from 30 and end at 6
range (20) - will consider this value 20 as the end value(or upper limit) and starts the range count from 0 to 19 (remember always ranget) will work till stop -1 value only)
29.
for var in sequence:
# code inside for loop
if condition:

while test expression:
#code inside while loop
if condition:

30.

31.
Example: Program to illustrate the use of while loop - to print all numbers from 10 to 15
i=10 # intializing part of the control variable
while (i<=15): # test condition
print (i, end='\t') # statements - block 1
i=i+1 # Updation of the control variable
Output:
10 11 12 13 14 15
32.
A sequential statement is composed of a sequence of statements which are executed one after another. A code to print your name, address and phone number is an example of sequential statement
Example:
# Program to print your name and address - example for sequential statement
print ("Hello! This is Shyam")
print ("43, Second Lane, North Car Street, TN")
Output:
Hello! This is Shyam
43, Second Lane, North Car Street, TN
33.
| Break | Continue |
| The break statement terminates the loop containing it. | The continue statement is used to skip the remaining part of a loop. |
| Control of the program flows to the statement immediately after the body ot the loop. | Control of the program flows start with next iteration |
| Syntax : break | Syntax : continue |
34.
(i) The if.. else statement provides control to check the true block as well as the false block,
(ii) Syntax :
if
statemets-block 1
else :
statement-block 2
(iii) if..else statement thus provides possibilities and the condition determines which BLOCK is to be executed.
35.
for i in range (1, 6) :
for j in range (65, 65 + i)
a = chr(j)
print a
print
36.
(i) for i in range (5, 0,-1):
for j in range (1, i + 1):
print (i, end =' ')
print (end = '\n')
i+ = 1
(ii) for i in range (5, 0, -1):
for j in range (1, i + 1):
print (j end =' ')
print (i, end = '\n')
i+ = 1
37.
for i in range (1,6):
for j in range (1, i+1)
print (i, end =' ')
print (end = '\n')
i+ = 1
38.
i=1
while (i < = 6):
for j in range (1,i):
print (j,end='\t')
print (end='\n')
i+=1
Output:
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
39.
Multiplication table :
num =int(input("Enter the number: "))
print("multiplication Table of", num)
for i in range(1,11):
print (num,"x",i, "= ",num*i )
Output :
Enter the number : 6
Multiplication Table of 6
6 x 1 = 6
6 x 2 = 12
6 x 3 = 18
6 x 4 = 24
6 x 5 = 30
6 x 6 = 36
6 x 7 = 42
6 x 8 = 48
6 x 9 = 54
6 x 10 = 60.
40.
for i in range (100, 1000):
if a%2==1:
print b
Output :
101,103,105,107,...........,997,999
41.
Nested if..elif..else statement :
(i) When we need to construct a chain of if statement(s) then 'elif' clause can be used instead of 'if else'.
(ii) Syntax:
if < condition - 1>:
statements-block 1
elif < condition - 2>:
statements-block 2
else:
statements-block n
(iii) In the syntax of if..elif ..else mentioned above, condition -1 is tested if it is true then statements-block 1 is executed, otherwise, the control checks condition-2, if it is true statements-block 2 is executed and even if it fails statements-block n mentioned in else part is executed.
(iv) 'elif' clause combines if..else-if ..else statements to one if..elif ... else. 'elif' can be considered to be abbreviation of 'else if'. In an 'if' statement there is no limit of 'elif' clause that can be used, but an 'else' clause if used should be placed at the end.
(v) Example: # Program to illustrate the use of nested if statement
| Average | Grade |
| > = 80 and above | A |
| > = 70 and < 80 | B |
| > = 60and < 70 | C |
| > = 50 and < 60 | D |
| Otherwise | E |
m1 = int (input("Enter mark in first subject:"))
m2 = int (input("Enter mark in second subject:"))
avg = (m1+m2)/2
if avg > =80:
print ("Grade : A")
elif avg > =70 and avg < 80:
print ("Grade : B")
elif avg > =60 and avg < 70:
print ("Grade : C")
elif avg > =50 and avg < 60:
print ("Gradec: D")
else:
print("Grade : E")
Output 1:
Enter mark in first subject : 34
Enter mark in second subject : 78
Grade : D
Output 2:
Enter mark in first Subject : 67
Enter mark in second subject : 73
Grade: B
42.
(i) for loop : The for loop usually known as a definite loop, because the programmer knows exactly how many times the loop will be executed.
(ii) Syntax:
for counter_variable in sequence:
statements - block 1
[else: # optional block
statements - block 2]
(iii) The for ... in statement is a looping statement used in Python to iterate over a sequence of objects, i.e., it goes through each item in a sequence. Here the sequence is the collection of ordered or unordered values or even a string.
(iv) range (): The range() is a built-in function,to generate series of values between two numeric intervals
(iv) The syntax of range() follows :
range (start, stop, [step])
Where,
start - refers to the initial value
stop - refers to the final values
step - refers to increment value, this is optional part.
Examples for range( ):
range (1,30,1) - will start the range of values from 1 and end at 29
range (2,30,2) - will start the range of values from 2 and end at 28
range (30,3,-3) - will start the range of values from 30 and end at 6.
range (20) - will consider this value 20 as the end value and starts the range count from 0 to 19
Example :
# Program to illustrate the use of for loop - to print single digit even number
for i in range (2,10,2):
print (i, end=' ')
Output :
2 4 6 8
12th Standard Syllabus & Materials
12th Standard
TN 12th Computer Applications களப்பெயர் முறைமை (DNS) Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications வலையமைப்பு எடுத்துக்காட்டுகள் மற்றும் நெறிமுறைகள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications கணினி வலையமைப்பு ஓர் அறிமுகம் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications PHP-உடன் MySQL-ஐ இணைத்தல் Sample Question Papers Study Material - QB365 Set A
Tamilnadu Stateboard 12th Standard Subjects

Maths

Chemistry

Physics

Biology

Computer Science

Business Maths and Statistics

Economics

Commerce

Accountancy

History

Computer Applications

Biology

Computer Technology

Computer Applications

Computer Science

Business Maths and Statistics

Commerce

Economics

Maths

Chemistry

Physics

Computer Technology

History

Accountancy

Tamil

English

French
Tamilnadu Stateboard Standards