1Z0-811 Primitives, Strings and Operators Practice Question
Given: int x = 3 + 4 * 2; What is x?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
11
Multiplication has higher precedence than addition: 4 * 2 = 8, then 3 + 8 = 11. Therefore, x is 11, making option A the correct answer.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
11
Why this is correct
This is the correct value 11.
- ✗
11
Why it's wrong here
This is also the correct value 11.
- ✗
24
Why it's wrong here
This result would occur if addition were performed first: (3+4)*2 = 14, but multiplication has precedence.
- ✗
14
Why it's wrong here
This result would occur if the expression were evaluated left to right ignoring precedence: 3+4=7, then 7*2=14, but multiplication takes precedence.
Go deeper
Related to this question
About these practice questions
This 1Z0-811 question is part of Courseiva's 481-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
Same concept, more angles
1 more way this is tested on 1Z0-811
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. Given: int x = 10; int y = 20; What is the output of System.out.println(x + y * 2);?
easy- A.40
- B.60
- C.30
- ✓ D.50
Why D: Multiplication has higher precedence than addition: y * 2 = 40, then x + 40 = 50.
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 1Z0-811 practice question is part of Courseiva's free Oracle certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 1Z0-811 exam.