Exercise: Questions on Data Type


Questions on Data Type : Question 1 :
Which of these is not a core data type?

Lists
Dictionary
Tuples
Class
Show Answer
Questions on Data Type : Question 2 :
What data type is the object below ? L = [1, 23, ‘hello’, 1]

List
Dictionary
Tuple
Array
Show Answer
Questions on Data Type : Question 3 :
Which of the following function convert a string to a float in python?

int(x [,base])
long(x [,base] )
float(x)
str(x)
Show Answer
Questions on Data Type : Question 4 :
Which of the following statement(s) is TRUE?
  1. A hash function takes a message of arbitrary length and generates a fixed length code.
  2. A hash function takes a message of fixed length and generates a code of variable length.
  3. A hash function may give the same hash value for distinct messages.
 

I only
II and III only
I and III only
II only
Show Answer