TN Online TestSamacheer Kalvi practice

12th Standard Computer Science — Python -Variables and Operators: 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
Who developed Python?
Q2
The Python prompt indicates that Interpreter is ready to accept instruction.
Q3
Which of the following shortcut is used to create new Python Program?
Q4
Which of the following character is used to give comments in Python Program?
Q5
This symbol is used to print more than one item on a single line.
Q6
Which of the following is not a token?
Q7
Which of the following is not a Keyword in Python?
Q8
Which operator is also called as Comparative operator?
Q9
Which of the following is not Logical operator?
Q10
Which operator is also called as Conditional operator?
Q11
Which of the following is an invalid identifier in Python because it contains an illegal punctuation character?
Q12
In Python, which of the following operators is used for performing floor division?
Q13
Which built-in function is used to explicitly convert a string input containing a numerical value into an integer in Python?
Q14
How does the Python interpreter treat lines that begin with the hash symbol (#)?
Q15
In Python, what character sequence is used to enclose multiline comments?
Q16
Which of the following escape sequences is used to represent a carriage return in Python strings?
Q17
Which number representation is denoted by prefixing an integer with the digit 0 followed by the letter 'o' (such as 0o102) in Python?
Q18
What is the correct syntax for the conditional (ternary) operator in Python?
Q19
Given the variable values a = 97 and b = 35, what will be the result of the logical expression: not a > b in Python?
Q20
Python identifiers are case-sensitive. Which of the following is true regarding two identifiers named Sum and sum?
Q21
Which of the following is a valid example of exponent data representation for floating-point numbers in Python?
Q22
Which of the following characters is NOT used as a delimiter in Python expressions, lists, dictionaries, or strings?
Q23
When using Python IDLE in interactive mode, what will be the output of evaluating the expression 5 ** 2?
Q24
Which of the following characters can a Python identifier legally begin with?
Q25
If the initial value of x is 10, what will be the value of x after executing the compound assignment statement x += 20?

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 Python -Variables and Operators test

This free online practice test covers Python -Variables and Operators 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 6 Control Structures 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