Title | |
---|---|
What is the output of the code snippet shown belowWhat is the output of the code snippet shown below?
The answer is:
D. Error
|
|
Consider the snippet of code shown below and predict the outputConsider the snippet of code shown below and predict the output.
The answer is:
A. 56 blank spaces before compsci-bits
|
|
What is the output of the following expression if x=456What is the output of the following expression if x=456?
The answer is:
C. 456
|
|
What is the output of the following expression if X=345What is the output of the following expression if X=345?
The answer is:
C. 000345
|
|
Which of the following formatting options can be used in order to add ‘n’ blank spaces after a given string ‘S’Which of the following formatting options can be used in order to add ‘n’ blank spaces after a given string ‘S’?
The answer is:
D. print(“%-ns”%S)
|
|
What is the output of this expression if X= -122What is the output of this expression if X= -122?
The answer is:
C. –00122
|
|
What is the output of the following expression if the value of x is 34What is the output of the following expression if the value of x is 34?
The answer is:
D. 34.000000
|
|
What is the result of the expression shown below if x=56.236What is the result of the expression shown below if x=56.236?
The answer is:
B. 56.24
|
|
What is the output of this expression if x=22.19What is the output of this expression if x=22.19?
The answer is:
C. 22.19
|
|
State true or falseThe expression shown below results in an error.
The answer is:
B. False
|
|
The output of the snippet of code shown below isThe output of the snippet of code shown below is:
The answer is:
C. 1 hello 4 you
|
|
The output of which of the codes shown below will be: “There are 4 blue birds.”The output of which of the codes shown below will be: “There are 4 blue birds.”?
The answer is:
B. ‘There are %d %s birds.’ %(4, blue)
|
|
What is the output of the code shown below if the system date is 18th August, 2016What is the output of the code shown below if the system date is 18th August, 2016?
The answer is:
A. ‘integers:…1234…1234 …001234’
|
|
What is the output of the code shownWhat is the output of the code shown?
The answer is:
D. ‘3.345679 | 3.345679e+00 | 3.34568’
|
|
What is the output of the code shown belowWhat is the output of the code shown below?
The answer is:
A. ‘3.35 | 03.35 | +003.3’
|
|
What is the output of the code shownWhat is the output of the code shown?
The answer is:
B. (‘3.3456789’, ‘3.3456789’)
|
|
What is the output of the code shownWhat is the output of the code shown?
The answer is:
D. ‘1 more spam’
|
|
What is the output of the code shownWhat is the output of the code shown?
The answer is:
A. {‘a’ : ‘hello’, ‘q’ : 10, ……..plus built-in names set by Python….}
|
|
The output of the code shown below isThe output of the code shown below is:
The answer is:
C. ‘hello, good, and morning’
|
|
What is the output of the code shownWhat is the output of the code shown?
The answer is:
D. ‘mumbai, kolkata & delhi’
|
MCQs
Views
Best Answers
Points