Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

assignment: pre - course assessment questions fa8pl10h.pre.03m 3. which…

Question

assignment: pre - course assessment
questions fa8pl10h.pre.03m

  1. which statement is a declaration for a string variable?

a. mobilenumber = \8445455640\
b. myvariable = x / 100
c. highscore = 34098
d. ageonbirthday = currentyear - birthyear

Explanation:

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).

Answer:

A. mobileNumber = "8445455640"