QUESTION IMAGE
Question
assignment: pre - course assessment
questions fa8pl10h.pre.03m
- which statement is a declaration for a string variable?
a. mobilenumber = \8445455640\
b. myvariable = x / 100
c. highscore = 34098
d. ageonbirthday = currentyear - birthyear
Brief Explanations
A string variable is one that holds text - like data. Option a has a variable assigned a sequence of characters (phone number) in quotes, which is a string. Option b is a division operation, option c is an integer assignment, and option d is a calculation for an age (result is likely a number).
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
A. mobileNumber = "8445455640"