IT認証試験問題集
毎月、GOWUKAKUは1500人以上の受験者が試験準備を助けて、試験に合格するために受験者にご協力します
 ホームページ / 98-388 問題集  / 98-388 問題練習

Microsoft 98-388 問題練習

Introduction to Programming Using Java 試験

最新更新時間: 2024/03/18,合計42問。

【2024年3月キャンペーン】:98-388 最新真題を買う時、日本語版と英語版両方を同時に獲得できます。

実際の問題集を練習し、試験のポイントを了解し、テストに申し込むするかどうかを決めることができます。

さらに試験準備時間の35%を節約するには、98-388 問題集を使用してください。

 / 2

Question No : 1
DRAG DROP
You are writing a Java program that collects patient information and stores it in a database. You need to ensure that the program stores data using the least amount of memory.
Which data type should you use to complete each variable declaration? To answer, drag the appropriate data type from the column on the left to its code segment on the right. Each data 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.



正解:


Explanation:
References:
http://www.tutorialspoint.com/java/java_basic_datatypes.htm

Question No : 2
HOTSPOT
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.



正解:


Explanation:
References:
https://docs.oracle.com/javase/7/docs/api/java/lang/StringBuilder.html https://www.tutorialspoint.com/java/lang/stringbuilder_substring_end.htm

Question No : 3
HOTSPOT
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. NOTE: Each correct selection is worth one point.



正解:

Question No : 4
HOTSPOT
You are writing a Java method. The method accepts a two-dimensional String array and prints the content of each array element. The size of each dimension of the array might be different.
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.



正解:


Explanation:
References:
https://www.tutorialgateway.org/two-dimensional-array-in-java/

Question No : 5
HOTSPOT
You are creating a method that processes invoices. The invoices are contained in an ArrayList
instance. After each invoice is processed, the method must remove the invoice from the ArrayList instance.
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.



正解:


Explanation:
References:
https://beginnersbook.com/2013/12/java-arraylist/

Question No : 6
DRAG DROP
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.



正解:


Explanation:
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 No : 7
HOTSPOT
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.



正解:

Question No : 8
DRAG DROP
You are interviewing for a job at Adventure Works, Inc. The hiring manager asks you to create a single console program.
The program takes multiple arguments from the command line and writes them to the screen in the same order as they were typed on the command line.
Which three code segments should you use to develop the solution? To answer, move the appropriate code segments from the list of code segments to the answer area and arrange them in the correct order.



正解:


Explanation:
References:
https://docs.oracle.com/javase/tutorial/getStarted/cupojava/netbeans.html

Question No : 9
DRAG DROP
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.



正解:

Question No : 10
HOTSPOT
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.



正解:


Explanation:
References:
https://docs.oracle.com/javase/7/docs/api/java/io/InputStreamReader.html

Question No : 11
HOTSPOT
You write the following code:



You need to determine the values of the data1, data2, data3, and data4 variables.
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.



正解:


Explanation:
References:
https://docs.oracle.com/javase/7/docs/api/java/util/Scanner.html

Question No : 12
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 ()?

正解:

Question No : 13
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.



正解:


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

Question No : 14
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.



正解:

Question No : 15
You have the following code segment.
Line numbers are included for reference only.



What is the output of line 07?

正解:

 / 2