VITyarthi Python Essentials Module 4 Quiz Answer

Question 1

Is Python case sensitive when we use identifiers?

  1. True
  2. False
  1. True

Question 2

What is the escape sequence used to create a newline?

  1. \n
  2. \b
  3. \t
  4. None

  1. \n

Question 3

The ASCII value of UPPERCASE LETTERS starts with 65 and the lowercase letter starts with 97 What is the output of the following code? print(‘[%c]’ % 67)

[C]

Question 4

What is the output of the following ? print(‘I Like{1}” ”{0}.format(‘Philosophy’,’Zen’)).

  1. I Like Zen” “Philosophy
  2. I Like Zen Philosophy

  1. I Like Zen” “Philosophy

Question 5

In string.split() method the default separator is any whitespace? State True or False

  1. True
  2. False

  1. True

Question 6

Which of the following input functions is used to get more than one input from the user?

  1. input()
  2. map()
  3. map(input())
  4. All the above

3. map(input())

Question 7

What is the output of the following? Provide input a to 2, b to 3 and c to 4. a,b,c=map(float, input(“Enter three numbers “).split()) print(a*b/c)

1.5

If you find anything wrong in this Answer Key, feel free to reach us in the comment section.

Sharing Is Caring:

4 thoughts on “VITyarthi Python Essentials Module 4 Quiz Answer”

Leave a Comment