CSE 110 Midterm Study Guide EXAM (2025
updated) QUESTIONS AND ANSWERS (DETAILED
& ELABORATED) fully solved
Save
Terms in this set (34)
- names can contain only letters, digits, and
underscores
- names cannot start w/ a number
Rules for naming variables
- names cannot be any of the java keywords
-names cannot contain punctuation, spaces, and other
symbols
a compile-time error that violates the grammatical
What is a syntax error?
rules of the programming language
a run-time error that causes the program to behave
What is a logic error?
incorrectly
an error that occurs while the program in running
What is a run-time error?
(after the program is compiled)
What is a compile-time an error that is discovered during the compilation
error? process (before the program runs)
a run-time error that will cause the program to halt
What is an exception?
(crash) if it is not handled
a specification for encoding some type of information
What is a data type?
in binary so that the computer can manipulate it
Is Java's string data type a No it isn't. The Java data type String starts with a
primitive type? capital letter.
https://quizlet.com/1059675757/cse-110-midterm-study-guide-exam-2025-updated-questions-and-answers-detailed-elaborated-fully-solved-flash-cards… 1/6
, 7/11/25, 9:39 AM CSE 110 Midterm Study Guide EXAM (2025 updated) QUESTIONS AND ANSWERS (DETAILED & ELABORATED) fully solved Fla…
a name that refers to a memory location where a
What is a variable?
value is stored.
What is the declaration for <data type> <variable name> [=<expression>]
a variable?
How do you declare a final <data-type> CONSTANT_NAME = <value>;
constant?
- Parenthesis ()
What are the arithmetic
- Negation & Positive -,+
operators in order of
- Multiplication, Division, Modulus *, /, %
precedence?
- Addition, Subtraction +,-
How to instantiate a Scanner in = new Scanner (System.in);
scanner object?
%d : integer
What are the console %f : floating-point
output format specifiers? %s : string
%n : newline
nextInt()
nextByte()
What are the Scanner nextShort()
methods? nextLong()
nextDouble()
nextFloat()
\n - new line
What are the string literals \t - tab
for escape sequences? \" - double quote
\\ - back slash
name.length()
name.contains()
What are the smart
name.endsWith()
strings? If String name =
name.indexOf()
Bob
name.charAt()
name.substring()
https://quizlet.com/1059675757/cse-110-midterm-study-guide-exam-2025-updated-questions-and-answers-detailed-elaborated-fully-solved-flash-cards… 2/6