Data Types And Numeric Types MCQs
Practice Data Types And Numeric Types MCQs for competitive exams.
Data Types And Numeric Types MCQs
Practice questions from this topic.
What does 3 ^ 4 evaluate to?
Correct Answer: D
Select all options that print. hello-how-are-you
Correct Answer: C
What is the result of float("3.14") ?
Correct Answer: C
What will be the output of the following Python code snippet? def example(a): a = a + '2' a = a*2 return a >>>example("hello")
Correct Answer: A
Which of the following is not a complex number?
Correct Answer: C
What is the result of (3 + 4j) * (1 - 2j) ?
Correct Answer: C
What is the return type of function id?
Correct Answer: A
What is the purpose of the complex() function in Python?
Correct Answer: A
What error occurs when you execute the following Python code snippet? apple = mango
Correct Answer: B
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
Correct Answer: D
Which of the following will run without errors?
Correct Answer: A
What is the result of round(3.14159, 2) ?
Correct Answer: A
