wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

ICSE Grade 9 Quiz Computers

Total questions: 67

Worksheet time: 41mins

Name
Class
Date
1.

Is Android based on Java?

a)

True

b)

False

2.

Who invented Java?

a)

James Gosling

b)

Sergey Brin

c)

Steve Jobs

d)

Bill Gates

e)

Tim Berners-Lee

3.
Which type of data is used to enter the value ("Welcome")?
a)
Text
b)
Characters
c)
String
d)
Boolean
4.
When we want to print in Java, we use the code ......
a)
system.out.print();
b)
System.out.println();
c)
System.Out.Printf();
d)
System.out.show();
5.

The keyword "method" is another name for

a)

an object

b)

a class

c)

a function

d)

a variable

6.

Where does a java program start executing instructions from:

a)

class

b)

source file

c)

main method

d)

object

7.
When we want to print in Java, we use the code ......
a)
system.out.print();
b)
System.out.println();
c)
System.Out.Printf();
d)
System.out.show();
8.
These controls the behavior of a program.
a)
class
b)
object
c)
method
d)
void
9.

Describe method.

a)

A component of a program in a big program.

b)

A program to perform a specific task.

c)

A component of a program written to perform a specific task.

d)

A variable that use to read an input.

10.

Mark all that is TRUE about classes

a)

A Class is a blueprint of an object. It is not an actual object

b)

An object is an instance of a class

c)

A class has characteristics and behaviours

d)

A base class gives all of its characteristics to a derived class

e)

A class is the first thing to define while writing a Java Program

11.

Which level of a programming language is Machine Code?

a)

Low

b)

High

12.

Which level would create the easiest code for humans to understand?

a)

Low

b)

Assembly

c)

High

13.

Python is an example of a High Level programming language

a)

True

b)

False

14.

Which generation?

a)

Machine Code - Low

b)

Assembly Code - Low

c)

High Level

15.
What does IDE stand for?
a)
Integrated Debugging Equipment
b)
Integrated Debugging Environment
c)
Integrated Development Equipment
d)
Integrated Development Environment
16.
Which of these would you NOT find in an IDE?
a)
Debugger
b)
Picture Editor
c)
Auto Documentation
d)
Source Code Editor
17.

Which of these is an example of an IDE (Integrated Development Environment)?

a)

Notepad

b)

BlueJ

c)

Ruby

d)

Python

18.

Choose all the pairs that are correctly matched

a)

Bits and Bytes - Machine Language

b)

Assembly Language - Assembler

c)

Java - Compiler

d)

4GL - Non procedural languages

e)

5GL - Specify constraints

19.

What is a programming paradigm? (Mark all that apply)

a)

The organising principle of a program

b)

The approach to programming

c)

The question answered by the program

d)

The programming language used

20.

Choose all the correctly matched pairs

a)

2GL - Assembler - Operations and Operands

b)

3GL -How

c)

4GL - What

d)

5GL - Constraints

e)

3GL - C++, Java

21.

The first generation of computer languages in which we encounter loops and if conditions is:

a)

2GL

b)

3GL

c)

4GL

d)

5GL

22.

Examples of 5GL

a)

Prolog (Programming Logic)

b)

Fortran

c)

Ruby

d)

OPS5

e)

Mercury

23.

All of these are programming paradigms except:

a)

Procedural

b)

Structural

c)

Modular

d)

Object Oriented

e)

Object Driven

24.

Choose the correctly matched pairs

a)

Focus on how to do things - Object Oriented

b)

Focus on how to do things - Procedural

c)

Focus on Data - Object Oriented Programming

d)

Breaking down a large program into smaller, manageable, independent parts - Modular Programming

25.

Which of these is the correct definition of a module?

a)

A module is an identifiable piece of code within a program, with a set of inputs and outputs. It has a sole purpose, and processes the inputs in a way dictated by its goal and produces an output.

b)

A module is a piece of code with a set of inputs and outputs. It has a sole purpose, and processes the inputs in a way dictated by its goal and produces an output.

