🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

निम्नलिखित में से कौन सा एक अमान्य चर है?

Which of the following is an invalid variable?

A
my_string_1
B
foo
C
__
D
1st_string
Explanation

The invalid variable in the list is:

(D) 1st_string

In most programming languages, variable names cannot start with a number. So, 1st_string is an invalid variable name because it starts with a digit (1).

The other options are valid variable names:

  • (A) my_string_1: This is valid.
  • (B) foo: This is valid.
  • (C) __: This is valid, though it's often used for special purposes in some languages (like Python). 
    • पायथन में वेरिएबल का नाम कभी भी अंक (digit) से शुरू नहीं हो सकता।

Correct Answer: D) 1st_string

Latest Updates