98-388 Introduction to Programming Using Java

Loading demo links...

Showing 4–6 of 10 questions

Question 4 (Topic 2, Work with data types, variables, and expressions)

The 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.

Select an option, then click Submit answer.

  • No change is needed.

  • a short

  • a byte

  • a long

Question 5 (Topic 1, Understand Java fundamentals)

You need to analyze the following code segment. Line numbers are included for reference only.

What is the output of line 12 when you run printInt()?

Select an option, then click Submit answer.

  • 0

  • 1

  • 2

  • 3

Question 6 (Topic 2, Work with data types, variables, and expressions)

You need to evaluate the following code segment:

What happens when the code segment is run?

Select an option, then click Submit answer.

  • iNum has a value of 0.

  • An exception is thrown.

  • iNum has a value of 2.

  • iNum has a value of 3.