What is the purpose of the modulo operator (%) in Python?
Select an option to see the answer and solution.
What is the result of round(3.75) ?
Select an option to see the answer and solution.
What is the output of this expression, 3*1**3?
Select an option to see the answer and solution.
What is the purpose of the == operator in Python?
Select an option to see the answer and solution.
Which of the following is invalid?
Select an option to see the answer and solution.
What is the result of not (5 > 3) ?
Select an option to see the answer and solution.
Which of the following is a valid way to comment a single line in Python?
Select an option to see the answer and solution.
Which one of the following has the same precedence level?
Select an option to see the answer and solution.
Which of the following is an invalid variable?
Select an option to see the answer and solution.
What is the result of "hello" * 3 ?
Select an option to see the answer and solution.
Which of the following cannot be a variable?
Select an option to see the answer and solution.
Why are local variable names beginning with an underscore discouraged?
Select an option to see the answer and solution.
What is the result of 10 // 3 ?
Select an option to see the answer and solution.
What is the result of the expression 5 // 2 ?
Select an option to see the answer and solution.
What is the order of precedence in python?
i) Parentheses
ii) Exponential
iii) Multiplication
iv) Division
v) Addition
vi) Subtraction
Select an option to see the answer and solution.
Mathematical operations can be performed on a string.
Select an option to see the answer and solution.
What is the result of 3 ** 2 ?
Select an option to see the answer and solution.
What does the is operator test for?
Select an option to see the answer and solution.
What is the value of x after the following code: x = 5; x += 3; ?
Select an option to see the answer and solution.
What is the type of the result when you add an integer and a floating-point number?
Select an option to see the answer and solution.