100% found this document useful (2 votes)
941 views

First Assessment Computer Applications Class 9

This document provides instructions and questions for a Computer Applications exam. It is divided into two sections - Section A contains short answer questions, and Section B contains longer programming questions. Students must attempt all questions in Section A and four questions of their choice in Section B. The questions cover topics like data types, operators, functions, classes, conditionals, loops, and basic programming problems. Students are instructed to write their answers on exam paper provided and not to write for the first 15 minutes.

Uploaded by

lighting star
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
941 views

First Assessment Computer Applications Class 9

This document provides instructions and questions for a Computer Applications exam. It is divided into two sections - Section A contains short answer questions, and Section B contains longer programming questions. Students must attempt all questions in Section A and four questions of their choice in Section B. The questions cover topics like data types, operators, functions, classes, conditionals, loops, and basic programming problems. Students are instructed to write their answers on exam paper provided and not to write for the first 15 minutes.

Uploaded by

lighting star
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

The Bishop’s Co-Ed School, Undri

First Assessment –2021-22


Subject – Computer Applications
(Time – 2Hours)
Class –IX Max Marks – 100
Answers to this Paper must be written on the paper provided by the school.
You will not be allowed to write during the first 15 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 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.

(a) What is type conversion? Give their types? [2]


(b) Explain Scanner class with an example. [2]
(c) Give the difference between the arithmetic and logical operators. [2]
(d) Write any two important features of Java. [2]
(e) List any 4 rules to name the identifiers. [2]

Question 2.

(a) What are the limitations of Object Oriented Programming? [2]


(b) Explain Run time error with a suitable example. [2]
(c) Write down the syntax of the following functions : [2]
(i) To find rounded-off value of a number stored in b.
(ii) To find cube root of a number stored in a variable a.
(d) What is a new operator ? Give an example ? [2]
(e) What do you understand by the term data abstraction?
Explain with an example. [2]

Question 3.

(a) If w=7; q=9; find the value of d= (--w*q++ - q* --w); [2]

(b) Rewrite the snippet using ternary operator: [2]

if(a>5)
int y=x+2;
else
int y=x-2;

(c) Give the output of the following code :- [2]


class DataType
{
void main()

Page 1 of 4
{
int t=(int)25.75; int c=’a’;
System.out.println(“Value of t=” + t +“ ” +c);
}

(d) int ab=948; int a=Math.max(ab%100, ab/100);


System.out.println(“A=” +a);
Write the output? [2]

(e) Evaluate the value of ‘z’ if int y=10;


int z = (--y * (y-- + 5)) [2]

(f) Give the output for the following: [2]


System.out.println(Math.ceil(22.45));
System.out.println(Math.round(8.49));

2𝑎𝑏
(g) Write java expression for (𝑎2 + 𝑏 2 ) [2]
3

(h) Give the result for the following expression where a=7
a+=a++ + ++a + --a; [2]

(i) State the errors in the snippet below:


class Example
void calc;
{
system.out.println(“Welcome”)
}
} [2]

(j) Give the output if int a=4, b=7;


boolean m=((a>b)||((a+b)==11))? true : false;
System.out.println(m); [2]

SECTION B (60 Marks)


Attempt any four questions from this Section

The answers in this Section should consist of the Programs in either Blue J
environment or any program environment with Java as the base.
Each program should be written using Variable descriptions/Mnemonic Codes
so that the logic of the program is clearly depicted.
Flow-Charts and Algorithms are not required.

Question 4. [15]

Write a program to input two unequal numbers by using the Scanner class and
swap the two numbers. Display the numbers before swapping and after
swapping.

Page 2 of 4
Question 5. [15]

A businessman wishes to accumulate 3000 shares of a company. However,


he already has some shares of that company valuing ₹10 (nominal value)
which yields 10% dividend per annum and receives ₹2000 as dividend at the
end of the year. Write a program in Java to calculate and display the number
of shares he has and to calculate how many more shares to be purchased to
make his target.

Hint: No. of share = (Annual dividend * 100) / (Nominal value * div%)

Question 6. [15]

In an examination you have appeared for three subjects i.e. physics, chemistry
and biology. Write a program in Java to calculate and display the average
mark obtained. Take physics, chemistry and biology marks as inputs through
the Terminal window.

Question 7. [15]

A shopkeeper sells two calculators for the same price. He earns 20% profit on
one and suffers a loss of 20% on the other. Write a program to find and
display his total cost price of the calculators by taking their selling price as
input through a parameter.

Hint: CP = (SP / (1 + (profit / 100))) (when profit)


CP = (SP / (1 - (loss / 100))) (when loss)

Question 8. [15]

Write a program to input three numbers using the Scanner class and find and
display the largest of the numbers using ternary operator.

Question 9. [15]

Write a program to find and display the area and perimeter of a right-angled
triangle taking the base and height as the inputs from the user. Pass the
inputs through function argument.

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

Page 3 of 4

You might also like