CSE 511 COMPREHENSIVE EXAMS SET
TESTED QUESTIONS AND CORRECT
ANSWERS
●● is just a name you give a variable
Answer: An identifier
●● Spaces, blank lines, and tabs are called
Answer: 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.
Answer: escape sequence
●● \b
Answer: is backspace. (e.g "B\bsecz\bret" prints what?) (escape
sequence)
●● \t
Answer: is tab. (escape sequence)
,●● \n
Answer: newline (escape sequence)
●● \r
Answer: carriage return (escape sequence)
●● \"
Answer: double quote (escape sequence)
●● \'
Answer: single quote (escape sequence)
●● \\
Answer: backslash (escapae sequence)
●● A ------ is a name for a location in memory used to hold a data value.
Answer: variable
●● A variable must be declared by
Answer: specifying the variable's name and the type of information that
it will hold.
, ●● Assignment statements
Answer: change the value of a variable
●● The assignment operator is the
Answer: = sign
●● Use all CAPITAL LETTERS for ------ and separate words with an
underscore
Answer: constants
●● Values that cannot change
Answer: constants
●● If a ------ is used in multiple places, its value need only be updated in
one place
Answer: constant
●● Data type tells compiler:
Answer: -How much memory to allocate
-Format in which to store data
-Types of operations you will perform on data
●● 8 simple data types:
TESTED QUESTIONS AND CORRECT
ANSWERS
●● is just a name you give a variable
Answer: An identifier
●● Spaces, blank lines, and tabs are called
Answer: 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.
Answer: escape sequence
●● \b
Answer: is backspace. (e.g "B\bsecz\bret" prints what?) (escape
sequence)
●● \t
Answer: is tab. (escape sequence)
,●● \n
Answer: newline (escape sequence)
●● \r
Answer: carriage return (escape sequence)
●● \"
Answer: double quote (escape sequence)
●● \'
Answer: single quote (escape sequence)
●● \\
Answer: backslash (escapae sequence)
●● A ------ is a name for a location in memory used to hold a data value.
Answer: variable
●● A variable must be declared by
Answer: specifying the variable's name and the type of information that
it will hold.
, ●● Assignment statements
Answer: change the value of a variable
●● The assignment operator is the
Answer: = sign
●● Use all CAPITAL LETTERS for ------ and separate words with an
underscore
Answer: constants
●● Values that cannot change
Answer: constants
●● If a ------ is used in multiple places, its value need only be updated in
one place
Answer: constant
●● Data type tells compiler:
Answer: -How much memory to allocate
-Format in which to store data
-Types of operations you will perform on data
●● 8 simple data types: