0% found this document useful (0 votes)
57 views8 pages

Grade 9 Computer Application Final Exam Question Paper 2023-24

This document outlines the final examination details for Computer Applications for Class IX at Presidency Group of Schools, including the exam date, duration, and structure. It consists of two sections: Section A, which requires answers to all questions, and Section B, where students must attempt any four questions. The document includes various Java programming questions and programming tasks to be completed in a BlueJ environment.

Uploaded by

lalitnrao97938
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views8 pages

Grade 9 Computer Application Final Exam Question Paper 2023-24

This document outlines the final examination details for Computer Applications for Class IX at Presidency Group of Schools, including the exam date, duration, and structure. It consists of two sections: Section A, which requires answers to all questions, and Section B, where students must attempt any four questions. The document includes various Java programming questions and programming tasks to be completed in a BlueJ environment.

Uploaded by

lalitnrao97938
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

PRESIDENCY GROUP OF SCHOOLS

Bangalore / Mangalore
[ICSE SCHOOLS]
FINAL EXAMINATION – MARCH 2024
COMPUTER APPLICATIONS

Date: 22.03.2024 Class: IX


Time allowed: 2 Hours Max. Marks: 100

Answers to this paper must be written on the paper provided separately.


You will not be allowed to write during the first 10 minutes.
This time is to be spent in reading the question paper.
The time given at the head of this paper is the time allowed for writing the answers.
This Paper is divided in to two sections.
Attempt all questions from Section A and any four questions from Section B.
The marks intended for questions are given in [ ].

Section A
[Attempt all questions]

Question 1: [20]

Choose the correct answers to the questions from the given options.(Do not copy the question. Write the
correct answer only.)

i) Which concept of Java is shown in the following picture?

a) Inheritance
b) Abstraction
c) Encapsulation
d) Polymorphism

Page 1 of 8
ii) Which of these are selection statements in Java?
a) if
b) for()
c) continue
d) break

iii) If b=10 find a = 15/3*b


a) 20
b) 50
c) 80
d) 10

iv) Assertion: Polymorphism allows an object to take on multiple forms.


Reasoning: In java polymorphism refers to hiding the implementation details of an object.
exposing the only essential details to the user.
a) Both Assertion (A) and Reason (R) are true and Reason (R) is a correct
explanation of Assertion (A)
b) Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct
explanation of Assertion(A)
c) Assertion (A) is true and Reason (R) is false
d) Assertion (A) is false and Reason (R) is true

v) The method of Scanner class used to accept a double value is:


a) nextInt()
b) nextDouble()
c) next()
d) nextInteger()

vi) Assertion (A): There are no restrictions on the number of return statements that may be present
in a function.
Reason (R): The execution of a function terminates once a return statement is encountered,
regardless of the number of return statements present.
a) Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of
Assertion (A).
b) Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct
explanation of Assertion (A).
c) Assertion (A) is true and Reason (R) is false.
d) Assertion (A) is false and Reason (R) is true.

Page 2 of 8
vii) What will be the output of the following code ?

class increment
{
void main()
{
int g = 3;
System.out.print(++g * 8);
}
}
a) 32
b) 33
c) 24
d) 25
viii) With x = 0, which of the following are legal lines of Java code for changing the value of x
to 1?

1. x++;
2. x = x + 1;
3. x += 1;
4. x =+ 1;

a)1, 2 & 3
b) 1 & 4
c) 1, 2, 3 & 4
d) 3 & 2

ix) What is the output of the following code ?


class Output
{
public static void main( )
{
double x = 3.14;
int y = (int) Math.ceil(x);
System.out.print(y);
} }
a) 3
b) 0
c) 4
d) 3.0
x) Datatypes based on fundamental datatypes are called as .
a) Primitive
b) Non Primitive
c) Reference
d) tokens

Page 3 of 8
xi) Go through the following text, and choose the correct answer:
A reverse loop or backward loop is a loop where the value of the loop control variable (assume x) gets
decremented in every iteration. The lowest value of the loop control variable is mentioned in the loop
condition of backward loops.
If we want to print all natural numbers from 10 to 1, then the test expression will be:
a) x>=10
b) x<=10
c) x>=1
d) x==1
xii) Assertion (A): Fall through may occur in any branching statement.
Reason (R): The absence of a break statement executes the next case block.
a) Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of Assertion
(A)
b) Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation
ofAssertion (A)
c) Assertion (A) is false and Reason (R) is true
d) Assertion (A) is true and Reason (R) is false
xiii) Predict the output of the following statement:
System.out.print(Math.round(24.5)+ Math.floor(-24.5));
a) 1
b) 1.0
c) 0
d) 0.0
xiv) Math.pow(81,1/2)+Math.sqrt(81) is
a) 18.0
b) 10.0
c) 9.0
d) 10
xv) Which of the following are non-executable statements that are ignored by the compiler or
interpreter?
a) Blocks
b) Comments
c) Statements
d) None of these.
xvi) Which Java package includes the Math class?
a) java.io
b) java.lang
c) java.util
d) java.sys

