No student devices needed. Know more
10 questions
What is the answer to this expression, 22%3 is
7
1
0
5
Which is the correct operator for power xy
x^y
x**y
x^^y
None of these
Which one of theses is floor division
/
//
%
None of theses
What is the order of precedence in Python?
i. Parenthesis
ii. Exponential
iii. Multiplication
iv. Division
v. Addition
vi. Subtraction
i, ii, iii, iv, v, vi
ii, i, iii, iv, v, vi
ii, i, iv, iii, v, vi
i, ii, iii, vi, v, iv
Mathematical operations can be performed on a string
True
False
Operators with same precedence are evaluated in which manner?
Left to Right
Right to Left
Can't Say
None of the mentioned
What is the output of this expression, 3*1**3
27
9
3
1
Which of the following is true for variable names in python?
Unlimited Length
all private members must have leading and trailing underscores
underscores and ampersand are only two special characters allowed
None of these
Which of the following is an invalid variable?
my_string_1
1st_string
foo
-
is Python case sensitive when dealing with identifiers?
yes
no
machine dependent
none of these
Explore all questions with a free account