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

Computer Annual Question Paper 2023-24

The document outlines the structure of the Annual Examination for Class IX in Computer Applications, including two sections with various types of questions. Section A consists of multiple-choice questions and short answer questions, while Section B requires programming tasks in Java. The exam covers topics such as object-oriented programming principles, Java syntax, and practical programming exercises.

Uploaded by

alanwalker29286
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)
33 views6 pages

Computer Annual Question Paper 2023-24

The document outlines the structure of the Annual Examination for Class IX in Computer Applications, including two sections with various types of questions. Section A consists of multiple-choice questions and short answer questions, while Section B requires programming tasks in Java. The exam covers topics such as object-oriented programming principles, Java syntax, and practical programming exercises.

Uploaded by

alanwalker29286
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

Annual Examination - 2023-2024

Class IX
COMPUTER APPLICATIONS
Time: 2 hrs. FullMarks :100
This paper is divided into two sections Section A and Section
B. Attempt all questions from Section A and Section B. The
intended marks for each question is given in braces -
SECTIONA
Question 1 [20]
Choose the correct answer and write the
1) A
correct option.
new line character is:
vá) ln b) \t c) \0 d) \f
i1) The autonsatic type conversion
complier is known as: performed by the java
-á) Implicit conversion ) Explicit
c) Forced conversion conversion
d) Type conversion
ii) The boolean literal is
)True Lb) false c) 0 d) 1
iv) An operator that has two operands is
known as
a) Unary operator -b) Binary operator
c) Ternary operator d) Operator
v)

Name the principle of O0P depicted in the above picture.


a) Polymorphism b) Inheritance
c) Abstraction d) Encapsulation
IX-Comp. App. (2)
vì) Loop with no end i.e.
evaluates to true whose test-expression always
a) Delay loop b) Empty loop
c) Infinite loop
d) None of these
vii) An object is represented by two
one is 'Behaviour' and the attributes, out of which
other one is
a) Abstraction b) Characteristics
c) Encapsulation d) class
vii)What is meant by State of an
object?
a) Function of the object b) Data
c) Content of an object .d) All of
members of the object
these
ix) What is the ability of an
called?
object to take on many forms
a) Inheritance b) Encapsulation
c) Abstraction d) Polymorphism
x) Keyword which is used to call the
package in the program?
a) this : b) new c) class d) import
xi) The extension of Java source code file is:
á) java b) .class c) .prg d) .txt
xii) Pick the odd one out
a) for b while c) do...while d) if..else
xiii) Give the output of the following code
Math.max(Math.ceil(-35.34), Math.floor(35.34))
a) -36.0 b) -35.0 c) 36.0 d) 35.0
xiv) Which of these jump statement can skip processing
remainder of code in its body, for a particular iteration?
a) break b) continue c) exit A) case
IX-Comp.App. (3)

xV)Which) of the following loop executes atleast once ?


a) for b do... while c) while d) None of thee
xvi) Which ofthe following constants are used in sswitch case
statement?

a) char b) int c) double .d) both a and b


xvi) What willbe the output of the following code?
int i;
for(i = 1; i<-4;ii+2)
System.out.print(i + 2);
a) 346 -b) 35 c) 1234 d) 3456
xvii) Which of the following Math function gives the next
mathematical integer?
a) floor() b) ceil() c) abs() d) max()
Xix) The return type of Math.cbrt()
a) int ·b) double c) float d) boolean
Xx) do...while loop is controlled loop but while loop
is controlled loop.
a) exit, entry -b) entry, exit
c)finite, infinite d) None of these
Question 2 [10×2=20]
Y Evaluate the expression when the value of a= 8
a =a - tta + att + 5 (3

Write the Java expression for x-a+b +e?)


i) Give the output of the following:
System.out.printin(Math. abs(Math.floor(-8.64); 4.0
1X-Comp. App. (4)
jv) Rewrite the following using ternary operators:
if(a>b)
x=10;
else
X=20;
Give the general syntax of a do while loop.
Show the output of the following while statement:
int i= 5;
while(i>-0)
System.out.println(i);
i--;
}
What will be the output?
for (int i; i<-3; itt)
{
for (int /l; j<<3; jt+)
{
System.out.println(i"j);}}
vi)Convert the following for loop to do while loop:
for(int i-20; />-2; i-)

System. out,println(i);

Give the output of the following:


int i;
for(i = 1; i<-5;it+)
IX-Comp. App. (5)

System.out.println(i);
System.outprintln(i);
Explain with use of break statement in a loop. Gve
example.
SECTIONB
The answer in this section should consist of the
programs in Blue J environment with java as the Base.
Bach program should be written using variable
description.
[4x15-60]

oucstion 3
Travels Pvt. Ltd. gives the following discount to its customers
A
as per the given tariff:
Ticket Amount Dccent

Above O70,000 18%

D40,001 to D70,000 15%

O25,001 to 40,000 12%

Less than 25,001 5%

Write aprogram to input the name and the amount of the ticket
for the customer. Calculate the discount and net amount to be
paid. Assume that there are 15 customers.
Ouestion 4
Write a program to accept a three digit number and check
whether it is an Armstrong number or not.
If thenumber is not a three digit number then print Not a valid
number".
IX-Comp. App.
(6)
Note: A three digit number is
known as an Armstrong nunber
when the sum of the cube of each digit is equal to the number.
Threc digit Armstrong number: 153 .1+5+ -153
Question5
Write a program to generate the
user's choice. following designs as per
1. 111 2. 4321
2222 321
3333 21
4444 1
Ouestion 6
Create a class Composite to perform the following task:
To check and display whether a
number input by a user is
composite number or not (A number is said to be a composite,
if it has one or more than one
factorëxcluding 1 and the
number itself.) Example 4, 6, 8, 9

You might also like