Microsoft 98-388 - Introduction to Programming Using Java Exam

Page:    1 / 9   
Total 42 questions

HOTSPOT -
You need to evaluate the following code segment. Line numbers are included for reference only.


Use the drop-down menus to select the answer choice that answers each question based on the information presented in the code.
NOTE: Each correct selection is worth one point.
Hot Area:



Answer :

You have the following code segment. Line numbers are included for reference only.


What is the output of line 07?

  • A. -44
  • B. -40.0
  • C. 40.0
  • D. 44.0


Answer : B

HOTSPOT -
You are interviewing for a job as a Java developer.
You are presented with the following code. Line numbers are included for reference only.


You need to evaluate what happens when the code runs.
Use the drop-down menus to select the answer choice that answers each question based on the information presented in the code.
NOTE: Each correct selection is worth one point.
Hot Area:



Answer :

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


Use the drop-down menus to select the answer choice that answers each question based on the information presented in the code.
NOTE: Each correct selection is worth one point.
Hot Area:



Answer :

References:
https://docs.oracle.com/javase/tutorial/java/data/numberformat.html

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()?

  • A. 0
  • B. 1
  • C. 2
  • D. 3


Answer : A

Page:    1 / 9   
Total 42 questions