Module 1 β€” Operators & Output Questions

Section 1.1 β€” Arithmetic Operator Output

How to Practice: Trace each expression mentally first, write your answer on paper, then run the code to verify. If you get it wrong, revisit operator precedence (BODMAS) rules.

Goal: Predict the output without running the program.


Total Questions: 30 Difficulty: Beginner β†’ Intermediate Next Section: 1.2 β€” Logical Operator Output


Group A β€” Pure BODMAS / Precedence

Q1.

System.out.println(10 + 2 * 5 - 3);

β†’ Output?


Q2.

System.out.println((10 + 2) * (5 - 3));

β†’ Output?


Q3.

System.out.println(20 / 5 + 3 * 2 - 1);

β†’ Output?