Basic quiz python ( data type)

1.) What will be the data type of following code ?
num = 10
print ( type (num) )

a.) int
b.) float
c.) string
d.) bool

2.) What will be the data type of following code ?
num = 10 .5
print ( type (num) )

a.) int
b.) float
c.) string
d.) bool

3.) What will be the data type of following code ?
num = β€œ10”
print ( type (num) )

a.) int
b.) float
c.) string
d.) bool

4.) What will be the data type of following code ?
num = True
print ( type (num) )

a.) int
b.) float
c.) string
d.) bool

2 Likes
  1. int
    2)float
  2. string
  3. bool
1 Like
  1. a - int
  2. b - float
  3. c - string
  4. d - bool
1 Like
  1. int (a)
  2. float (b)
  3. string (c)
  4. bool (d)
1 Like
  1. int
  2. float
  3. string
  4. bool
1 Like

1- int
2- float
3- string
4- bool

1 Like
  1. (a) int
  2. (b) float
  3. (c) string
  4. (d) bool
1 Like

Amazing guys , keep it up

  1. .int
  2. Float
  3. String
  4. Bool
1 Like

That’s correct @umashreekaldibashett

1 Like