Which choice demonstrates the correct syntax for declaring a variable to represent the month in which a person was born?
Suggested Answer: C
Get Premium 1D0-735 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
34 comments · newest first
TH
Thaddeus
10 months ago
I thought it was supposed to be let or const now?
RO
Rozella
10 months ago
Wait, is Var even the right keyword?
XE
Xenia
10 months ago
Agreed, B is the right choice!
FR
Frederica
10 months ago
C and D are just wrong, no way!
CH
Chauncey
11 months ago
Definitely B! That's how you declare a variable.
IS
Isabella
11 months ago
I definitely recall that "Var" is used for variable declaration, but I can't remember if there's a specific format for the variable name itself.
KA
Kattie
11 months ago
I’m a bit confused about the "Var" part. I feel like I've seen it used differently in other examples.
JE
Jesusita
11 months ago
I remember practicing a question similar to this, and I think "Var birthMonth" was the answer. It seems straightforward.
WE
Wei
11 months ago
I think the correct syntax is just "Var birthMonth," but I'm not entirely sure if "Var" is the right keyword.
RO
Rosalind
12 months ago
I'm leaning towards Option B. It's a straightforward variable declaration without any unusual characters or formatting. The other options look like they might have syntax issues. I'll double-check my understanding, but I think B is the correct choice.
CO
Corazon
12 months ago
I'm a bit confused by this question. Can we use hyphens or question marks in variable names? I'm not sure about the rules for variable naming conventions. I'll have to review my notes before answering this.
ME
Melodie
12 months ago
Option B looks good to me. The variable name should be a single word without any special characters. The other options seem to have syntax errors.
TY
Ty
1 year ago
Hmm, I'm a little unsure about this one. I know we need to use the "Var" keyword, but I'm not sure if we can have spaces or special characters in the variable name. I'll have to think this through carefully.
BR
Brynn
1 year ago
I'm pretty sure the correct syntax is just "Var birthMonth". That's the standard way to declare a variable in most programming languages.
CL
Clemencia
1 year ago
D) Var %birthMonth - Ooh, the percent sign! Is this some kind of birthday discount or something?
JE
Jeffrey
1 year ago
D) Var %birthMonth - The percent sign is not the correct syntax for declaring a variable.
CA
Cary
1 year ago
B) Var birthMonth - Yes, this is the correct syntax for declaring a variable to represent the month of birth.
GE
Gearldine
1 year ago
A) Var -birthMonth - No, the hyphen is not the correct syntax for declaring a variable.
CE
Cecily
1 year ago
C) Var ?birthMonth - Hmm, the question mark makes it feel a little too curious for my liking. I'll pass on that one.
KA
Karina
1 year ago
D) Var %birthMonth - This one doesn't seem right to me.
PA
Paola
1 year ago
B) Var birthMonth - I think this one is the correct syntax.
EL
Elenor
1 year ago
A) Var -birthMonth - That looks like it might be the correct syntax.
SH
Shannan
1 year ago
A) Var -birthMonth - Nah, that's just asking for trouble. What's with the random dash, huh?
DE
Delmy
1 year ago
C) Var ?birthMonth - No, using a question mark in the variable name is not correct.
JA
Janessa
1 year ago
A) Var -birthMonth - Yeah, using a dash in the variable name is not a good idea.
CH
Cherry
1 year ago
B) Var birthMonth - That's the correct syntax for declaring a variable.
EL
Elina
1 year ago
B) Var birthMonth - Simple and straightforward, just like my birth month!
TA
Tamekia
1 year ago
D) Var %birthMonth
DO
Dorathy
1 year ago
C) Var ?birthMonth
BR
Brittni
1 year ago
B) Var birthMonth
RO
Rolf
1 year ago
A) Var -birthMonth
XO
Xochitl
1 year ago
I'm not sure, but I think C) Var ?birthMonth could also work if we want to use a special character.
KA
Kaycee
1 year ago
I agree with Paris, B) Var birthMonth makes sense because we don't need any special characters.
PA
Paris
2 years ago
I think the correct syntax is B) Var birthMonth.