COMPUTER SCIENCE TEST QUESTIONS
EXAM WITH CORRECT QUESTIONS
AND ANSWERS 2025
PrintWriter - CORRECT-ANSWERSWhat is used for writing output to a file?
scanner - CORRECT-ANSWERSWhat is used when getting input from a file?
scanner - CORRECT-ANSWERSWhich of the following is not a primitive data type?
float
long
Scanner
Char
/n - CORRECT-ANSWERSWhich of the following is an example of an escape sequence?
/n
while
main
, Scanner
count == 1 - CORRECT-ANSWERSWhich of the following does not change the value of a
variable?
count++
count == 1
count += 1
count = 1
count = count + 1
Math.pow - CORRECT-ANSWERSWhich of the following should you use to compute the
value that results when raising one variable to the power of another (i.e,
exponentiation)?
Math.pow
Math.random
**
++
^
none
EXAM WITH CORRECT QUESTIONS
AND ANSWERS 2025
PrintWriter - CORRECT-ANSWERSWhat is used for writing output to a file?
scanner - CORRECT-ANSWERSWhat is used when getting input from a file?
scanner - CORRECT-ANSWERSWhich of the following is not a primitive data type?
float
long
Scanner
Char
/n - CORRECT-ANSWERSWhich of the following is an example of an escape sequence?
/n
while
main
, Scanner
count == 1 - CORRECT-ANSWERSWhich of the following does not change the value of a
variable?
count++
count == 1
count += 1
count = 1
count = count + 1
Math.pow - CORRECT-ANSWERSWhich of the following should you use to compute the
value that results when raising one variable to the power of another (i.e,
exponentiation)?
Math.pow
Math.random
**
++
^
none