Question 1 of 25
Hints left: 3
Q1
What is the average value of the following Python code snippet? >>>grade1 = 80 >>>grade2 = 90 >>>average = (grade1 + grade2) / 2
Q2
What is the result of round(0.5) - round(-0.5)?
Q3
What is the result of len("Hello, World!") ?
Q4
What is the result of int(3.999) ?
Q5
What is the result of (3 + 4j) * (1 - 2j) ?
Q6
What is the data type of the result of 10 / 2 ?
Q7
Which of the following is incorrect?
Q8
What does ~~~~~~5 evaluate to?
Q9
What is the result of round(3.14159, 2) ?
Q10
What error occurs when you execute the following Python code snippet? apple = mango
Q11
What is the result of int("5") + float("2.5") ?
Q12
What is the return type of function id?
Q13
What is the imaginary part of the complex number 3 + 4j ?
Q14
Which of the following will run without errors?
Q15
What does ~4 evaluate to?
Q16
What is the result of cmp(3, 1)?
Q17
The following is displayed by a print function call. Select all of the function calls that result in this output. tom dick harry
Q18
What data type is the object below? L = [1, 23, 'hello', 1]
Q19
What will be the output of the following Python code? >>>str="hello" >>>str[:2] >>>
Q20
In python we do not specify types, it is directly interpreted by the compiler, so consider the following operation to be performed. objective is to make sure x has a integer value, select all that apply (python 3.xx) >>>x = 13 ? 2
Q21
What is the data type of the result of "True" ?
Q22
What is the result of divmod(10, 3) ?
Q23
What is the result of abs(3 + 4j) ?
Q24
What is the purpose of the complex() function in Python?
Q25
What is the output of print 0.1 + 0.2 == 0.3?