Skip to content

Computer Science · Class 11 · ISC

Values and Data Types

Primitive and reference types in Java, literals, variables, type conversion and casting.

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

    What is the output of: System.out.println(10 / 3); System.out.println(10 % 3); System.out.println(10.0 / 3);

    Values and Data TypesMediumNumerical

  • Practice question

    3 marks

    Distinguish between a primitive type and a reference type in Java, with two examples of each.

    Values and Data TypesMediumShort answer

  • Practice question

    3 marks

    Distinguish between implicit and explicit type conversion in Java, with an example of each.

    Values and Data TypesMediumShort answer

  • Practice question

    3 marks

    What is the output of: int a = 7; int b = 2; System.out.println(a / b); System.out.println((double) a / b);

    Values and Data TypesMediumNumerical

  • Practice question

    2 marks

    Name the eight primitive data types of Java and state the size of each.

    Values and Data TypesEasyShort answer