0% found this document useful (0 votes)
5 views4 pages

Document from 《@d¡€¥@ $¡ng#》??

This document is an examination paper for Class IX on Computer Applications, consisting of two sections. Section A includes multiple choice questions and short answer questions, while Section B contains programming tasks that require writing Java code for various applications. The paper is designed to assess students' understanding of object-oriented programming concepts, error types, and practical coding skills.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views4 pages

Document from 《@d¡€¥@ $¡ng#》??

This document is an examination paper for Class IX on Computer Applications, consisting of two sections. Section A includes multiple choice questions and short answer questions, while Section B contains programming tasks that require writing Java code for various applications. The paper is designed to assess students' understanding of object-oriented programming concepts, error types, and practical coding skills.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Subject - Computer Applications

Class – IX
TIME – 2 hours M.M.-80
This Paper is divided into two Sections.
Attempt all questions from Section A and any four questions from Section B.
The intended marks for questions or parts of questions are given in brackets [ ].

SECTION A (40 Marks)


Attempt all questions
Question 1: Multiple Choice Questions [20]

(i) An object has……………


(a) attributes (b) behavior (c) state (d) all of these.
(ii) Explicit type conversion is also known as ………………..
(a) type casting (b) widening (c) type promotion (d) None of these
(iii) Which keyword do you use to include a class in your program?
(a) include (b) import (c) Scanner (d) util
(iv) Name the package that contains Math class?
(a) Scanner (b) lang (c) import (d) Math.sqrt()
(v) The expression 2+3*7/2; gives the output………
(a) 12 (b) 17 (c) 12.5 (d) 17.5
(vi) The ……… operator is used to access method of a class.
(a) Object (b) new (c) (.)dot (d) import
(vii) int res = 'F'; What is the value of res?
(a)102 (b) 70 (c) ‘F’ (d) error
(viii) x = x++ + --x ; [ x = 5 ]
(a) 11 (b) 10 (c) 5 (d) none of these
(ix) System.out.println (Math.ceil(4.22)+Math.cbrt(8));
(a) 7 (b) 7.0 (c) 6.0 (d) 68.0
(x) Wrapping up of data and method into a single unit is called _________.
(a) Encapsulation (b) Abstraction (c) Inheritance (d) Polymorphism
(xi) The return data type of Math.sqrt( ) method is ________ .
(a) String (b) int (c) void (d) double
(xii) Corresponding wrapper class of the char data type is?
(a) String (b) Character (c) Char (d) CHARACTER
(xiii) The ----------- members can be accessed within same package only.
(a) public (b) private (c) protected (d) default.
(xiv) Among the following which is not a keyword:
(a) int (b) byte (c) join (d) continue
(xv) Which of the following is not binary operator?
(a) >= (b) ++ (c) = (d) ||
(xvi) Find the odd one
(a) token (b) keyword (c) literals (d) identifier
(xvii) for(int k=1;k<=3;k++)
{
for(int m=1;m<=5;m++)
{
System.out.println(“ # ”);
}
}
How many times the inner loop will be executed?
(a) 15 times (b) 8 times (c) 5 times (d) 16 times
(xviii) which of the following is an exit controlled loop?
(a) for (b) do while (c) switch (d) while
(xix) ………… is the keyword used to exit from a loop?
(a) break (b) return (c) if else (d) continue
(xx) What is the size of float data type?
(a) 8 bits (b) 32 bits (c) 4 bits (d) 64 bits

Question 2: Answer all the questions. [20]


a) Name all the four properties of OOPS?
b) Name three types of error. Explain any one.
c) Differentiate between unary and binary operators? Give some example.
d) Write some motives behind hacking.
e) What is cyber crime? Briefly describe any two cyber crime.
f) State the output of the x and y.
x=Math.pow(Math.sqrt(16), Math.ceil(2.125));
y=Math.floor(9.25)+Math.min(-5,-6);
g) State the output of the following code segment.
for(int i = 1 ; i < 20 ; i++)
{
if(i%3==0 || i%5==0)
continue;
System.out.println(i);
}
2 2
a +b
h) Write the java expression for .
2 ab
i) Name the operators listed below
I. = II. ++ III. && IV. %
j) What will be the value of x, y after evaluating following expression, if x=7.
y = ++x *3- (x – –) %4 – x++/4.
Show the steps.

SECTION B (40 Marks)


Attempt any four questions from this Section.

Question 3: Write a program to check whether a number is a perfect number or not. A


number is said to be perfect if sum of all its factors is twice the number.

Question 4 - write a menu driven program to


(a) Print area of a circle.
(b) Print area of a rectangle.

Question 5 - write a program that accepts principal, rate and time from user and print
compound interest and amount.
[ hint : amount=p(1+r/100)t. amount=principal+interest]

Question 6: Using nested loop write programs to display the following pattern.

(i) #@#@#@
#@#@#@
#@#@#@
#@#@#@
#@#@#@
#@#@#@
(ii) 1
12
123
1234
12345

Question 7: Write a program to input student’s name, class, marks of 4 subjects (Max
Marks=100). Compute percentage and give grade as following table

PERCENTAGE GRADE
>= 70 % A
>= 40 % and < 70 % B
< 40 C

Display name, percentage and grade of the student.


Question 8: Write a program in java to print reverse of a number entered by user.

You might also like