Title | |
---|---|
What is the maximum possible length of an identifierWhat is the maximum possible length of an identifier?
The answer is:
D. none of the mentioned
|
|
Which of the following is invalidWhich of the following is invalid?
The answer is:
D. none of the mentioned
|
|
Why are local variable names beginning with an underscore discouragedWhy are local variable names beginning with an underscore discouraged?
The answer is:
A. they are used to indicate a private variables of a class
|
|
What is the value of the following expressionWhat is the value of the following expression:
The answer is:
A. (1,3)
|
|
Which among the following list of operators has the highest precedenceWhich among the following list of operators has the highest precedence?
The answer is:
B. **
|
|
What is the value of the expression |
|
Which of the following expressions is an example of type conversionWhich of the following expressions is an example of type conversion?
The answer is:
A. 4.0 + float(3)
|
|
Which of the following expressions results in an errorWhich of the following expressions results in an error?
The answer is:
D. int(’10.8’)
|
|
What is the value of the expression |
|
State true or false |
|
The output of the expression isThe output of the expression is:
The answer is:
B. ‘0b11101’
|
|
What is the value of x if |
|
What is the result of the expression |
|
State true or falseIt is not possible for the two’s complement value to be equal to the original value in any case.
The answer is:
B. False
|
|
The output of the snippet of code shown belowThe output of the snippet of code shown below?
The answer is:
D. True False
|
|
What is the output of the snippet of code shown belowWhat is the output of the snippet of code shown below?
The answer is:
C. hello
|
|
What is the output of the code shown belowWhat is the output of the code shown below?
The answer is:
B. True False
|
|
What is the output of the code shownWhat is the output of the code shown?
The answer is:
A. t
|
|
What is the output of the code shown belowWhat is the output of the code shown below?
The answer is:
D. [1, 2, ‘hello’]
|
|
What is the output of the following code if the system date is 21st June, 2017 (Wednesday)What is the output of the following code if the system date is 21st June, 2017 (Wednesday)?
The answer is:
C. {} [ ]
|
MCQs
Views
Best Answers
Points