0% found this document useful (0 votes)
45 views6 pages

Computer Application Class 9 2024 Question Paper

The document is an examination paper for Computer Applications for Standard IX at Cathedral High School, scheduled for February 10, 2024. It consists of two sections: Section A with 20 multiple-choice questions and Section B with programming tasks, requiring students to demonstrate their understanding of Java and computer concepts. Students must attempt all questions in Section A and any four from Section B, totaling 100 marks.

Uploaded by

Hemashree
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)
45 views6 pages

Computer Application Class 9 2024 Question Paper

The document is an examination paper for Computer Applications for Standard IX at Cathedral High School, scheduled for February 10, 2024. It consists of two sections: Section A with 20 multiple-choice questions and Section B with programming tasks, requiring students to demonstrate their understanding of Java and computer concepts. Students must attempt all questions in Section A and any four from Section B, totaling 100 marks.

Uploaded by

Hemashree
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/ 6

CATHEDRAL HIGH SCHOOL

#63 RichrmondRoad, Bangalore-560 025


FINAL EXAMINATION -FEB 2024
STANDARD - IX SUBJECT: COMPUTER APPLICATIONS DATE: i0.02.2024
MARKS- 100 Time : 2 hrs.

Attempt all question from Section Aand any four from Section B.
The intended marks or questions or parts of questions are given in
brackets( |
SECTION A (40 marks)
(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.)
1. The components used to perform a task in the base class may be used for
another task in the derived class. This feature is called
a. Data Abstraction
c. Reversibility
b. Encapsulation d. Reusability
2. Using a function multiple times is
a. Inheritance
c Polymorphism
b. Encapsulation d. Data abstraction
3. Which of the following is a valid
comment?
a
/'commentt// c. /*comment/
b. //comment d. */comment
4. Compiler and interpreter are also
known as
a. Converter
C. Byte code
b. Language processor d. Assembler
5. Which is the correct statement to create an object Siriof class art int
a. art_int Siri = new art int):
b. Art_int Siri=new (system.in);
C. Art_int siri = new art_int():
d. art int Siri new art_int
6. Name the primitive data type in Java that is a single 16-bit Unicode
character whose default value is '\u0000'
a. String
b. Character c. char
7. The ASCIl codes of upper d. long
case alphabcts range from:
a. 65-90
b. 60-85 C. 55-91
d. 97-122
2
condition ic. true or false. Which of
8. Boolean Data is used to test a particular
the following is acorrect representation? C. boolean m"true
a. boolean mtrue
b. boolean m='true' d. Boolean mtrue

9. An attempt to exploit a computer systen by gaining unauthorized access is


called
a. Cyber c. Hacking
b. Spam d. Copyright
10. The control goes back for the next iteration of the loop, by skipping the rest
of the statements of the loop.
a. Jump C. Continue
b. Break d. Default

11. A loop that does not include any statement to repeat is a


a. Finite loop c. Null loop
b. Infinite loop d. Step loop
12. A statement that includes a set of statements within it under the opening
and closing curly brackets is said to be a
a. Simple statement c. Compound statement
b. Single statement d. Nested statement
13. What is the final value stored in variable x when double a= -6.35;
double b= 14.74; then double x=Math.abs(Math.ceilla)):
a. 6.0 C. -6
b. 6 d. 6.35
14. Which one is the default delimiter used in Scanner class
a. Senicolon c. White space
b. Colon d. Brackets

15. A kind of error that does not produce the desired output
a. Syntax error c. Run time error
b. Logical error d. None of the above

