Which built-in Java class is used to read user input from the console?
A.
InputStream
B.
ConsoleReader
C.
Scanner
D.
UserPrompt
Which Java data type should be used to store a person's age, such as 25 or 42?
A.
double
B.
boolean
C.
int
D.
char
Which Java data type is best suited for storing a decimal number like 123.456 or 3.14?
A.
String
B.
double (or float)
C.
int
D.
boolean
Which data type should be used to store a person's name or a greeting like "Hello, World!" in Java?
A.
char
B.
boolean
C.
int
D.
String
Which Java data type is used to represent a single character enclosed in single quotes, such as 'A'?
A.
char
B.
String
C.
int
D.
double
Which data type can only hold two possible values: true or false?
A.
int
B.
boolean
C.
String
D.
char