Python||Assignment 3(Quiz) Solution ||2020
Assignment 3(Quiz)
1.Which of the following displays a code which iterates from
numbers 1 to 100, displays “fizz” if the number is divisible by a but not b,
displays “buzz” if the number is divisible by b but
not a and displays “fizzbuzz” if the number is divisible by both a and b. a and
b are inputs taken from the user.
Ans:-c
2.The below code displays
Ans:-d
3.What is the output of the following code?
Ans:-d
4.What is the output of the following code?
Ans:-c
5.Which of the following correctly represents a sum function
in Python.
Ans:-b
6.Which of the following statements correctly represents a
jumbled form of a given word. For example, if the word=“lion”, one of the
plausible outputs can be “oinl”.
Ans:-a
7.Given a variable word which is a string where no letter is
repeated, what does the following code snippet do?
Ans:-c
8.Assuming, there is no file named "file.txt" on my
computer, what does the following code do?
Ans:-d
9.Assuming, there is no file named "file.txt" on my
computer, what does the following code do?
Ans:-b
10.What is the output of the following code?
Ans:-b
Recheck Your Options
Questions
|
Answer
|
1.
|
C
|
2.
|
D
|
3.
|
D
|
4.
|
C
|
5.
|
B
|
6.
|
A
|
7.
|
C
|
8.
|
D
|
9.
|
B
|
10.
|
B
|
WE DO NOT GUARANTEE THE SOLUTIONS PLEASE RECHECK IT FROM YOUR SIDE
Leave a Comment