Vidyalelo
Python · all questions

MCQs for Python Data Types and Numeric Types Chapter
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

54

Questions

3/3

Page

Pick an option on a question to see the right answer and solution.

Which of the following will run without errors?

Select an option to see the answer and solution.

What is the data type of the result of 10 / 2 ?

Select an option to see the answer and solution.

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

Select an option to see the answer and solution.

What error occurs when you execute the following Python code snippet?
apple = mango

Select an option to see the answer and solution.

What is the purpose of the complex() function in Python?

Select an option to see the answer and solution.

What is the return type of function id?

Select an option to see the answer and solution.

What is the result of (3 + 4j) * (1 - 2j) ?

Select an option to see the answer and solution.

Which of the following is not a complex number?

Select an option to see the answer and solution.

What will be the output of the following Python code snippet?
def example(a):
    a = a + '2'
     a = a*2
    return a
>>>example("hello")

Select an option to see the answer and solution.

What is the result of float("3.14") ?

Select an option to see the answer and solution.

Select all options that print.
hello-how-are-you

Select an option to see the answer and solution.

Which of the following is incorrect?

Select an option to see the answer and solution.

What is the result of float("3.14") ?

Select an option to see the answer and solution.

What does 3 ^ 4 evaluate to?

Select an option to see the answer and solution.