TN Online TestSamacheer Kalvi practice

12th Standard Computer Science — Control Structures: Online Practice Test

Share this chapter: Telegram

Pick how many questions you want and set a time limit, then start. You'll get your score at the end with the correct answer and an explanation for every question. Free, in Tamil and English — 25 questions available.

Set up your test

Time remaining00:00
Q1
How many important control structures are there in Python?
Q2
elif can be considered to be abbreviation of
Q3
What plays a vital role in Python programming?
Q4
Which statement is generally used as a placeholder?
Q5
The condition in the if statement should be in the form of
Q6
Which of the following is known as definite loop?
Q7
What is the output of the following snippet? i=1 while True: if i%3 ==0: break print(i,end=' ') i +=1
Q8
What is the output of the following snippet? T=1 while T: print(True) break
Q9
Which amongst this is not a jump statement ?
Q10
Which punctuation should be used in the blank? if _ statements-block 1 else: statements-block 2
Q11
Which of the following statements is executed sequentially, one after another, in the order they are written?
Q12
What will be the value of x after the execution of the following statement: x = 10 if 5 > 8 else 20?
Q13
In an if..elif..else statement, where must the optional else clause be placed if it is used?
Q14
Which loop in Python is categorised as an entry check loop, meaning its condition is tested before executing the loop body?
Q15
What is the default starting value of the range generated by the range(stop) function in Python if only one parameter is specified?
Q16
What sequence of values will be generated by the expression range(2, 10, 3)?
Q17
What is the output of the following Python loop? for i in range(1, 5): if i == 3: break print(i, end=' ') else: print('End')
Q18
Which parameter of Python's print() function can be used to define custom separation characters between multiple items being printed?
Q19
What is the primary purpose of the pass statement in Python?
Q20
What will be printed on the screen when the following code block is executed? x = 'Python' for char in x: if char == 't' or char == 'o': continue print(char, end='')
Q21
Which of the following is correct regarding nested loops in Python?
Q22
What happens when the condition of a while loop is initially evaluated as False?
Q23
Which statement is used to unconditionally transfer the control from one part of the program to another?
Q24
What will be the output of the following Python code snippet? a = 15 if a % 3 == 0: if a % 5 == 0: print('Divisible by both') else: print('Divisible by 3 only') else: print('Not divisible by 3')
Q25
Which keyword can be used to test if a character exists in a tuple of specified vowel characters inside an if statement?

More for this chapter

Book Back Questions10 textbook MCQs · solved Additional MCQs15 extra MCQs · solved Book Back TestTest yourself on the textbook set Additional MCQ TestTest yourself on the extra set Study NotesConcepts & methods Formula SheetAll key formulas

About this Control Structures test

This free online practice test covers Control Structures from the 12th Standard Computer Science (Samacheer Kalvi) syllabus. Choose the number of questions and an optional time limit, then answer and submit — everything is checked in your browser, with the correct answers and a worked explanation shown at the end. For the full solutions to every question in this set, see the solved MCQs page.

More chapters in Computer Science

View all
1 Function 2 Data Abstraction 3 Scoping 4 Algorithmic Strategies 5 Python -Variables and Operators 7 Python functions 8 Strings and String manipulation 9 Lists, Tuples, Sets and Dictionary 10 Python Classes and objects 11 Database Concepts 12 Structured Query Language (SQL) 13 Python and CSV files 14 Importing C++ programs in Python. 15 Data manipulation through SQL 16 Data visualization using pyplot: line chart, pie chart and bar chart