CSCI 1301 Java Final
Study Guide fully
solved 2025(graded
A+)
What is a program? - answer A program is a set of instructions that
a computer follows to perform a task.
How many bits are in a byte? - answer 8
Is this a valid java variable?
boolean 18isLegal = false; - answer False
Java variables cannot start with a number
Are Java variables case sensitive?
T/F - answer True
What does JVM stand for? - answer Java Virtual Machine
JVM is specifically responsible for converting bytecode to machine-
specific code
Are char variables internally represented as numbers? - answer Yes
, When Java converts a lower- ranked value to a higher- ranked type,
it is called a( n) __________. - answer Widening Conversion
This type of operator lets you manually convert a value, even if it
means that a narrowing conversion will take place. - answer Cast
Listen the different types of primitive types of Data - answer a) byte
b) short
c) int
d) long
e) float
f) double
g) char
h) boolean
The if statement is an example of a __________ - answer decision
structure
This type of expression has a value of either true or false. - answer
Boolean Expression
This is a boolean variable that signals when some condition exists in
the program. - answer flag
The = operator and == operator perform the same operation
T/F - answer True
What is each repetition of a loop known as? - answer iteration
Study Guide fully
solved 2025(graded
A+)
What is a program? - answer A program is a set of instructions that
a computer follows to perform a task.
How many bits are in a byte? - answer 8
Is this a valid java variable?
boolean 18isLegal = false; - answer False
Java variables cannot start with a number
Are Java variables case sensitive?
T/F - answer True
What does JVM stand for? - answer Java Virtual Machine
JVM is specifically responsible for converting bytecode to machine-
specific code
Are char variables internally represented as numbers? - answer Yes
, When Java converts a lower- ranked value to a higher- ranked type,
it is called a( n) __________. - answer Widening Conversion
This type of operator lets you manually convert a value, even if it
means that a narrowing conversion will take place. - answer Cast
Listen the different types of primitive types of Data - answer a) byte
b) short
c) int
d) long
e) float
f) double
g) char
h) boolean
The if statement is an example of a __________ - answer decision
structure
This type of expression has a value of either true or false. - answer
Boolean Expression
This is a boolean variable that signals when some condition exists in
the program. - answer flag
The = operator and == operator perform the same operation
T/F - answer True
What is each repetition of a loop known as? - answer iteration