Quiz on Interpreter in Python
FREE Online Courses: Enroll Now, Thank us Later!
Quiz Summary
0 of 15 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Results
Results
0 of 15 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- Current
- Review / Skip
- Answered
- Correct
- Incorrect
-
Question 1 of 15
1. Question
Which of the following are the correct ways to run Python interactively?
CorrectIncorrect -
Question 2 of 15
2. Question
- What do ‘R’ and ‘E’ mean in ‘REPL’
CorrectIncorrect -
Question 3 of 15
3. Question
Place the steps performed by the Python interpreter in correct order.
(i) Execute the code
(ii) Compile the code
(iii) Process the programmer’s code sequentially
CorrectIncorrect -
Question 4 of 15
4. Question
Which of the following is the correct output on running the below code in Python?
print(“The output is:”)
print(“Hello!”)
CorrectIncorrect -
Question 5 of 15
5. Question
- Which of the following is the correct way to assign a number to a variable?
CorrectIncorrect -
Question 6 of 15
6. Question
Which of the following is the correct way to print the result of addition of 10 and 7 to get 17?
CorrectIncorrect -
Question 7 of 15
7. Question
- What is the result obtained on execution of the following code?
print(16/2)?
CorrectIncorrect -
Question 8 of 15
8. Question
Arrange the following blocks in a sequence to get a correct result.
(i)
m=n*4(ii)
n=2(iii)
print(“Value of m is:”m)CorrectIncorrect -
Question 9 of 15
9. Question
- Which of the following is the correct command to exit from an interpreter in Python?
CorrectIncorrect -
Question 10 of 15
10. Question
Which of the following is the correct way to write a multiline program?
a.
num=-2
if(num>0):
…print(“Number is positive”)
else:
… print(“Number is negative”)
b.
num=4
if(num>0):
…print(“Number is positive”)
else:
…print(“Number is negative”)
c.
num=4
if(num>0):
… print(Number is positive)
else:
… print(Number is negative)
d.
num=4
if(num>0):
… print(“Number is positive”)
else:
… print(“Number is negative”)
CorrectIncorrect -
Question 11 of 15
11. Question
- Which of the following variables stores the arguments in the command line?
CorrectIncorrect -
Question 12 of 15
12. Question
- Which of the following prints the file name in the command line argument?
CorrectIncorrect -
Question 13 of 15
13. Question
Which of the following is correct code to print the value in var=8.9?
CorrectIncorrect -
Question 14 of 15
14. Question
- Which of the following prints the 1st argument other than the file name in the command line argument?
CorrectIncorrect -
Question 15 of 15
15. Question
- How do you find the number of arguments passed to the python command line?
CorrectIncorrect