Python||Assignment 4(Quiz) Solution ||2020
Assignment 4(Quiz)
1.What does the check_magic() function in the following code
do
Ans:-a
2.What does the following code do?
Ans:-d
3.Leap years are the years
1.
which divisible by 4 but not divisible by 100,and, those
2.
divisible by 400
Which of the following code does not
represent a code displaying all the leap years from 1 to 2000.
Ans:-c
4.What
does the following function do
Ans:-b
5.Which of the following code correctly represents how one can
display the number of dashes equal to that of the letters in the movie name?
Ans:-a
6.Given a list of movies, which of the following represents a
code which randonly chooses a movie amongst all?
Ans:-d
7.What does the following code do?
Ans:-b
8.Which numbers from 1 to 100 does the following code print?
Ans:-a
9.Which numbers from 1 to 100 does the following code print?
Ans:-b
10.Assume a drunkard whose movement is defined on the number
line, i.e. he can either move forward or backward. Assume he is standing at a position p. He takes 2 steps
forward followed by 4 steps backward. He falls into the pit as soon as he steps on the position zero. Which of the following
codes correctly represents his walk? A.
Ans:-a
Recheck Your Answer
Questions
|
Answer
|
1.
|
A
|
2.
|
D
|
3.
|
C
|
4.
|
B
|
5.
|
A
|
6.
|
D
|
7.
|
B
|
8.
|
A
|
9.
|
B
|
10.
|
A
|
WE DO NOT GUARANTEE THE SOLUTIONS PLEASE RECHECK IT FROM YOUR SIDE
Leave a Comment