exam questions

Exam 1z0-829 All Questions

View all questions & answers for the 1z0-829 exam

Exam 1z0-829 topic 1 question 26 discussion

Actual exam question from Oracle's 1z0-829
Question #: 26
Topic #: 1
[All 1z0-829 Questions]

Given the code fragment:

What is the result?

  • A. false 0
    true 1
  • B. false 1
    false 2
  • C. true 1
    false 2
  • D. false 1
    true 2
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
Tojose
Highly Voted 1 year ago
the right answer is A. false 0 true 1
upvoted 7 times
...
SrinivasJasti
Most Recent 2 weeks, 2 days ago
Selected Answer: A
~ inverts the value in binary, ^ compares binary
upvoted 1 times
...
9817c20
2 months, 1 week ago
how the fook can one calculate a^b in ones head?
upvoted 1 times
...
xplorerpj
6 months, 3 weeks ago
Correct answer is A
upvoted 1 times
...
zuluitai
7 months ago
The correct answer is A.
upvoted 1 times
...
james2033
10 months, 4 weeks ago
Selected Answer: A
package q26; public class Q26 { public static void main(String[] args) { int a = 2; int b = ~a; int c = a ^ b; boolean d = a < b & a > c++; System.out.println(d + " " + c); boolean e = a > b && a > c++; System.out.println(e + " " + c); } } // Result: // false 0 // true 1
upvoted 4 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago