Download Introduction to Programming Using Java.98-388.PracticeTest.2019-05-16.15q.vcex

Vendor: Microsoft
Exam Code: 98-388
Exam Name: Introduction to Programming Using Java
Date: May 16, 2019
File Size: 731 KB

How to open VCEX files?

Files with VCEX extension can be opened by ProfExam Simulator.

Purchase
Coupon: EXAM_HUB

Discount: 20%

Demo Questions

Question 1
You have the following code segment. Line numbers are included for reference only. 
  
What is the output of line 07?
  1. -44
  2. -40.0
  3. 40.0
  4. 44.0
Correct answer: B
Question 2
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()?
  1. 0
  2. 1
  3. 2
  4. 3
Correct answer: A
Question 3
You are creating a Java console application. 
You need to read a birthdate entered by the user. 
How should you complete the code? To answer, select the appropriate code segments in the answer area. 
NOTE: Each correct selection is worth one point.
Correct answer: To display the answer, ProfExam Simulator is required.
Explanation:
References:https://docs.oracle.com/javase/7/docs/api/java/io/InputStreamReader.html
References:
https://docs.oracle.com/javase/7/docs/api/java/io/InputStreamReader.html
Question 4
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. 
NOTE: Each correct selection is worth one point.
Correct answer: To display the answer, ProfExam Simulator is required.
Question 5
You need to evaluate the following code. 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. 
Correct answer: To display the answer, ProfExam Simulator is required.
Question 6
You have the following code:
  
You need to create an int array named numbers initialized with num1, num2, and num3. 
How should you complete the code? To answer, drag the appropriate code segment to the correct position. Each code segment may be used once, more than 
once, or not at all. You may need to drag the split bar between panes or scroll to view content. 
NOTE: Each correct selection is worth one point.
   
Correct answer: To display the answer, ProfExam Simulator is required.
Explanation:
Example:int[] numbers = new int[] {num1, num2, num3} References:https://docs.oracle.com/javase/tutorial/java/nutsandbolts/arrays.htmlhttps://alvinalexander.com/blog/post/java/java-faq-create-array-int-example-syntax
Example:
int[] numbers = new int[] {num1, num2, num3} 
References:
https://docs.oracle.com/javase/tutorial/java/nutsandbolts/arrays.html
https://alvinalexander.com/blog/post/java/java-faq-create-array-int-example-syntax
Question 7
You are writing a Java program. 
The program must meet the following requirements:
  • Truncate firstName to its first five characters 
  • Set output to a string that contains the firstName and the number of characters in firstName 
How should you complete the code? To answer, select the appropriate code segments in the answer area. 
NOTE: Each correct selection is worth one point. 
Correct answer: To display the answer, ProfExam Simulator is required.
Explanation:
References:https://docs.oracle.com/javase/7/docs/api/java/lang/StringBuilder.htmlhttps://www.tutorialspoint.com/java/lang/stringbuilder_substring_end.htm
References:
https://docs.oracle.com/javase/7/docs/api/java/lang/StringBuilder.html
https://www.tutorialspoint.com/java/lang/stringbuilder_substring_end.htm
Question 8
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.
  1. No change is needed.
  2. a short
  3. a byte
  4. a long 
Correct answer: D
Question 9
You need to evaluate the following code segment:
  
What happens when the code segment is run?
  1. iNum has a value of 0.
  2. An exception is thrown.
  3. iNum has a value of 2.
  4. iNum has a value of 3.
Correct answer: C
Question 10
You are writing a Java method. 
The program must meet the following requirements:
  • Accept a String parameter firstName 
  • Display a welcome message that contains firstName 
  • Ensure that the first letter of the name is capitalized, and the remaining letters are in lowercase 
How should you complete the code? To answer, drag the appropriate code segment to the correct position. Each code segment may be used once, more than 
once, or not at all. You may need to drag the split bar between panes or scroll to view content. 
NOTE: Each correct selection is worth one point.
Correct answer: To display the answer, ProfExam Simulator is required.
Explanation:
References:http://www.tutorialspoint.com/java/java_strings.htm
References:
http://www.tutorialspoint.com/java/java_strings.htm
HOW TO OPEN VCE FILES

Use VCE Exam Simulator to open VCE files
Avanaset

HOW TO OPEN VCEX AND EXAM FILES

Use ProfExam Simulator to open VCEX and EXAM files
ProfExam Screen

ProfExam
ProfExam at a 20% markdown

You have the opportunity to purchase ProfExam at a 20% reduced price

Get Now!