c)

A module is an identifiable piece of code within a program, with a set of inputs and outputs. It processes the inputs in a way dictated by its goal and produces an output.

d)

A module is an identifiable piece of code within a program. It has a sole purpose, and processes inputs and outputs.

26.

Cross Coupling refers to:

a)

Referential integrity

b)

The extent to which one module depends on another

c)

Using one public class in another package

d)

Using one method in more than one class

27.

Modules must have data passed to them. They cannot have data of their own to work with.

a)

True

b)

False

28.

Which of these is not one of the limitations of procedural programming?

a)

It does not model the real world well.

b)

It focuses on procedure rather than the data, while it is data that drives the process.

c)

Change in a datatype needs to be propagated to all the functions that use that data type. This is a time consuming and error prone process.

d)

Each module represents data and its interface

29.

Which of these is the correct definition of an object?

a)

An object is an identifiable entity with some characteristics (data) and behaviour (functions)

b)

An object is an entity with some characteristics (data) and behaviour (functions)

c)

An object is an identifiable entity with some characteristics and data.

d)

An object is an identifiable entity with some behaviour and functions.

30.

All of these are ways in which OOP overcomes the shortcomings of Procedural Programming except:

a)

OOP gives data the prime consideration and provides an interface between objects through functions.

b)

An object is a complete entity. All the data and association functions are contained within a single object.

c)

Derived classes automatically inherit all the data and functions of the base class.

31.

The act of representing the essential features without including the background details is

(a)  

32.

Data abstraction is made possible by

a)

Encapsulation

b)

Data Hiding

c)

Cross Coupling

33.

The wrapping up of data and operations / functions into a single unit (class) is called:

a)

Data Abstraction

b)

Encapsulation

c)

Object Oriented Paradigm

34.

If we want to see any data in an object, we cannot see it directly. We have to use a ___________ or a ______________ to fetch the data.

a)

module, function

b)

method, member function

c)

class, object

d)

abstraction, encapsulation

35.

System.out.println("Hello, World!");


Will:

a)

Print Hello World on screen

b)

Return a syntax error

36.

Which of these is the correct difference between java applets and standalone applications?

a)

Applets are embedded into html pages and do not usually access the hard drive of the user. They need the internet to work. e.g., a Javascript to show a video on the web page. Standalone applications work on the device of the user. They do not necessarily need the internet to work. e.g., a word processing program.

b)

Applets are embedded into html pages and they need the internet to work. Standalone applications work on the device of the user. They do not necessarily need the internet to work.

c)

Applets need the internet to work. e.g., a Javascript to show a video on the web page. Standalone applications do not necessarily need the internet to work. e.g., a word processing program.

37.

One of these statements is correct. Which one?

a)

Since classes use the concept of abstraction, they are called Abstract Data Types (ADTs). They are a data type because each class can be used to create objects of its own type.

b)

Since classes use the concept of encapsulation, they are called Encapsulated Data Types (EDTs). They are a data type because each class can be used to create objects of its own type.

38.

Inheritance is used to transfer data and functions from a base class to all derived classes.

a)

True

b)

False

39.

Inheritance is the _______

a)

Capability of one class to inherit properties from another class.

b)

Capability of classes and modules to inherit properties from another class or module.

40.

_________________ is the key to the power of object oriented programming.

a)

Polymorphism

b)

Abstraction

c)

Encapsulation

d)

5GL

41.

_________________ is the ability of a message or data to be processed in more than one form.

a)

Polymorphism

b)

Accidental Alteration

c)

Encapsuation

42.

_______________ is the difference between Object Based Languages (OBL) like Ada and Object Oriented Programming Languages like Java.

a)

Polymorphism

b)

Abstraction

43.

The advantages of OOPS are (mark all that apply)

a)

Ease of comprehension

b)

Closer to real world models

c)

Reusable code

d)

Easy redesign and extension

e)

Ease of fabrication and maintenance

44.

