O level Python Top 50 Mcqs
In this blog you will O level m3 r5 mcq. So must read the full article.
1. Python was developed by
A. Dennis Ritchie
B. James Gosling
C. Bjarne Stroustrup
D. Guido van Rossum
2. In which year was the Python language developed?
A. 1972
B. 1982
C. 1989
D. 1995
3. How many keywords are there in python 3.7?
A. 30
B. 31
C. 32
D. 33
4. Which one of the following is the correct extension of the Python file?
A. .p
B. .py
C. .python
D. None of these
5. Which of the following is not in Python Character Set.
A. Vector
B. Digits : 0 – 9
C. Letters : A-Z or a – z
D. Whitespaces : blank space, tab etc
6. Which of the following is not the mode of interacting with python?
A. Script Mode
B. Hybrid Mode
C. Interactive Mode
D. None of the above
7. Is Python case sensitive when dealing with identifiers?
A. Yes
B. No
C. machine dependent
D. None of the mentioned
8. What is the maximum possible length of an identifier?
A. 31 characters
B. 63 characters
C. 73 characters
D. Any length
9. In which language is Python written?
A. C
B. English
C. PHP
D. All of the above
o level python mcq questions pdf
10. What do we use to define a block of code in Python language?
A. Key
B. Brackets
C. Indentation
D. None of these
11. Python is said to be easily
A. writable language
B. bug-able language
C. readable language
D. script-able language
12. Extensible programming language that can be extended through classes and programming interfaces is
A. Python
B. Perl
C. Ada
D. PHP
13. Which one of the following is not a Python keyword?
A. except
B. finally
C. return
D. calender
14. Which character is used in Python to make a single line comment?
A. /
B. //
C. #
D. !
15. Python is Object Oriented Programming Language.
A. True
B. False
C. Neither true nor false
D. None of the above
16. Python 3.0 is released in which year?
A. 2000
B. 2008
C. 2011
D. 2016
17. What is output for − min(”hello world”)
A. w
B. e
C. hello world
D. a blank space character
18. How to output the string “May the odds favor you” in Python?
A. printf(“May the odds favor you”)
B. print(“May the odds favor you”)
C. echo(“May the odds favor you”)
D. System.out(“May the odds favor you”)
19. Python is often described as a:
A. Gear included language
B. Gear excluded language
C. Batteries excluded language
D. Batteries included language
20. Python supports dynamic typing.
A. True
B. False
21. Which of the following statements is true?
A. Python is an interpreted language.
B. Python is an object-oriented language
C. Python is a high level programming language.
D. All of the above
22. Mathematical operations can be performed on a string in
Python? State whether true or false:
A. True
B. False
23. Which one of the following is not a python’s predefined data type?
A. Class
B. List
C. Tuple
D. Dictionary
24. Which of the following is true for variable names in Python?
A. unlimited length
B. all private members must have leading and trailing underscores
C. underscore and ampersand are the only two special characters allowed
D. none of the mentioned
25. Which of the following is not a keyword in Python language?
A. val
B. try
C. raise
D. with
26. Which one of the following is the correct statement regarding comments in Python?
A. Python comments will affect the print statement present in program at some extent.
B. To apply comment we have to use ‘#’ keyword at starting while writing a comment in our program.
C. Python provides us a way through which can do both single line and multiple lines in our program.
D. To apply comment we have to use ‘#’ keyword both at starting
and ending while writing a comment in our program.
27. What is a python file with .py extension called?
A. module
B. package
C. directory
D. None of the above
28. What is the return value of trunc()?
A. int
B. float
C. bool
D. none
29. Which of the following has more precedence?
A. +
B. ()
C. –
D. /
o level m3r5 mcqs for jan 2025 exam
30. Do we need to compile a program before execution in Python?
A. Yes
B. No
31. Which of the following statements is correct regarding the object-oriented programming concept in Python?
A. Classes are real-world entities while objects are not real
B. Objects are real-world entities while classes are not real
C. Both objects and classes are real-world entities
D. All of the above
32. How to convert the uppercase letters in the string to lowercase in Python?
A. lower()
B. lowercase()
C. capilaize()
D. toLower()
33. How to capitalize only the first letter of a sentence in Python?
A. upper() method
B. capitalize() method
C. uppercase() method
D. None of the above
34. How to convert the lowercase letters in the string to uppercase in Python?
A. upper()
B. uppercase()
C. toUpper()
D. capitalize()
35. How to check whether all the characters in a string is printable?
A. echo() method
B. print() method
C. printable() method
O level m3 r5 mcq questions with answers
D. isprintable() method
36. How to swap case in Python i.e. lowercase to uppercase and vice versa?
A. case() method
B. convert() method
C. casefold() method
D. swapcase() method
37. What will be the data type of the following variable? A = ‘101’
A. Integer
B. String
C. Float
D. None of the above
38. Write the output of the following:
print(range(0,8,2))
A. 0,2,4,6
B. Error
C. range(0, 8, 2)
D. None of the above
39. Which of the following is not correct about python?
A. Python is based on ABC language.
B. Python is an open source language.
C. Python is developed by Guido Van Rossum
D. None of the above
40. Which of the following cannot be a variable?
A. __init__
B. in
C. it
D. on
41. What error occurs when you execute the following Python code snippet? apple = mango
A. Type Error
B. Value Error
C. Name Error
D. Syntax Error
42. Smallest element of of python coding is called __________
A. Token
B. Keywords
C. Identifiers
D. Delimiters
43. Writing comments is mandatory in python programs(T/F)
A. True
B. False
44. Each statement in python is terminated by ___________
A. Colon(:)
B. Comma(,)
C. Semicolon(;)
D. None of the above
For Live Class Subscribe Our Youtube Channel By click on the below link-
https://www.youtube.com/@olevelguruji
45. Which keyword is used to define a function in python?
A. new
B. def
C. define
D. None of the above
46. Which statement will display square of number (n)
A. print(n * n)
B. print(math.pow(n,2)) # math module is already imported
C. Only First
D. All of the above
47. What is the output of this expression, 3*1**3?
A. 1
B. 3
C. 9
D. 27
48. Identify the invalid identifier.
A. and
B. token
C. Keyword
D. operator
49. Which keyboard key is used to run python programs?
A. f5
B. f6
C. F + n
D. Ctrl + r
50. Which of the following operation cannot be performed on a Python string?
A. Deletion of Python String
B. Splitting of Python String
C. Reassigning of Python String
D. Adding elements in a Python String
I Hope you like O level m3 r5 mcq questions with answers
Also check Our Latest Upload
O level m2 r5 previous year question paper with answers
2 thoughts on “O level m3 r5 mcq questions with answers”