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

1/3

Page

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

Which of the following is a valid data type in Python?

Select an option to see the answer and solution.

What is the result of type(3.14) ?

Select an option to see the answer and solution.

What data type is used to represent a sequence of characters in Python?

Select an option to see the answer and solution.

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

Select an option to see the answer and solution.

Which of these in not a core data type?

Select an option to see the answer and solution.

Given a function that does not return any value, What value is thrown by default when executed in shell.

Select an option to see the answer and solution.

What is the result of type(True) ?

Select an option to see the answer and solution.

In order to store values in terms of key and value we use what core data type.

Select an option to see the answer and solution.

How do you create a floating-point number in Python?

Select an option to see the answer and solution.

What is the result of int(3.9) ?

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.

How do you convert a string containing an integer to an integer data type?

Select an option to see the answer and solution.

Which of the following is not a numeric data type in Python?

Select an option to see the answer and solution.

What is the result of complex(3, 4) ?

Select an option to see the answer and solution.

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

Select an option to see the answer and solution.

What is the type of inf?

Select an option to see the answer and solution.

What is the result of 5 + 3.0 ?

Select an option to see the answer and solution.

What is the result of "5" + "3" ?

Select an option to see the answer and solution.

What is the result of "5" * 3 ?

Select an option to see the answer and solution.

What is the result of 5 // 2 ?

Select an option to see the answer and solution.