Skip to content

Computer Science · Class 11 · ISC

Operators and Expressions in Java

Arithmetic, relational, logical, assignment and ternary operators, precedence and associativity.

5questions

Board PYQs
0
Practice
5
Topics
0
  • Most common: 3 marks

Syllabus mapping: ISC syllabus (CISCE) (opens CISCE's website in a new tab)

5 questions

  • Practice question

    3 marks

    Evaluate the expression 10 + 5 * 2 - 8 / 4 in Java and explain the order of evaluation.

    Operators and Expressions in JavaMediumNumerical

  • Practice question

    3 marks

    What is the output of: int a = 10, b = 3; System.out.println(a > b && a % b == 1);

    Operators and Expressions in JavaMediumNumerical

  • Practice question

    3 marks

    What is short-circuit evaluation, and give one practical use of it.

    Operators and Expressions in JavaMediumShort answer

  • Practice question

    3 marks

    Explain the ternary operator in Java and rewrite "if (a > b) max = a; else max = b;" using it.

    Operators and Expressions in JavaMediumShort answer

  • Practice question

    3 marks

    What is the output of: int x = 5; System.out.println(x++ + ++x);

    Operators and Expressions in JavaMediumNumerical