exam questions

Exam 98-388 All Questions

View all questions & answers for the 98-388 exam

Exam 98-388 topic 1 question 25 discussion

Actual exam question from Microsoft's 98-388
Question #: 25
Topic #: 1
[All 98-388 Questions]

DRAG DROP -
Your instructor asks you to evaluate four arithmetic code segments.
What is the value of each code segment? To answer, drag the appropriate value 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.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
johnhartman1968
4 years, 4 months ago
2 for the last answer. Tested in code. An integer is returned, which drops the .5
upvoted 1 times
...
MuzM
4 years, 11 months ago
it should be 2.5 not 2 for the last one
upvoted 2 times
adrian_kurek
3 years, 11 months ago
dont comment if u dont know the answer idiot
upvoted 2 times
...
Tybs
4 years, 9 months ago
2 is correct. Since the value of 5/2 (2.5) is never stored in a double or float, the result will be rounded down to 2. Try it out with the following code: public static void main(String[] args) { System.out.println(5/2-4%2); }
upvoted 9 times
Abhitera
4 years, 3 months ago
Good explanation
upvoted 1 times
...
...
Girul
3 years, 7 months ago
// Try it! System.out.println((2+3)*4-1); System.out.println(4*4+2*5); System.out.println(8*2%3); System.out.println(5/2-4%2); 19 26 1 2
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...