Attend MockTest

  1. What is the output of print list if list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]?





  2. What is the output of print list[0] if list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]?





  3. What is the output of print list[1:3] if list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]?





  4. What is the output of print list[1:3] if list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]?





  5. What is the output of print list[2:] if list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]?





  6. What is the output of print tinylist * 2 if tinylist = [123, 'john']?





  7. Which of the following is correct about tuples in python?





  8. What is the output of print list if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?





  9. What is the output of print tuple[0] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?





  10. What is the output of print tuple[1:3] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?





  11. What is the output of print tuple[2:] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?





  12. What is the output of print tinytuple * 2 if tinytuple = (123, 'john')?





  13. Which of the following is correct about dictionaries in python?





  14. Which of the following function of dictionary gets all the keys from the dictionary?





  15. Which of the following function of dictionary gets all the values from the dictionary?