MCQ
Which of the following syntax is used to declare a variable Gender with initial value ‘M’?
  • _Char = ‘M’
  • B
    _String = ‘M’
  • C
    Gender Char = ‘M’
  • D
    _Char as =’M’

Answer

Correct option: A.
_Char = ‘M’
_Char = ‘M’

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free