
ITE106-A MIDTERM WRITTEN EXAM
Quiz by Seven P. Martinez
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
Which of the following is NOT a primitive data type in Java?
What is the correct way to declare a variable named "age" of type integer?
What is the value of the expression "10 + 5 * 2"?
Which operator is used to compare two values for equality?
What is the result of the expression "10 / 3"?
Which data type is used to store single characters?
What is the default value of a boolean variable?
Which keyword is used to define a constant variable?
What is the range of values that a byte data type can hold?
Which operator is used to calculate the remainder of a division operation?
What is the correct way to declare a variable named "isHappy" of type boolean?
What is the value of the expression "true && false"?
Which operator is used to concatenate two strings?
What will happen if you try to assign a value exceeding the range of a data type to a variable of that type?
Which of these statements correctly describes the difference between the = operator and the == operator?
What is the output of the following code snippet?

What is the output of the following code snippet?

What is the output of the following code snippet?

What is the output of the following code snippet?

What does the following code snippet do?

What is the value of 'result' after the following code executes?

What is the value of 'result' after the following code executes?

What does the following code snippet achieve?

What is the output of this code snippet?

What does this code snippet do?

What is the final value of 'count' after this loop completes?

What does this code demonstrate?

What is the output of the following code?

Which statement best describes the behavior of this code?

Which statement best describes the behavior of this code?

FileInputStream is the core class in Java for reading character data from a text file
You would primarily use the FileOutputStream class to write text to a file.
IOException and FileNotFoundException are commonly associated with file operations in Java.
The BufferedReader class provides methods for reading data from a file line by line.
The main purpose of the flush() method when writing to a file is to ensure that all buffered data is written to the file.
A blueprint for creating objects
An instance of a class.
A block of code that performs a specific task.
The process of creating an object.
A keyword to define a class.