CSE 1321 CORE EXAMS SET 2026/2027 QUESTIONS AND
SOLUTIONS RATED A+
✔✔The expression of a switch statement cannot - ✔✔-It cannot be a boolean value or a
floating-point value (float or double)
-You cannot perform relational checks with a switch statement
✔✔The expression of a switch statement must result in - ✔✔an integer type (byte, short,
int, long) or a char type.
✔✔ are just notes that explain the program to yourself and others. - ✔✔Comments
✔✔is just a name you give a variable - ✔✔An identifier
✔✔Spaces, blank lines, and tabs are called - ✔✔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. - ✔✔escape
sequence
✔✔\b - ✔✔is backspace. (e.g "B\bsecz\bret" prints what?) (escape sequence)
✔✔\t - ✔✔is tab. (escape sequence)
✔✔\n - ✔✔newline (escape sequence)
✔✔\r - ✔✔carriage return (escape sequence)
✔✔\" - ✔✔double quote (escape sequence)
✔✔\' - ✔✔single quote (escape sequence)
✔✔\\ - ✔✔backslash (escapae sequence)
✔✔A ------ is a name for a location in memory used to hold a data value. - ✔✔variable
✔✔A variable must be declared by - ✔✔specifying the variable's name and the type of
information that it will hold.
✔✔Assignment statements - ✔✔change the value of a variable
✔✔The assignment operator is the - ✔✔= sign
SOLUTIONS RATED A+
✔✔The expression of a switch statement cannot - ✔✔-It cannot be a boolean value or a
floating-point value (float or double)
-You cannot perform relational checks with a switch statement
✔✔The expression of a switch statement must result in - ✔✔an integer type (byte, short,
int, long) or a char type.
✔✔ are just notes that explain the program to yourself and others. - ✔✔Comments
✔✔is just a name you give a variable - ✔✔An identifier
✔✔Spaces, blank lines, and tabs are called - ✔✔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. - ✔✔escape
sequence
✔✔\b - ✔✔is backspace. (e.g "B\bsecz\bret" prints what?) (escape sequence)
✔✔\t - ✔✔is tab. (escape sequence)
✔✔\n - ✔✔newline (escape sequence)
✔✔\r - ✔✔carriage return (escape sequence)
✔✔\" - ✔✔double quote (escape sequence)
✔✔\' - ✔✔single quote (escape sequence)
✔✔\\ - ✔✔backslash (escapae sequence)
✔✔A ------ is a name for a location in memory used to hold a data value. - ✔✔variable
✔✔A variable must be declared by - ✔✔specifying the variable's name and the type of
information that it will hold.
✔✔Assignment statements - ✔✔change the value of a variable
✔✔The assignment operator is the - ✔✔= sign