iitm computr education mathura

 

Python MCQ (Multi Choice Questions) Part:1

Python MCQ For O-Level Exam

#Olevel #mcq #Pythonmcq #olevelprepation #olevel #python #Pythonmcq #mcqpython #pythonexam #olevel2023 #pythonmcqpart1


Q.1 Who developed the Python language?

  • Zim Den
  • Niene Stom 
  • Guido van Rossum
  • Wick van Rossum

Q. 2 In which year was the Python language developed?

  • 1995
  • 1972
  • 1981
  • 1989

Q.3 What is the Maximum Possible Length of an Identifier?

  • 16
  • 32 
  • 64 
  • None of these

Q.4 In which language is Python written?

  • English 
  • PHP 
  • All of the above

Q.5 Which one of the following is the correct extension of the Python file?

  • .python 
  • .py 
  • .p 
  • None of these

Q. 6 What do we use to define a block of code in Python language?

  • Key 
  • Indentation 
  • Brackets 
  • None of these

Q. 7 In which year was the Python 3.0 version developed?

  • 2000 
  • 2008 
  • 2010 
  • 2012

8). Which of the following statements is correct regarding the object-oriented programming concept in Python?

  • Classes are real-world entities while objects are not real 
  • Objects are real-world entities while classes are not real
  • Both objects and classes are real-world entities 
  • All of the above

Q.9 Which character is used in Python to make a single line comment?

  • /
  •  // 
  • #
  • !

Q.10 What is the method inside the class in python language?

  • Object
  • Function 
  • Argument 
  • Attribute

Q. 11 Why does the name of local variables start with an underscore discouraged?

  • To identify the variable
  • It indicates a private variable of a class 
  • It confuses the interpreter 
  • None

Q.12 Which of the following declarations is incorrect ?

  • _x = 2 
  • __x =3
  •  __xyz__ = 5 
  • None of these


Q.13 Which of the following is not a keyword in Python language?
  • val 
  • raise 
  • try 
  • with

Q. 14 Which of the following statements is correct for variable names in Python language?

  • All variable names must begin with an underscore.
  • Unlimited Length 
  • The variable name length is a maximum of 2. 
  • All of these

Q.15 Which of the following declarations is incorrect in python language?

  • xyzp = 5,000,000
  • x y z p = 5000 6000 7000 8000
  • x,y,z,p = 5000, 6000, 7000, 8000
  • x_y_z_p = 5,000,000

Q.16 Which of the following words cannot be a variable in python language?

  • _val 
  • val 
  • try 
  • _try_

Q.17 Which of the following operators is the correct option for power(ab) ?

  • a ^ b 
  • a**b 
  • a ^ ^ b 
  • a ^ * b

Q.18 Which of the following precedence order is correct in Python?

  • Parentheses, Exponential, Multiplication, Division, Addition, Subtraction
  • Multiplication, Division, Addition, Subtraction, Parentheses, Exponential
  • Division, Multiplication, Addition, Subtraction, Parentheses, Exponential
  • Exponential, Parentheses, Multiplication, Division, Addition, Subtraction


Q.19 Which one of the following has the same precedence level?

  • Division, Power, Multiplication, Addition and Subtraction 
  • Division and Multiplication c) Subtraction and Division d) Power and Division
  • Which one of the following has the highest precedence in the expression?
  • Division b) Subtraction c) Power d) Parentheses

Q.21 Which of the following functions is a built-in function in python Language?

  • val() 
  • print() 
  • printa() 
  • None of these

Q.22 Study the following function : round(4.576)
         What will be the output of this function?

  • 576 
  • 6


Q. 23 Which of the following is correctly evaluated for this function?  pow(x,y,z)

  • (x**y) / z
  • (x / y) * z 
  • (x**y) % z 
  • (x / y) / z

Q.24 Study the following function:  all([2,4,0,6])
         What will be the output of this function?

  • False 
  • True 
  • Invalid code


25) Which of the following option is not a core data type in the python language?

  • Dictionary 
  • Lists 
  • Class 
  • All of the above

Post a Comment

Thnanks for Reply.

और नया पुराने