Basics Flashcards
1
Q
An output statement can be written as?
A
Put “item” to output
2
Q
A string literal consists of?
A
Text (characters) within double quotes as in “Go #57!”
3
Q
What is a new line?
A
A special two-character sequence, /n, whose appearance in an output string literal causes the cursor to move to the next output line.
4
Q
A Put to output must be inside?
A
“Quotes”
5
Q
To have a space after a Put what must you do?
A
Enter a space at the end of the Put statement, “Put ”
6
Q
Given variable numCars = 9, what statement outputs 9?
A
Put numCars to output
7
Q
Put “salary” to output is equal to wage = ____ ____ ____
A
Get next input