Check sibling questions
Computer Science - Class 12
Chapter 14 - Functions in python

What will be the output of the following code? print (type(type(int)))

(a) type ‘int’

(b) <class ‘type’>

(c) Error

(d) <class ‘int’>

 

Answer:

The type( ) function returns the class type of the object passed as parameter.

So, type(type(int)) will return the class ‘type’.

Therefore, the output will be <class ‘type’> 

So, the correct answer is (b).

Are ads bothering you?

CA Maninder Singh's photo - Expert in Practical Accounts, Taxation and Efiling

Made by

CA Maninder Singh

CA Maninder Singh is a Chartered Accountant for the past 12 years. He also provides Accounts Tax GST Training in Delhi, Kerala and online.