All practice worksheets

ICSE Computer Science practice worksheet

Read the full ICSE Computer Science worksheet online or take it as timed practice. Sign in to submit your answers for analysis.

Open worksheet PDF

Question 1

Which is a valid Java identifier?

  1. my-var
  2. 2marks
  3. class
  4. total_marks

Question 2

Inheritance allows a class to:

  1. Acquire properties of another class
  2. Hide data
  3. Run faster
  4. Have many forms

Question 3

Objects are created using the keyword:

  1. class
  2. new
  3. void
  4. this

Question 4

A parameterised constructor:

  1. Returns a value
  2. Has no body
  3. Takes arguments to initialise objects
  4. Is static

Question 5

Integer.parseInt("25") returns:

  1. "25"
  2. An error
  3. 2.5
  4. 25 as an int

Question 6

The index of the last element of an array of length n is:

  1. 0
  2. n
  3. 1
  4. n − 1
First page of the InfinitySheets ICSE Computer Science practice worksheet
First page of the InfinitySheets ICSE Computer Science practice worksheet

Enable JavaScript to take the interactive worksheet or submit your work for analysis.