TN Online TestSamacheer Kalvi practice

12th Standard Computer Science — Python -Variables and Operators: Additional 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 — 15 questions available.

Set up your test

Time remaining00:00
Q1
Which of the following is an invalid identifier in Python because it contains an illegal punctuation character?
Q2
In Python, which of the following operators is used for performing floor division?
Q3
Which built-in function is used to explicitly convert a string input containing a numerical value into an integer in Python?
Q4
How does the Python interpreter treat lines that begin with the hash symbol (#)?
Q5
In Python, what character sequence is used to enclose multiline comments?
Q6
Which of the following escape sequences is used to represent a carriage return in Python strings?
Q7
Which number representation is denoted by prefixing an integer with the digit 0 followed by the letter 'o' (such as 0o102) in Python?
Q8
What is the correct syntax for the conditional (ternary) operator in Python?
Q9
Given the variable values a = 97 and b = 35, what will be the result of the logical expression: not a > b in Python?
Q10
Python identifiers are case-sensitive. Which of the following is true regarding two identifiers named Sum and sum?
Q11
Which of the following is a valid example of exponent data representation for floating-point numbers in Python?
Q12
Which of the following characters is NOT used as a delimiter in Python expressions, lists, dictionaries, or strings?
Q13
When using Python IDLE in interactive mode, what will be the output of evaluating the expression 5 ** 2?
Q14
Which of the following characters can a Python identifier legally begin with?
Q15
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 Practice TestInteractive · instant score Book Back TestTest yourself on the textbook 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