Table of Contents
Python Tutorial: Learn Python Programming from Basics to Advanced
🔒 Please log in to unlock this course.
MCQ Section
MCQ 1
Which of the following version of Python was released in December, 2015 by Python.org?
Locked. Enroll to open this MCQ.
MCQ 2
Python files are saved with the extension as ...?
Locked. Enroll to open this MCQ.
MCQ 3
What is the name of the GUI that comes in-built as an interactive shell with Python?
Locked. Enroll to open this MCQ.
MCQ 4
IDLE stands for ... ?
Locked. Enroll to open this MCQ.
MCQ 5
The function to display a specified message on the screen is ... ?
Locked. Enroll to open this MCQ.
MCQ 6
Comments in Python begin with ...?
Locked. Enroll to open this MCQ.
MCQ 7
A user-specified value can be assigned to a variable with ______ function.
Locked. Enroll to open this MCQ.
MCQ 8
User input is read as ________ ?
Locked. Enroll to open this MCQ.
MCQ 9
Output displayed by the print function will add this invisible character at the end of the line by…
Locked. Enroll to open this MCQ.
MCQ 10
Multiple values specified in parentheses to print function will display each value separated with…
Locked. Enroll to open this MCQ.
MCQ 11
Which of the following will provide an ! character as alternative separator for the print function?
Locked. Enroll to open this MCQ.
MCQ 12
Which of the following will provide a * character as alternative line ending for the print function?
Locked. Enroll to open this MCQ.
MCQ 13
For which type of error does the interpreter halts and reports the error but does not execute the…
Locked. Enroll to open this MCQ.
MCQ 14
For which type of error does the interpreter runs the program but halts at error and reports the…
Locked. Enroll to open this MCQ.
MCQ 15
For which type of error does the interpreter runs the program and does not report an error?
Locked. Enroll to open this MCQ.
MCQ 16
What do you type to enter the interactive help mode of Python?
Locked. Enroll to open this MCQ.
MCQ 17
In IDLE shell, what is the keyboard shortcut for the previous command in history on Windows/Linux?
Locked. Enroll to open this MCQ.
MCQ 18
In IDLE shell, what is the keyboard shortcut for the next command in history on Windows/Linux?
Locked. Enroll to open this MCQ.
MCQ 19
In IDLE shell, what is the keyboard shortcut for the previous command in history on Mac OS X?
Locked. Enroll to open this MCQ.
MCQ 20
In IDLE shell, what is the keyboard shortcut for the next command in history on Mac OS X?
Locked. Enroll to open this MCQ.
MCQ 21
In IDLE file editor, what is the keyboard shortcut for executing the program in shell?
Locked. Enroll to open this MCQ.
MCQ 22
What type of language is Python?
Locked. Enroll to open this MCQ.
MCQ 23
Python language was named after?
Locked. Enroll to open this MCQ.
MCQ 24
Who is the creator of Python?
Locked. Enroll to open this MCQ.
MCQ 25
Which of the following is identified with Python?
Locked. Enroll to open this MCQ.
MCQ 26
Which of the following is used to enclose strings?
Locked. Enroll to open this MCQ.
MCQ 27
In IDLE shell, the output will be the same for all the following statements except one. Which one?
Locked. Enroll to open this MCQ.
MCQ 28
In IDLE shell, the output will be an error for one of the following statements. Which one?
Locked. Enroll to open this MCQ.
MCQ 29
What is the famous one-line Hello World program of Python?
Locked. Enroll to open this MCQ.
MCQ 30
What is used for multi-line strings in Python?
Locked. Enroll to open this MCQ.
MCQ 31
What will be the output after the following statements? x = 90 y = 'I ran for %s minutes' print(y %…
Locked. Enroll to open this MCQ.
MCQ 32
What will be the output after the following statements? x = 'She' y = 60 z = 'ran for %s minutes'…
Locked. Enroll to open this MCQ.
MCQ 33
What will be the output after the following statements? x = 75 y = 60 z = 'ran for %s minutes'…
Locked. Enroll to open this MCQ.
MCQ 34
What will be the output after the following statements? x = 7 y = 6 z = 'He ran for %s minutes for…
Locked. Enroll to open this MCQ.
MCQ 35
What will be the output after the following statements? x = 'Python 2' y = 'Python 3' z = 'We can…
Locked. Enroll to open this MCQ.
MCQ 36
What will be the output after the following statements? x = ' ' print(x*5)
Locked. Enroll to open this MCQ.
MCQ 37
What will be the output after the following statements? x = 'no' y = 'yes' z = 'may be' a = [y, z,…
Locked. Enroll to open this MCQ.
MCQ 38
Which of the following is used by interpreter to identify code blocks?
Locked. Enroll to open this MCQ.
MCQ 39
Who was the Python programming language's creator?
Locked. Enroll to open this MCQ.
MCQ 40
What year was the Python programming language created?
Locked. Enroll to open this MCQ.
MCQ 41
Which of the following best describes the Python file extension?
Locked. Enroll to open this MCQ.
MCQ 42
What year did the Python 3.0 version come into being?
Locked. Enroll to open this MCQ.
MCQ 43
What does the Python language's definition of a block of code look like?
Locked. Enroll to open this MCQ.
MCQ 44
In Python, what character is used to create a single line comment?
Locked. Enroll to open this MCQ.
MCQ 45
Which of the following claims about Python's object-oriented programming model is true?
Locked. Enroll to open this MCQ.
MCQ 46
What in Python is the name of the function inside the class?
Locked. Enroll to open this MCQ.
MCQ 47
Why is it discouraged to begin local variable names with an underscore?
Locked. Enroll to open this MCQ.
MCQ 48
Which of the following doesn't qualify as a keyword in Python?
Locked. Enroll to open this MCQ.
MCQ 49
Which of the below claims about variable names in Python is true?
Locked. Enroll to open this MCQ.
MCQ 50
Which of the following also falls under the category of conditional expression:
Locked. Enroll to open this MCQ.
MCQ 51
What happens if an interpreter runs into an empty statement:
Locked. Enroll to open this MCQ.
MCQ 52
The names of the "function" and "var" are:
Locked. Enroll to open this MCQ.
MCQ 53
Which of the following is the appropriate method for executing JavaScript code?
Locked. Enroll to open this MCQ.
MCQ 54
Which type of variable among the following is volatile?
Locked. Enroll to open this MCQ.
MCQ 55
Which of the following selections serves as the literal hexadecimal start?
Locked. Enroll to open this MCQ.
MCQ 56
What does JavaScript output when an infinite or definite value is encountered during an arithmetic…
Locked. Enroll to open this MCQ.
MCQ 57
Which of the following does not constitute an error in JavaScript?
Locked. Enroll to open this MCQ.
MCQ 58
Which of the subsequent Number Object functions formats a number with a different number of digits…
Locked. Enroll to open this MCQ.
Get Python Programming Language updates by email
Short, practical lessons and course updates from Rumman Ansari. No spam.