12th Computer Science Chapter- 7 Onemarks Online Test

Question 1: A named blocks of code that are designed to do one specific job is called as
A)Loop
B) Branching
C) Function
D) Block
Question 2: A function which calls itself is called as
A) Built-in
B) Recursion
C) Lambda
D) Return
Question 3: Which function is called anonymous un-named function?
A) Lambda
B) Recursion
C) Function
D) Define
Question 4: Which of the following keyword is used to begin the function block?
A) define
B) for
C) finally
D) def
Question 5: Which of the following is used to exit a function block?
A) define
B) return
C) finally
D) def
Question 6: While defining a function which of the following symbol is used?
A) ;(semicolon)
B) .(dot)
C) :(colon)
D) $(dollar)
Question 7: In which arguments the correct positional order is passed to a function?
A) Required
B) Keyword
C) Default
D) Variable-length
Question 8: Read the following statement and choose the correct statement(s).
(1)In python, you don't have to mention the specific data types while defining function.
(2) Python keywords can be used as function names.
A) (1)is correct and (2)is wrong
B) Both are correct
C) (1)is wrong and (2)is correct
D) Both are wrong
Question 9: Pick the correct one to execute the given statement successfully.
  if____: print(x,"is a leap year")
A) x%2=0
B) x%4==0
C) x/4=0
D) x%4=0
Question 10: Which of the following keyword is used to define the function testpython():?
A) define
B) pass
C) def
D) while

Report Card

Total Questions Attempted: 0

Correct Answers: 0

Wrong Answers: 0

Percentage: 0%

Post a Comment

0 Comments