1. (TCO 4) If firstName and lastName are string object variables, which statemen
ID: 3533059 • Letter: 1
Question
1. (TCO 4) If firstName and lastName are string object variables, which statement can be used to combine (append or concatenate) the two into a single string variable? (Points : 7)
fullName = firstName + lastName;
fullName = firstName, lastName;
fullName = firstName & lastName;
fullName = firstName && lastName;
2. (TCO 4) A variable declared before and outside all function blocks (Points : 7)
is visible only in main.
is visible to all functions.
is visible to all functions except main.
is not visible to any functions.
3. (TCO 4) Which of the following expressions is correct if you want to end a while-loop when the character variable keepgoing is anything other than character y in either upper or lowercase?
while (keepgoing ==
1. (TCO 4) If firstName and lastName are string object variables, which statement can be used to combine (append or concatenate) the two into a single string variable? (Points : 7)
fullName = firstName + lastName;
fullName = firstName, lastName;
fullName = firstName & lastName;
fullName = firstName && lastName;
2. (TCO 4) A variable declared before and outside all function blocks (Points : 7)
is visible only in main.
is visible to all functions.
is visible to all functions except main.
is not visible to any functions.
3. (TCO 4) Which of the following expressions is correct if you want to end a while-loop when the character variable keepgoing is anything other than character y in either upper or lowercase?
while (keepgoing ==
Explanation / Answer
1. fullName = firstName + lastName;
2. is visible to all functions.
3. while (keepgoing ==
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.