What is the output of following code?
result = -14 // 4
print(result)
result = -14 // 4
print(result)
Anonymous Quiz
53%
-3
33%
-4
9%
-3.5
6%
3
Is Python case sensitive when dealing with identifiers?
Anonymous Quiz
80%
Yes
11%
No
5%
None of above
5%
Machine dependent
What is the maximum possible length of an identifier?
Anonymous Quiz
24%
31 characters
22%
63 characters
19%
79 characters
35%
none of the mentioned
Which of the following is not allowed in Python?
Anonymous Quiz
10%
_a = 1
17%
__a = 1
42%
str = 1
31%
none of the mentioned
Which of the following is an invalid variable?
Anonymous Quiz
13%
my_string_1
67%
1st_string
8%
foo
12%
_
Why are local variable names beginning with an underscore discouraged?
Anonymous Quiz
6%
they confuse the interpreter
13%
they are used to indicate global variables
79%
they are used to indicate a private variables of a class
3%
they slow down execution
All keywords in Python are in _____
Anonymous Quiz
34%
lower case
6%
UPPER CASE
21%
Capitalized
39%
None of the mentioned
Which of the following is true for variable names in Python?
Anonymous Quiz
25%
all private members must have leading and trailing underscores
18%
unlimited length
41%
underscore and ampersand are the only two special characters allowed
16%
none of the mentioned
Which of the following is an invalid statement?
Anonymous Quiz
13%
abc = 1,000,000
54%
a b c = 1000 2000 3000
22%
a,b,c = 1000, 2000, 3000
11%
a_b_c = 1,000,000
Which of the following cannot be a variable name in Python?
Anonymous Quiz
45%
init
11%
it
8%
on
36%
in
Which is the correct operator for power(x power y) in Python?
Anonymous Quiz
9%
x^y
86%
x**y
5%
x^^y
0%
None of the mentioned
the order of precedence in python?
Parentheses, Exponential, Multiplication , Division , Addition, Subtraction
Parentheses, Exponential, Multiplication , Division , Addition, Subtraction
Anonymous Quiz
90%
True
10%
False
Mathematical operations be directly performed on a string in Python without conversion.
Anonymous Quiz
53%
True
47%
False
👏1
Which one of the following has the same precedence level?
Anonymous Quiz
50%
Addition and Subtraction
16%
Multiplication, Division and Addition
29%
Multiplication, Division, Addition and Subtraction
5%
Addition and Multiplication
The expression int(x) implies that the value of variable x is converted to integer.
Anonymous Quiz
89%
True
11%
False
Which one of the following has the highest precedence in the expression?
Anonymous Quiz
22%
Exponential
7%
Addition
62%
Parentheses
8%
Multiplication
1- Which of the following is NOT a feature of OOP in Python?
Anonymous Quiz
5%
A) Inheritance
5%
B) Polymorphism
87%
C) Procedural Programming
3%
D) Encapsulation