Python - Things to know before proceed - Variable Quiz
# | Quiz |
---|---|
1
Discuss
|
Variable
Which of these in not a core data type?
Solution |
2
Discuss
|
Variable
Given a function that does not return any value, What value is thrown by default when executed in shell.
Solution |
3
Discuss
|
Variable
What will be the output of the following Python code?
Solution |
4
Discuss
|
Variable
Which of the following will run without errors?
Solution |
5
Discuss
|
Variable
What is the return type of function id?
Solution |
6
Discuss
|
Variable
In python we do not specify types, it is directly interpreted by the compiler, so consider the following operation to be performed.
the objective is to make sure x has an integer value, select all that apply
Solution |
7
Discuss
|
Variable
What error occurs when you execute the following Python code snippet?
Solution |
8
Discuss
|
Variable
What will be the output of the following Python code snippet?
Solution |
9
Discuss
|
Variable
What data type is the object below?
Solution |
10
Discuss
|
Variable
In order to store values in terms of key and value we use what core data type.
Solution |
11
Discuss
|
Variable
Which of the following results in a SyntaxError?
Solution |
12
Discuss
|
Variable
The following is displayed by a print function call. Select all of the function calls that result in this output.
Solution |
13
Discuss
|
Variable
What is the average value of the following Python code snippet?
Solution |
14
Discuss
|
Variable
What is the return value of trunc()?
Solution |
15
Discuss
|
Variable
Which is the correct operator for power(xy)?
Solution |
16
Discuss
|
Variable
Which one of these is floor division?
Solution |
17
Discuss
|
Variable
What is the order of precedence in python? i) Parentheses |
18
Discuss
|
Variable
What is the answer to this expression, 22 % 3 is?
Solution |
19
Discuss
|
Variable
Mathematical operations can be performed on a string.
Solution |
20
Discuss
|
Variable
Operators with the same precedence are evaluated in which manner?
Solution |
21
Discuss
|
Variable
What is the output of this expression, 3*1**3?
Solution |
22
Discuss
|
Variable
Which one of the following has the same precedence level?
Solution |
23
Discuss
|
Variable
The expression Int(x) implies that the variable x is converted to integer.
Solution |
24
Discuss
|
Variable
Which one of the following has the highest precedence in the expression?
Solution |
25
Discuss
|
Variable
The value of the expressions 4/(3*(2-1)) and 4/3*(2-1) is the same.
Solution |
26
Discuss
|
Variable
What will be the value of the following Python expression?
Solution |
27
Discuss
|
Variable
Evaluate the expression given below if A = 16 and B = 15.
Solution |
28
Discuss
|
Variable
Which of the following operators has its associativity from right to left?
Solution |
29
Discuss
|
Variable
What will be the value of x in the following Python expression?
Solution |
30
Discuss
|
Variable
What is the value of the following expression?
Solution |
31
Discuss
|
Variable
Which of the following is the truncation division operator?
Solution |
32
Discuss
|
Variable
What are the values of the following Python expressions?
Solution |
33
Discuss
|
Variable
What is the value of the following expression?
Solution |
34
Discuss
|
Variable
What is the value of the following expression?
Solution |
35
Discuss
|
Variable
It is not possible for the two’s complement value to be equal to the original value in any case.
Solution |
36
Discuss
|
Variable
The one’s complement of 110010101 is:
Solution |
# | Quiz |