TN Online TestSamacheer Kalvi practice

12th Standard Computer Science — Python functions: 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 Python keyword is used to begin a function block?
Q2
If a function's return statement has no arguments or is missing, what default object does Python return?
Q3
What type of argument is defined using an asterisk (*) in the function's definition?
Q4
Which error is raised if you try to access a local variable outside its defined function scope?
Q5
What is the term used when the value returned by one function is passed as an argument to another function in a nested manner?
Q6
By default, how many times will Python allow a recursive function to call itself before raising a RecursionError?
Q7
Which function of the sys module is used to modify the default limit for recursion depth in Python?
Q8
What will be the output of print(ord('A')) in Python?
Q9
Which of the following built-in functions is the direct inverse of the ord() function?
Q10
What keyword is used to create one-time anonymous functions in Python?
Q11
What exception is raised if you try to modify a global variable inside a function without declaring it as global first?
Q12
What is returned by the format(25, 'o') function in Python?
Q13
What is the output of the mathematical function math.floor(-26.7) after importing the math module?
Q14
What is the output of math.ceil(-26.7) after importing the math module?
Q15
Which argument type in Python matches values to their parameter names, allowing them to be passed in a different order than defined?

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 functions test

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