No Short Description Present
| # | Quiz |
|---|---|
|
1
Discuss
|
How to install Python ?
Is Python case sensitive when dealing with identifiers?
Solution |
|
2
Discuss
|
How to install Python ?
What is the maximum possible length of an identifier?
Solution |
|
3
Discuss
|
How to install Python ?
Which of the following is invalid?
Solution |
|
4
Discuss
|
How to install Python ?
Which of the following is an invalid variable?
Solution |
|
5
Discuss
|
How to install Python ?
Why are local variable names beginning with an underscore discouraged?
Solution |
|
6
Discuss
|
How to install Python ?
Which of the following is not a keyword?
Solution |
|
7
Discuss
|
How to install Python ?
All keywords in Python are in _________
Solution |
|
8
Discuss
|
How to install Python ?
Which of the following is true for variable names in Python?
Solution |
|
9
Discuss
|
How to install Python ?
Which of the following is an invalid statement?
Solution |
|
10
Discuss
|
How to install Python ?
Which of the following cannot be a variable?
Solution |
|
11
Discuss
|
How to install Python ?
What is the output of print 0.1 + 0.2 == 0.3?
Solution |
|
12
Discuss
|
How to install Python ?
Which of the following is not a complex number?
Solution |
|
13
Discuss
|
How to install Python ?
What is the type of inf?
Solution |
|
14
Discuss
|
How to install Python ?
What does ~4 evaluate to?
Solution |
|
15
Discuss
|
How to install Python ?
What does ~~~~~~5 evaluate to?
Solution |
|
16
Discuss
|
How to install Python ?
Which of the following is incorrect?
Solution |
|
17
Discuss
|
How to install Python ?
What is the result of cmp(3, 1)?
Solution |
|
18
Discuss
|
Variable
Which of these in not a core data type?
Solution |
|
19
Discuss
|
Variable
Given a function that does not return any value, What value is thrown by default when executed in shell.
Solution |
|
20
Discuss
|
Variable
What will be the output of the following Python code?
Solution |
|
21
Discuss
|
Variable
Which of the following will run without errors?
Solution |
|
22
Discuss
|
Variable
What is the return type of function id?
Solution |
|
23
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 |
|
24
Discuss
|
Variable
What error occurs when you execute the following Python code snippet?
Solution |
|
25
Discuss
|
Variable
What will be the output of the following Python code snippet?
Solution |
|
26
Discuss
|
Variable
What data type is the object below?
Solution |
|
27
Discuss
|
Variable
In order to store values in terms of key and value we use what core data type.
Solution |
|
28
Discuss
|
Variable
Which of the following results in a SyntaxError?
Solution |
|
29
Discuss
|
Variable
The following is displayed by a print function call. Select all of the function calls that result in this output.
Solution |
|
30
Discuss
|
Variable
What is the average value of the following Python code snippet?
Solution |
|
31
Discuss
|
Variable
What is the return value of trunc()?
Solution |
|
32
Discuss
|
Variable
Which is the correct operator for power(xy)?
Solution |
|
33
Discuss
|
Variable
Which one of these is floor division?
Solution |
|
34
Discuss
|
Variable
What is the order of precedence in python? i) Parentheses |
|
35
Discuss
|
Variable
What is the answer to this expression, 22 % 3 is?
Solution |
|
36
Discuss
|
Variable
Mathematical operations can be performed on a string.
Solution |
|
37
Discuss
|
Variable
Operators with the same precedence are evaluated in which manner?
Solution |
|
38
Discuss
|
Variable
What is the output of this expression, 3*1**3?
Solution |
|
39
Discuss
|
Variable
Which one of the following has the same precedence level?
Solution |
|
40
Discuss
|
Variable
The expression Int(x) implies that the variable x is converted to integer.
Solution |
|
41
Discuss
|
Variable
Which one of the following has the highest precedence in the expression?
Solution |
|
42
Discuss
|
Variable
The value of the expressions 4/(3*(2-1)) and 4/3*(2-1) is the same.
Solution |
|
43
Discuss
|
Variable
What will be the value of the following Python expression?
Solution |
|
44
Discuss
|
Variable
Evaluate the expression given below if A = 16 and B = 15.
Solution |
|
45
Discuss
|
Variable
Which of the following operators has its associativity from right to left?
Solution |
|
46
Discuss
|
Variable
What will be the value of x in the following Python expression?
Solution |
|
47
Discuss
|
Variable
What is the value of the following expression?
Solution |
|
48
Discuss
|
Variable
Which of the following is the truncation division operator?
Solution |
|
49
Discuss
|
Variable
What are the values of the following Python expressions?
Solution |
|
50
Discuss
|
Variable
What is the value of the following expression?
Solution |
|
51
Discuss
|
Variable
What is the value of the following expression?
Solution |
|
52
Discuss
|
Variable
It is not possible for the two’s complement value to be equal to the original value in any case.
Solution |
|
53
Discuss
|
Variable
The one’s complement of 110010101 is:
Solution |
|
54
Discuss
|
Keyword
What will be the output of the following Python code snippet?
Solution |
|
55
Discuss
|
Keyword
What will be the output of the following Python expression if x=456?
Solution |
|
56
Discuss
|
Keyword
What will be the output of the following Python expression if X=345?
Solution |
|
57
Discuss
|
Keyword
Which of the following formatting options can be used in order to add ‘n’ blank spaces after a given string ‘S’?
Solution |
|
58
Discuss
|
Keyword
What will be the output of the following Python expression if X = -122?
Solution |
|
59
Discuss
|
Keyword
What will be the output of the following Python expression if the value of x is 34?
Solution |
|
60
Discuss
|
Keyword
What will be the output of the following Python expression if x=56.236?
Solution |
|
61
Discuss
|
Keyword
What will be the output of the following Python expression if x=22.19?
Solution |
|
62
Discuss
|
Keyword
The expression shown below results in an error.
Solution |
|
63
Discuss
|
Syntax ( Indentation, Comments )
Bitwise _________ gives 1 if either of the bits is 1 and 0 when both of the bits are 1.
Solution |
|
64
Discuss
|
Syntax ( Indentation, Comments )
What will be the output of the following Python expression?
Solution |
|
65
Discuss
|
Syntax ( Indentation, Comments )
Any odd number on being AND-ed with ________ always gives 1. Hint: Any even number on being AND-ed with this value always gives 0.
Solution |
|
66
Discuss
|
Syntax ( Indentation, Comments )
What will be the value of the following Python expression?
Solution |
|
67
Discuss
|
Syntax ( Indentation, Comments )
Which of the following expressions can be used to multiply a given number ‘a’ by 4?
Solution |
|
68
Discuss
|
Syntax ( Indentation, Comments )
What will be the output of the following Python code if a=10 and b =20?
Solution |
|
69
Discuss
|
Syntax ( Indentation, Comments )
What is the two’s complement of -44?
Solution |
|
70
Discuss
|
Syntax ( Indentation, Comments )
What will be the output of the following Python expression?
Solution |
|
71
Discuss
|
Syntax ( Indentation, Comments )
What will be the output of the following Python expression?
Solution |
|
72
Discuss
|
Syntax ( Indentation, Comments )
What will be the value of X in the following Python expression?
Solution |
|
73
Discuss
|
Syntax ( Indentation, Comments )
Which of the following expressions involves coercion when evaluated in Python?
Solution |
|
74
Discuss
|
Syntax ( Indentation, Comments )
What will be the output of the following Python expression?
Solution |
|
75
Discuss
|
Syntax ( Indentation, Comments )
Which among the following list of operators has the highest precedence?
Solution |
|
76
Discuss
|
Syntax ( Indentation, Comments )
What will be the value of the following Python expression?
Solution |
|
77
Discuss
|
Syntax ( Indentation, Comments )
Which of the following expressions is an example of type conversion?
Solution |
|
78
Discuss
|
Syntax ( Indentation, Comments )
Which of the following expressions results in an error?
Solution |
|
79
Discuss
|
Syntax ( Indentation, Comments )
What will be the value of the following Python expression?
Solution |
|
80
Discuss
|
Syntax ( Indentation, Comments )
The expression 2**2**3 is evaluates as: (2**2)**3.
Solution |
|
81
Discuss
|
Syntax ( Indentation, Comments )
What will be the output of the following Python code snippet?
Solution |
|
82
Discuss
|
Syntax ( Indentation, Comments )
What will be the output of the following Python code snippet?
Solution |
|
83
Discuss
|
Syntax ( Indentation, Comments )
What will be the output of the following Python code snippet?
Solution |
|
84
Discuss
|
Syntax ( Indentation, Comments )
What will be the output of the following Python code?
Solution |
|
85
Discuss
|
Syntax ( Indentation, Comments )
What will be the output of the following Python code?
Solution |
|
86
Discuss
|
Syntax ( Indentation, Comments )
What will be the output of the following Python code?
Solution |
|
87
Discuss
|
Syntax ( Indentation, Comments )
What will be the output of the following Python code?
Solution |
|
88
Discuss
|
Syntax ( Indentation, Comments )
Which of the following Boolean expressions is not logically equivalent to the other three?
Solution |
|
89
Discuss
|
Syntax ( Indentation, Comments )
What will be the output of the following Python code snippet?
Solution |
|
90
Discuss
|
Syntax ( Indentation, Comments )
What will be the output of the following Python code snippet if x=1?
Solution |
|
91
Discuss
|
Syntax ( Indentation, Comments )
What will be the output of the following Python expression?
Solution |
|
92
Discuss
|
Syntax ( Indentation, Comments )
What will be the value of x in the following Python expression, if the result of that expression is 2?
Solution |
|
93
Discuss
|
Syntax ( Indentation, Comments )
What will be the output of the following Python expression?
Solution |
|
94
Discuss
|
Syntax ( Indentation, Comments )
To find the decimal value of 1111, that is 15, we can use the function:
Solution |
|
95
Discuss
|
Syntax ( Indentation, Comments )
What will be the output of the following Python expression if x=15 and y=12?
Solution |
|
96
Discuss
|
Syntax ( Indentation, Comments )
Which of the following expressions results in an error?
Solution |
|
97
Discuss
|
Syntax ( Indentation, Comments )
Which of the following represents the bitwise XOR operator?
Solution |
|
98
Discuss
|
Syntax ( Indentation, Comments )
What is the value of the following Python expression?
Solution |
|
99
Discuss
|
Syntax ( Indentation, Comments )
What will be the output of the following Python expression?
Solution |
| # | Quiz |
Copyright © 2020 Inovatik - All rights reserved