No student devices needed. Know more
10 questions
A type that represents sequences of characters.
A statement that assigns a value to a variable.
A section of code that represents a command or action. The _____________ we have seen are assignments and print statements.
The operation that divides two numbers and chops off the fraction part.
A combination of variables, operators, and values that represents a single result value.
What is the order of precedence in python?
i) Parentheses
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,iv,vi,v
What is answer of this expression, 22 % 3 is?
7
1
0
5
The expression Int(x) implies that the variable x is converted to integer. State whether true or false.
True
False
Which is the correct operator for power(xy)?
x^y
x**y
x^^y
None
What is the output of the following?
i = 1
while True:
if i%3 == 0:
break
print(i)
i + = 1
2 4 6 8 10 ...
2 4
2 3
error
Explore all questions with a free account