Microsoft Introduction to Programming Using Java (98-388) Certification Sample Questions

Introduction to Programming Using Java Dumps, 98-388 Dumps, 98-388 PDF, Introduction to Programming Using Java VCE, Microsoft 98-388 VCE, Microsoft MTA Introduction to Programming Using Java PDFThe purpose of this Sample Question Set is to provide you with information about the Microsoft Introduction to Programming Using Java exam. These sample questions will make you very familiar with both the type and the difficulty level of the questions on the 98-388 certification test. To get familiar with real exam environment, we suggest you try our Sample Microsoft Introduction to Programming Using Java Certification Practice Exam. This sample practice exam gives you the feeling of reality and is a clue to the questions asked in the actual Microsoft Technology Associate (MTA) - Introduction to Programming Using Java certification exam.

These sample questions are simple and basic questions that represent likeness to the real Microsoft 98-388 exam questions. To assess your readiness and performance with real time scenario based questions, we suggest you prepare with our Premium Microsoft Introduction to Programming Using Java Certification Practice Exam. When you solve real time scenario based questions practically, you come across many difficulties that give you an opportunity to improve.

Microsoft 98-388 Sample Questions:

01. You need to evaluate the following code segment:
What happens when the code segment is run?
a) iNum has a value of 0.
b) An exception is thrown.
c) iNum has a value of 2.
d) iNum has a value of 3.
 
02. The Random class is shown in the exhibit. Line numbers are included for reference only. You need to evaluate the class and determine which line prevents the class from compiling successfully.
Which line prevents the class from compiling successfully?
a) Line 15
b) Line 14
c) Line 17
d) Line 12
e) Line 13
 
03. The following Java code exists (line numbers are included for reference only):
- 01 char data = 65;
- 02 System.out.println(data):
You need to determine what happens when this code is compiled and run. What happens when this code is run?
a) The string "5453" is printed.
b) The number 65 is printed.
c) An exception is thrown.
d) The letter 'A' is printed.
 
04. 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
 
05. 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.
a) No change is needed.
b) a short
c) a byte
d) a long
 
06. 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
 
07. You are creating a Java console application that teaches students about Java. You need to define the signature of the method that is called when the application first starts. How should you define the method?
To answer, select the appropriate code segments from the drop-down menus.
Solution:
Determine whether the given solution is correct?
a) Incorrect
b) Correct
 
08. The question requires that you evaluate the underlined text to determine if it is correct. You have the following class definition:
The logError method can be invoked by code in all classes in the same package as the Logger class. 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.
a) No change is needed
b) only by the Logger class
c) only by the Logger class and classes in the same package that inherit from it
d) by all classes in all packages
 
09. You work as a Java programmer. You need to convert a numeric String to a primitive double value. What code segment should you use?
a) Double.valueOf(numberString);
b) Double.parseDouble(numberString);
c) String.parseDouble(numberString);
d) double.parseDouble(numberString);
 
10. You are evaluating loops. You need to identify infinite loops. Which three statements represent infinite loops?
Each correct answer presents a complete solution.
a) do {} while (true);
b) for (; ;) {}
c) for (; false ; ) {}
d) do {} while (false);
e) while (true) {}
f) while (false) {}
g) while (true) break;

Answers:

Question: 01
Answer: c
Question: 02
Answer: a
Question: 03
Answer: d
Question: 04
Answer: b
Question: 05
Answer: d
Question: 06
Answer: a
Question: 07
Answer: b
Question: 08
Answer: c
Question: 09
Answer: d
Question: 10
Answer: a, b, e

Note: For any error in Microsoft Technology Associate (MTA) - Introduction to Programming Using Java (98-388) certification exam sample questions, please update us by writing an email on feedback@edusum.com.

Rating: 4.9 / 5 (75 votes)