CSIT Exam 1 2026 Questions and
Answers
Byte code instructions are: - Correct answer-Read and interpreted by the JVM
If the value of the int qty is 167 before this statement is executed, what will its
value be after the following statement is executed?
System.out.println(qty); - Correct answer-167
Primitive data types - Correct answer-byte, short, int, long, float, double, boolean,
char
Non-primitive data types - Correct answer-String, arrays, classes
Valid numeric constants - Correct answer-Consists of numerals, an optional leading
sign, and an optional decimal point (examples: 5.0, 6, - 5)
A value that cannot change during program execution is referred to as what? -
Correct answer-A constant
What is the output of the following?
©COPYRIGHT 2025, ALL RIGHTS RESERVED 1
, System.out.println( (25/4 + 4 * ) ); - Correct answer-19
Why is the declaration statement is invalid?
double class; - Correct answer-class is a keyword
What will be output of the following?
int temporaryValue;
temporaryValue = (18 + 9) / 5 + 4;
System.out.println(temporaryValue); - Correct answer-9
What will be output of the following?
double temporaryValue;
temporaryValue = (18 + 9) / (5 + 4);
System.out.println(temporaryValue); - Correct answer-3.0
©COPYRIGHT 2025, ALL RIGHTS RESERVED 2
Answers
Byte code instructions are: - Correct answer-Read and interpreted by the JVM
If the value of the int qty is 167 before this statement is executed, what will its
value be after the following statement is executed?
System.out.println(qty); - Correct answer-167
Primitive data types - Correct answer-byte, short, int, long, float, double, boolean,
char
Non-primitive data types - Correct answer-String, arrays, classes
Valid numeric constants - Correct answer-Consists of numerals, an optional leading
sign, and an optional decimal point (examples: 5.0, 6, - 5)
A value that cannot change during program execution is referred to as what? -
Correct answer-A constant
What is the output of the following?
©COPYRIGHT 2025, ALL RIGHTS RESERVED 1
, System.out.println( (25/4 + 4 * ) ); - Correct answer-19
Why is the declaration statement is invalid?
double class; - Correct answer-class is a keyword
What will be output of the following?
int temporaryValue;
temporaryValue = (18 + 9) / 5 + 4;
System.out.println(temporaryValue); - Correct answer-9
What will be output of the following?
double temporaryValue;
temporaryValue = (18 + 9) / (5 + 4);
System.out.println(temporaryValue); - Correct answer-3.0
©COPYRIGHT 2025, ALL RIGHTS RESERVED 2