CSE 1321 TEST 1 EXAM 2025/2026
QUESTIONS AND ANSWERS 100% PASS
Are just notes that explain the program to yourself and others. - ANS Comments
is just a name you give a variable - ANS An identifier
Spaces, blank lines, and tabs are called - ANS white space;
Used to separate words and symbols in a program. Extra white space is ignored
Printing an -------- prints a special character in an output string. - ANS escape sequence
\b - ANS is backspace. (e.g "B\bsecz\bret" prints what?) (escape sequence)
\t - ANS is tab. (escape sequence)
\n - ANS newline (escape sequence)
\r - ANS carriage return (escape sequence)
1 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.
, \" - ANS double quote (escape sequence)
\' - ANS single quote (escape sequence)
\\ - ANS backslash (escapae sequence)
A ------ is a name for a location in memory used to hold a data value. - ANS variable
A variable must be declared by - ANS specifying the variable's name and the type of
information that it will hold.
Assignment statements - ANS change the value of a variable
The assignment operator is the - ANS = sign
Use all CAPITAL LETTERS for ------ and separate words with an underscore - ANS constants
Values that cannot change - ANS constants
If a ------ is used in multiple places, its value need only be updated in one place -
ANS constant
Data type tells compiler: - ANS -How much memory to allocate
-Format in which to store data
-Types of operations you will perform on data
2 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.
QUESTIONS AND ANSWERS 100% PASS
Are just notes that explain the program to yourself and others. - ANS Comments
is just a name you give a variable - ANS An identifier
Spaces, blank lines, and tabs are called - ANS white space;
Used to separate words and symbols in a program. Extra white space is ignored
Printing an -------- prints a special character in an output string. - ANS escape sequence
\b - ANS is backspace. (e.g "B\bsecz\bret" prints what?) (escape sequence)
\t - ANS is tab. (escape sequence)
\n - ANS newline (escape sequence)
\r - ANS carriage return (escape sequence)
1 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.
, \" - ANS double quote (escape sequence)
\' - ANS single quote (escape sequence)
\\ - ANS backslash (escapae sequence)
A ------ is a name for a location in memory used to hold a data value. - ANS variable
A variable must be declared by - ANS specifying the variable's name and the type of
information that it will hold.
Assignment statements - ANS change the value of a variable
The assignment operator is the - ANS = sign
Use all CAPITAL LETTERS for ------ and separate words with an underscore - ANS constants
Values that cannot change - ANS constants
If a ------ is used in multiple places, its value need only be updated in one place -
ANS constant
Data type tells compiler: - ANS -How much memory to allocate
-Format in which to store data
-Types of operations you will perform on data
2 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.