CBSE Class 10 Computer Applications Question 6 of 31

Python Revision — Question 4

Back to all questions
4
Question

Question 4

In the following code a = '5'. a is a ............... :

  1. int
  2. string
  3. float
  4. number
Answer

string

Reason — A string literal is always enclosed in single quotes or double quotes.