Python Programming Language Quiz 3

Python Programming Language Quiz 3

If obj is the object of the class containing  __str__(self) method. Which of the following commands are used to invoke this method?





What is the output of the following? namesa = ['Faheem', 'Ossama', 'Ammar'] namesb = [name.lower() for name in names1] print namesb[2][0]





We get the following whenever ‘1’ == 1 is executed 





What is the output of the following? z = ['cd', 'ab'] print(len(list(map(list, z))))





Which of the following functions is used to read data from a file?





Which one of these is floor division?





Which of the following is not a keyword?





~~~~~~5 evaluates to 





The output is string = "my name is nano" for j in ' '.join(string.split()): print (j end=", ")





Suppose x is 345.3546, format(x, “10.3f”) results in (_ indicates space)







Search

Shortcodes Ultimate

 
Follow Us
 
BGP