Page 4 of 8
xvii) ________ is an unusual execution of more than one case at a time.
a) Continue
b) Infinite
c) Null
d) Fall through
xviii) A loop in programming is also termed as:
a) Iterative construct
b) Conditional construct
c) Sequential construct
d) Both a and b
xix) Predict the output of the following code snippet:
int i, n=3;
for (i=1; i<=3; i++)
{
while (n<=i)
{
System.out.println(n);
n--;
}
}}}
a) Both values are equal
b) Infinite loop
c) Values are not equal
d) No output

xx) What will be the output of the following code ?


void main()
{
int i;
for (i=5; i>=2; i--);
{
System.out.print (i*i);
}}

a) 251694
b) 2516941
c) 1
d) No output

Question 2:

i. What is data abstraction? Give example. [2]


ii. What are the types of comment statements? [2]
iii. Why is an object called an instance of a class? [2]

Page 5 of 8
iv. Write a method prototype swap that receives two numbers and returns
nothing to the caller method. [2]
v. When int y = 10, find z = (++y *y++ /5)) [2]
vi. What is a package? Give example.
vii. Write java expression for [2]

viii. With the help of an example write the purpose of default in switch case [2]
ix. What is a compound statement? Give an example. [2]
x. What will be the output? How many times will the following loop
execute? [2]
int p=7,q=20;
while(p++<=--q)
{
System.out.print(2*q-3*p);
++p;
q--;
}
SECTION B (60 Marks)
Attempt any four questions from this Section.

The answer in the Section should consist of the Program in BlueJ environment with Java. Each program
should be written using Variable descriptions/Mnemonic Codes such that the logic of the program is
clearly depicted.
Flow charts and Algorithms are not required

Question 3: [15]

Write a menu-driven program using switch-case to perform the following tasks as per a choice entered by
the user:

a) To accept a number and check if it is a multiple of 7 or not.


b) To accept a number and print the sum of its digits
c) To accept an integer and count the number of factors Display an error message if the user enters an
invalid choice.

Question 4: [15]
Write a program to print the first 15 terms of the Pell series.
In Mathematics, the Pell numbers are an infinite sequence of integers. The sequence of Pell numbers starts
with 0 and 1, and then each Pell number is the sum of twice the previous Pell number and the number before
that.
The first few terms of the sequences are: 0, 1, 2, 5, 12, 29, 70, …….
70 = 2 x 29 + 12; Hence, 70 is a Pell number.

Page 6 of 8
Question 5 : [15]
Design a class to overload a function series( ) as follows:

(a) series(int a, int n) — To display the sum of the series given below:
a + (a2/2) + (a3/3) +(a4/4) + …… n terms
(b) series(int n) — To display the sum of the series given below:
1/2 - 2/3 + 3/4 - 4/5 + …… n terms
Write a main method to create an object and invoke the above methods.

Question 6:
[15]
A courier service company namely ‘Joel Courier Service’ charges on the weight of the parcel to be shipped
as per the following criteria:

Weight (kg) Rate per kg


Up to 2 kg ₹125.50
Next 3 kg ₹150
Next 5 kg ₹170.75
Next 10 kg ₹195.5
Above 20 kg ₹205

Write a program to accept the Name of the customer and the weight of the parcel to be delivered, calculate
the amount to be paid, and display the bill in the following format:

JOEL COURIER SERVICE


Name of the customer Parcel weight Amount to be paid
********* ****** ******

Question 7 : [15]

Write a program to print the following pattern:

1
27
3 8 12
4 9 13 16
5 10 14 17 19
6 11 15 18 20 21

Page 7 of 8
Question 8: [15]

An electronics shop has announced the following seasonal discounts on the purchase of certain items
Purchase Amount in ₹ Discount on Laptop Discount on desktop
0–25000 0.0% 5.0%
25001 – 57000 5.0% 7.5%
57001 – 100000 7.5% 10.0%
More than 100000 10.0% 15.0%

Write a program based on the above criteria, to input name, address, amount of purchase and the type of
purchase (L for Laptop and D for Desktop) by a customer. Compute and print the net amount to be paid
by a customer along with his name and address.

(Hint: discount = (discount rate/100)* amount of purchase

Net amount = amount of purchase – discount).

******************

Page 8 of 8

You might also like