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