Microsoft Introduction to Programming Using Java (98-388) Free Practice Test
Question 1
You are writing a Java method.
The method must meet the following requirements:



The method must meet the following requirements:



Correct Answer:


Question 2
You need to evaluate the following Java program. Line numbers are included for reference only.

Which three values will be displayed in sequence? To answer, move the appropriate values from the list of values to the answer area and arrange them in the correct order.


Which three values will be displayed in sequence? To answer, move the appropriate values from the list of values to the answer area and arrange them in the correct order.

Correct Answer:


Question 3
This question requires that you evaluate the underlined text to determine if it is correct.
You should use an int data type to store the numeric value 3,000,000,000 (3 billion) so that the least amount of memory is used.
Review the underlined text. If it makes the statement correct select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct.
You should use an int data type to store the numeric value 3,000,000,000 (3 billion) so that the least amount of memory is used.
Review the underlined text. If it makes the statement correct select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct.
Correct Answer: B
Question 4
You are developing a Java program to play Tic-Tac-Toe. You define the following array to store the state of the board:

Use the drop-down menus to select the answer choice that answers each question based on the information presented in the code.


Use the drop-down menus to select the answer choice that answers each question based on the information presented in the code.

Correct Answer:


Question 5
You need to evaluate the following code segment:

What happens when the code segment is run?

What happens when the code segment is run?
Correct Answer: D