12th Standard Syllabus & Materials
12th Standard
TN 12th English Poem - 6 - Incident of the French Camp Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th English Prose - 6 - On the Rule of the Road Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th English Prose - 5 - The Chair Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th English Supplementary - 4 - The Midnight Visitor Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th English Poem - 4 - Ulysses Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th English Prose - 4 - The Summit Sample Question Papers Study Material - QB365 Set A

Published on: 05/09/2022
QB365 provides a detailed and simple solution for every Possible Creative Questions in Class 12 Computer Science Subject - Control Structures , English Medium. It will help Students to get more practice questions, Students can Practice these question papers in addition to score best marks.
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.
Write a short note about simple if-statements.
2.
Why we need to construct the pass statement?
3.
What will be output of the following program?
4.
Draw a flowchart that illustrate how looping construct gets executed.
5.
What will be the range of values displayed by the following?
6.
What is the output of the following Python program?
7.
Write the syntax of working of continue statement in for and while loop.
8.
Draw the flowchart that illustrates the working of break statement
9.
Write a program in python that illustrate the use of 'in' and 'not in' if statement.
10.
Draw the flowchart that illustrates the use of break and continue statement in loop structure.
11.
Draw a flowchart that illustrates the working of while loop.
12.
Write a python program to print all numbers from 10 to 15 using while loop.
13.
Write a note on simple if statement with an example.
14.
List the types of alternative or branching statement in python.
15.
Write a note on sequential statement with an example.
1.
Simple if is the simplest of all decision making statements. Conditions should be in the form of relational or logical expressions.
Syntax:
if < conditions >
Statements - block 1
2.
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.
3.
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
4.

5.
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)
6.
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
else:
print ("\n Value of i when the loop exit",i)
Output:1
10 11 12 13 14 15
Value of i when the loop exit 16
7.
for var in sequence:
# code inside for loop
if condition:

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

8.

9.
Program:
ch=input ("Enter a character :")
# to check if the letter is vowel
if ch in ('a', 'A', 'e', 'E', 'i', 'I', 'o', 'O', 'u', 'U'):
print (ch,' is a vowel')
# to check if the letter typed is not 'a' or 'b' or 'c'
if ch not in ('a', 'b', 'c'):
print (ch,' the letter is not a/b/c')
Output 1:
Enter a character: e
e is a vowel
Output 2:
Enter a character :x
x the letter is not a/b/c
10.

11.

12.
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
13.
Simple if statement: Simple if is the simplest of all decision making statements. Condition should be in the form of relational or logical expression.
Syntax:
if
statements-block1
In the above syntax if the condition is true statements - block 1 will be executed.
Example: Program to check the age and print whether eligible for voting
x=int (input("Enter your age :"))
if x > = 18:
print ("You are eligible for voting")
Output 1:
Enter your age: 34
You are eligible for voting
Output 2:
Enter your age: 16
>>>
14.
Python provides the following types of alternative or branching statements:
(i) Simple if statement
(ii) if..else statement
(iii) if..elif statement
15.
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
12th Standard Syllabus & Materials
12th Standard
TN 12th English Supplementary - 3 - The Hour of Truth (Play) Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th English Poem - 3 - All the World’s a Stage Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th English Prose - 3 - In Celebration of Being Alive Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th English Supplementary - 2 - Life of Pi 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