16. A process where all desired verification against specifications have been
performed
a. Debugging c. Looping
b. Testing d. Iteration
17. What will the following function return when executed?
int p=Math.abs(Math.max(-91,-97);
b. 97
d. 91
C. -97
e. -91
18. Privacy of data can be breached by
a. Personal details
disclosing information pertaining to:
b. Healthcare records
C. Criminal justice investigations
d. All of these
19 The tght to decide how much personad information you wint to
COiniunicate with others is know S
a. Copyright C. Privacy
b. Trademark d. Information Security
20. Java applications can run on ..
a. Windows platform c. UNINX platforn
b. Macintosh platform d. All of these

Question 2
1. Convert to for loop (2)
int sum= 0, i= (0,
do
Sum = sum i,
itt:
while(i <= 100);

2. Format the following if statements with indentation: (2)


if (x *y) if (x z) x= 1; else y 1; else z = 1:
3. Write the JAVA expression (2)
a. z= x + yl+ (xyl /3
4. If a 5, b 9, calculate the value of. (2)
a +* at+ ++b a
5. Read the statement given below: (2)
Scanner ob newv Scanner(System.in);
What does Systen.in signify in the statement.

6. Analyze the given program segment and answer the following questions: (3)

for(int i3;i<«4;it+)
for(int j-2j<ij++)
System.out.print(" :
System.out println("WIN ):

A How many tines does the inner loop excute?

BWrite the output of the program scment.

7. State the ditference between entry controlled loop and exit controlled loop
(5)
8. Correct he errors in the gven progratns
class public
public static void main(String args)

int a=45,b=70,c=65.45;
sum-atb;
diff-c-b;
System.out.println(sum,dif):

SECTION B
Answer any four questions from this section
Question 1 (15)
Using the switch statement, write a menu driven program to calculate the
maturity amount of a Bank Deposit.
The user is given the following options:
1. Term Deposit
2. Recurring Deposit

For option 1, accept principal (P), rate of interest(r) and time period in years(n).
Calculate and output the maturity amount(A) receivable using the formula:
A P{1 + r| 100]n
For option 2, accept Monthly Installment (P), rate of interest (r) and time period in
months (n). Calculate and output the maturity amount (A) receivable using the
formula:

A=Pxn + Px (n{n+1) / 2) x r/ 100 x 1/12


For an incorrect option, an appropriate error message should be displayed.
Question 2 (15)
Using switch statement, write a menu driven program to:
(0) To accept a number and check whether the number is a palindrome or not.
(iu) To find and display the sum of the factorial of all the natural numbers from l
to n

Hint: Sample Input :n =5


factorial of S! 1*2*3"4*5
S-1!+2!+31+...eeesea+n!
For an incorrect choice, an appropnate error message slhould be displaved.
Question 3
(15)
Acloth showroom has announced festival discounts and the gifts on the
of items, based on the total cost as given below: purchase

Total Cost
Discount Gift

Up to 2,000 5% Calculator

¿2,001 to 5,000 10% School Bag

5,001 to ? 10,000 15% Wall Clock

Above 10,000 20% Wrist Watch

Write a progran to input the total cost. Compute and display the amount to be
paid by the customer along with the gift.

Question 4
(15)
Mr. Kumar is an LIC agent. He offers discount to his policy holders on the annual
premium.
tariff.
However, he also gets commission on the sum assured as per the given

Sum Assured Discount Commission

Up to 1,00,000 5% 2%

1,00,001 and up to 2,00,000 8% 3%

22,00,001 and up to 5,00,000 10% 5%

More than 5,00,000 15% 7.5%

Write a program to input name of the policy holder, the sum assured and first
annual premium. Calculate the discount of the policy holder and the commission
of the agent. The prograrn displays all the details as:
Name of the policy holder:
Sum assured:
Premium
1Dscount on the first premium :
Commission of the aent
-6

Question 5 the sum of


the following series:
compute and
display (8)
program to
1. Write a
+ + (1 + 2+ 3+ ----- t n
/ (1 *2* 3)
-----

* 2) + (1 + 2 + 3)
/ (1 *n)
S= (1 +2)*3*-- pattern (7)
)/(1 *2 the following
program to generate
2. Write a
54 321
5432
543
54
5
(15)
Question 6
and check whether it is a 'Spy Number' or
number
Writea program to accept a sum of its digits equals the product of its digits.)
not. (A number is spy if the
Example:Sample Input: 1124+4=8
l +2
Sum of the digits = 1+1*1*2*4
Product of the digits = 8

-XXX

You might also like