+ 2
what are valid c# variable name a) Bad_Var b) PersonAge c) #PersonName# d) 1Star
help me plz I tried but I failed this test help me out plz guys
20 Respostas
+ 10
Bad_Var
PersonAge
A C# variable can contain letters, numbers and underscores (_), but can't start with a number.
+ 3
option A and B are valid.
+ 2
PersonAge, Bad_Var is the correct answer, as both of them are not starting from a number or special character,. Also, they are following all the conditions that should be there being a c# variable name.
+ 1
bad_var , personAge is correct answer
0
Needs ti start with letter or underscore.. So a and b
0
Option B (PersonAge)... it's the only one that fully complies with the language's good practices.
0
you right fast name and second think is intiger edit
0
it can't start with anything that's not a letter
0
a,b
0
Bad_ Var
PersonAge
0
c#variable the correct answer percentage and bad_var
0
how Bad_Var? idk that Bad Variable is variable name. why?
0
Bad_Var
PersonAge
but you might use camelCase notation it would be better and it's common use too
like so:
bad_Var
badVar
personAge etc
0
b - a
0
a) & b)
- 1
bad_var
personage
- 1
Sheika, there are 2 correct answers for this question. the 2 that start with either a letter or an underscore are the correct one.
- 3
duuuuuuuuude
this is a question from the sololearn course.
just go to the course comments.
(they appearwhen you fail or pass the question)
geez
edit : sorry for the second line.
i did not pay attention to the description
- 6
personAge
- 6
This question is broken.