98-388 : Introduction to Programming Using Java : Part 01

  1. HOTSPOT

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

    98-388 Part01 Q01 001
    98-388 Part01 Q01 001

    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.

    98-388 Part01 Q01 002
    98-388 Part01 Q01 002
    98-388 Part01 Q01 003
    98-388 Part01 Q01 003
  2. You have the following code segment. Line numbers are included for reference only.

    98-388 Part01 Q02 004
    98-388 Part01 Q02 004

    What is the output of line 07?

    • -44
    • -40.0
    • 40.0
    • 44.0
  3. 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.

    98-388 Part01 Q03 005
    98-388 Part01 Q03 005

    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.

    98-388 Part01 Q03 006
    98-388 Part01 Q03 006
    98-388 Part01 Q03 007
    98-388 Part01 Q03 007
  4. HOTSPOT

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

    98-388 Part01 Q04 008
    98-388 Part01 Q04 008

    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.

    98-388 Part01 Q04 009
    98-388 Part01 Q04 009
    98-388 Part01 Q04 010
    98-388 Part01 Q04 010

     

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

    98-388 Part01 Q05 011
    98-388 Part01 Q05 011

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

    • 0
    • 1
    • 2
    • 3
  6. HOTSPOT

    You write the following code:

     

    98-388 Part01 Q06 012
    98-388 Part01 Q06 012

    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.

    98-388 Part01 Q06 013
    98-388 Part01 Q06 013
    98-388 Part01 Q06 014
    98-388 Part01 Q06 014
  7. 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.

    98-388 Part01 Q07 015
    98-388 Part01 Q07 015
    98-388 Part01 Q07 016
    98-388 Part01 Q07 016

     

  8. DRAG DROP

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

    98-388 Part01 Q08 017
    98-388 Part01 Q08 017

    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.

    98-388 Part01 Q08 018
    98-388 Part01 Q08 018
    98-388 Part01 Q08 019
    98-388 Part01 Q08 019
  9. 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.

    98-388 Part01 Q09 020
    98-388 Part01 Q09 020
    98-388 Part01 Q09 021
    98-388 Part01 Q09 021

     

  10. HOTSPOT

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

    98-388 Part01 Q10 022
    98-388 Part01 Q10 022

    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.

    98-388 Part01 Q10 023
    98-388 Part01 Q10 023
    98-388 Part01 Q10 024
    98-388 Part01 Q10 024
  11. DRAG DROP

    You have the following code:

    98-388 Part01 Q11 025
    98-388 Part01 Q11 025

    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.

    98-388 Part01 Q11 026
    98-388 Part01 Q11 026
    98-388 Part01 Q11 027
    98-388 Part01 Q11 027

     

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

    98-388 Part01 Q12 028
    98-388 Part01 Q12 028
    98-388 Part01 Q12 029
    98-388 Part01 Q12 029
  13. 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.

    98-388 Part01 Q13 030
    98-388 Part01 Q13 030
    98-388 Part01 Q13 031
    98-388 Part01 Q13 031
  14. HOTSPOT

    You are developing a Java program to play Tic-Tac-Toe. You define the following array to store the state of the board:

    98-388 Part01 Q14 032
    98-388 Part01 Q14 032

    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.

    98-388 Part01 Q14 033
    98-388 Part01 Q14 033
    98-388 Part01 Q14 034
    98-388 Part01 Q14 034

     

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

    98-388 Part01 Q15 035
    98-388 Part01 Q15 035
    98-388 Part01 Q15 036
    98-388 Part01 Q15 036

     

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

    98-388 Part01 Q16 037
    98-388 Part01 Q16 037
    98-388 Part01 Q16 038
    98-388 Part01 Q16 038

     

  17. DRAG DROP

    You are writing a Java method that evaluates an arithmetic formula.

    The method accepts an int value named number, raises the value to the second power, and returns the negative value of the result.

    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.

    98-388 Part01 Q17 039
    98-388 Part01 Q17 039
    98-388 Part01 Q17 040
    98-388 Part01 Q17 040

     

  18. HOTSPOT

    You are creating a method that converts a string representation of a number into an actual number.

    The numbers passed into the method include whole numbers and fractional numbers.

    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.

    98-388 Part01 Q18 041
    98-388 Part01 Q18 041
    98-388 Part01 Q18 042
    98-388 Part01 Q18 042

     

  19. DRAG DROP

    You attend an interview for a job as a Java programmer.

    You need to declare a two by three array of the double type with initial values.

    How should you complete the code? To answer, drag the appropriate code segment to the correct location. 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.

    98-388 Part01 Q19 043
    98-388 Part01 Q19 043
    98-388 Part01 Q19 044
    98-388 Part01 Q19 044

     

  20. HOTSPOT

    You are interviewing for a job as a Java developer. You need to evaluate the following code. Line numbers are included for reference only.

    98-388 Part01 Q20 045
    98-388 Part01 Q20 045

    For each of the following statements, select Yes if the statement is true. Otherwise, select No.

    NOTE: Each correct selection is worth one point.

    98-388 Part01 Q20 046
    98-388 Part01 Q20 046
    98-388 Part01 Q20 047
    98-388 Part01 Q20 047

     

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments