TN Online TestSamacheer Kalvi practice

12th Standard Computer Science — Python functions: 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
A named blocks of code that are designed to do one specific job is called as
Q2
A Function which calls itself is called as
Q3
Which function is called anonymous un-named function
Q4
Which of the following keyword is used to begin the function block?
Q5
Which of the following keyword is used to exit a function block?
Q6
While defining a function which of the following symbol is used.
Q7
In which arguments the correct positional order is passed to a function?
Q8
Read the following statement and choose the correct statement(s). (I) In Python, you don't have to mention the specific data types while defining function. (II) Python keywords can be used as function name.
Q9
Pick the correct one to execute the given statement successfully. if ____ : print(x, " is a leap year")
Q10
Which of the following keyword is used to define the function testpython(): ?
Q11
Which Python keyword is used to begin a function block?
Q12
If a function's return statement has no arguments or is missing, what default object does Python return?
Q13
What type of argument is defined using an asterisk (*) in the function's definition?
Q14
Which error is raised if you try to access a local variable outside its defined function scope?
Q15
What is the term used when the value returned by one function is passed as an argument to another function in a nested manner?
Q16
By default, how many times will Python allow a recursive function to call itself before raising a RecursionError?
Q17
Which function of the sys module is used to modify the default limit for recursion depth in Python?
Q18
What will be the output of print(ord('A')) in Python?
Q19
Which of the following built-in functions is the direct inverse of the ord() function?
Q20
What keyword is used to create one-time anonymous functions in Python?
Q21
What exception is raised if you try to modify a global variable inside a function without declaring it as global first?
Q22
What is returned by the format(25, 'o') function in Python?
Q23
What is the output of the mathematical function math.floor(-26.7) after importing the math module?
Q24
What is the output of math.ceil(-26.7) after importing the math module?
Q25
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 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 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