We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
GSBV, BURARI, UNIT TEST – 01
CLASS 12 (COMPUTER SCIENCE)
Q1: What will be the output of the following Q9: Find and correct the error from the following statement? 1 code: 4
print(16*5/4*2/5-8) def even(n)
(a) -3.33 if n // 2 = 0 (b) 0.0 (c) 6.0 print(“Even”) (d) -13.33 else Q2: Which keyword is used to define a function? 1 print(“Odd”) (a) define a = int(input(“Enter a number”) (b) def (c) create even(n) (d) declare Q10: Write statement to call the function. 1 Q3: By default a function return -------- 1 def add(x,y): (a) None z=x+y (b) NULL (c) False print(z) (d) True ------------------------- #statement to call the function Q4: Which of the following is NOT a built-in function of Python? 1 Q11: Write the output of the following code: 3