Question 1 of 25
Hints left: 3
Q1
Why are local variable names beginning with an underscore discouraged?
Q2
What is the result of the expression 5 // 2 ?
Q3
What is the result of round(3.75) ?
Q4
What is the type of the result when you add an integer and a floating-point number?
Q5
Which of the following cannot be a variable?
Q6
What is the purpose of the modulo operator (%) in Python?
Q7
What is the result of 2 ** 3 ** 2 ?
Q8
Which of the following is a valid way to comment a single line in Python?
Q9
Mathematical operations can be performed on a string.
Q10
Which of the following is an invalid variable?
Q11
Which one of the following has the same precedence level?
Q12
What is the value of x after the following code: x = 5; x += 3; ?
Q13
Which operator is used to concatenate strings in Python?
Q14
Which of the following is invalid?
Q15
What is the purpose of the == operator in Python?
Q16
What is the result of 10 / 2 ?
Q17
What is the result of 3 ** 2 ?
Q18
What does the is operator test for?
Q19
What is the output of this expression, 3*1**3?
Q20
Which one of the following has the highest precedence in the expression?
Q21
What is the result of 10 // 3 ?
Q22
Which one of these is floor division?
Q23
What is the result of "hello" * 3 ?
Q24
What is the order of precedence in python? i) Parentheses ii) Exponential iii) Multiplication iv) Division v) Addition vi) Subtraction
-
A
-
B
-
C
-
D
Q25
What is the result of not (5 > 3) ?