JavaScript isn't enabled in your browser, so this file can't be opened. Enable and reload.
XII COMPUTER SCIENCE EM TEST 7
7. PYTHON FUNCTIONS
one mark questions :
Prepared by S. Saminathan, GHSS- MUKHASAPARUR, CUDDALORE DT
https://sites.google.com/view/tn-computer-science/home
Sign in to Google
to save your progress.
Learn more
* Indicates required question
NAME:
*
Your answer
Register Number
*
Your answer
School
*
Choose
GHSS MUKHASAPARUR
Others
1. A named blocks of code that are designed to do one specific job is called as
*
1 point
Loop
Block
Branching
Function
2. A Function which calls itself is called as
*
1 point
Built-in
Recursion
Lambda
return
3. Which function is called anonymous un-named function
*
1 point
Function
define
Lambda
Recursion
4. Which of the following keyword is used to begin the function block?
*
1 point
define
finally
def
for
5. Which of the following keyword is used to exit a function block?
*
1 point
define
def
return
finally
6. While defining a function which of the following symbol is used.
*
1 point
. (dot)
$ (dollar)$
; (semicolon)
: (colon)
7. In which arguments the correct positional order is passed to a function?
*
1 point
Variable-length
Keyword
Required
Default
8. 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.
*
1 point
I is wrong and II is correct
Both are wrong
I is correct and II is wrong
Both are correct
9. Pick the correct one to execute the given statement successfully.
if ____ : print(x, " is a leap year")
*
1 point
x%4=0
x/4=0
x%2=0
x%4==0
10. Which of the following keyword is used to define the function testpython(): ?
*
1 point
while
def
define
Pass
Submit
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google.
Report Abuse
-
Terms of Service
-
Privacy Policy
Forms