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