The disadvantages of OOP are: (Mark all that apply)

a)

Classes tend to be overly generalised

b)

The relations among classes become artificial at times

c)

Tricky Program Design

d)

Specific Design and Programming Skills are required

45.

Java is a case sensitive language

a)

True

b)

False

46.

A single line comment is represented by (a)   in Java.

47.

The symbols to start a multi-line comment in a Java code are:

(a)  

48.

Bytecode is the same for all platforms. This is because:

a)

Bytecode is in machine language.

b)

Bytecode is then taken by the JVM and converted to machine language according to the platform

c)

Bytecode is the version of code that lies between compiled code and interpreted code.

d)

Bytecode is generated one line at a time (or Just in Time) and then passed to the JVM for execution.

49.

Java is both a language and a platform.

a)

True

b)

False

50.

The process of converting source code into machine code is called (a)   .

51.

Choose the pairs that are rightly matched.

a)

One line at a time - Interpreter

b)

One line at a time - Compiler

c)

Source Code at one go - Compiler

d)

Source Code at one go - Interpreter

52.

Native Executable Code is another name for

a)

Bytecode

b)

Machine Code

c)

Assembly Language

d)

3GL

53.

Java Bytecode is:

a)

Machine language for any platform

b)

Machine Language for the JVM, which then interprets it, one line at a time, for the platform

54.

Java Package is a collection of various

a)

Objects

b)

Methods

c)

Classes

55.

(a)   is the default package of java programming. It is automatically imported in any Java program.

56.

_________________ are the keywords that carry special meaning for the Java Compiler. They are used for writing java statements and cannot be used to name a variable.

a)

Java keywords

b)

Java Reserved Words

c)

Java.io

d)

Java.var

57.

Ram has tried to list the basic structure for writing a program in Java. Can you check if his order is right. If not, there are some options, at least one of which is definitely correct. Can you mark that option?


Ram's Structure is:

A. Comments

B. Declaration of Class

C. Declaration of main() function

D. The termination of each statement (;)

E. The closing of curly braces to indicate the end of a block of code.

a)

Ram's answer is right.

b)

BACDE

c)

ACBDE

d)

DCABE

58.

What is the significance of this line of code:

public static void main(String args[])

a)

It defines the first function that will be executed

b)

It defines the first class to be executed

c)

It defines the first object that will be accessed

d)

None of the above

59.

In BlueJ, stripes on the icon of a class mean that:

a)

The class is public

b)

The class has not been compiled yet

60.

In BlueJ, compilation also saves the code.

a)

True

b)

False

61.

A Java program can become a standalone application only if it has the method:

a)

main( )

b)

main()

c)

Main( )

d)

Main()

62.

Identify the right definition of object.

a)

An Object is an identifiable entity with some characteristics (aka properties or attributes), a state, and behaviour.

b)

An Object is an identifiable entity with some properties or attributes and behaviour.

c)

An Object is an entity with some characteristics (aka properties or attributes), a state, and behaviour.

63.

All objects have three essential features encapsulated (choose the right ones):

a)

State through methods

b)

Behaviour through data

c)

State through Properties or Attributes

d)

Behaviour through Methods

e)

Identity - Unique Name

64.

Which of these is MOST ACCURATE about the state of an object

a)

The state of an object encompasses all the static properties of an object as well as the methods of each of these properties.

b)

The state of an object encompasses all the static properties of an object as well as current (dynamic) values of each of these properties.

c)

The state of an object encompasses all the static properties of an object as well as the member functions of each of these properties.

d)

The state of an object indicates whether the object is currently active or not.

65.

Objects communicate with each other by:

a)

Classes

b)

Methods

c)

Message Passing

d)

Encapsulation

66.

In software terms, classes and objects are implemented by representing the attributes as ________ and behaviour through _________________.

a)

Data numbers, Number functions

b)

Data Members, Member Functions

c)

Properties, Modules

67.

The keyword "method" is another name for

a)

an object

b)

a class

c)

a function

d)

a variable