100% found this document useful (1 vote)
465 views2 pages

CLASS 9 COMP APP Exam

The document provides instructions for a computer applications exam for class 9 students. It contains 9 questions in Section A and 4 questions in Section B. Section A questions are short answer and Section B questions require writing Java programs to solve problems. Students must attempt all Section A questions and any 4 questions from Section B. Section B programs should use variable descriptions and flowcharts are not required.

Uploaded by

Bepis Boi
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
100% found this document useful (1 vote)
465 views2 pages

CLASS 9 COMP APP Exam

The document provides instructions for a computer applications exam for class 9 students. It contains 9 questions in Section A and 4 questions in Section B. Section A questions are short answer and Section B questions require writing Java programs to solve problems. Students must attempt all Section A questions and any 4 questions from Section B. Section B programs should use variable descriptions and flowcharts are not required.

Uploaded by

Bepis Boi
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/ 2

DON BOSCO SCHOOL, BERHAMPORE

FIRST TERM EXAMINATION-2021-22


SUBJECT: COMPUTER APPLICATIONS
CLASS:9 FULL MARKS:100 TIME:2 HOURS
(Theory)
(Two Hours)
Answers to this Paper must be written on the paper provided separately.
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 an identifier? [2]
(b) Mention any two differences between Java Applications and Java Applets. [2]
(c) What are the two major categories of data types in Java? [2]
(d) What are the default values of the following primitive data types: [2]
i) char ii) boolean
(e)What is inheritance? [2]

Question 2.
(a) What is the difference between class variables and instance variables? [2]
(b) What is the use of ‘new’ operator? Explain with example. [2]
(c) Name any two types of errors which occurs during the execution of a program. [2]
(d)What is a constant? How can we declare a constant in java? [2]
(e) What is the use of writing comments in Java? How can we include comments in a Java program? [2]

Question 3.
(a) What is an access modifier? Name the access modifiers in Java. [2]
(b) What is the difference between = and = = operators. [2]
(c) What is the value of sum if x=5? [2]
sum = ++x – x++ + --x
(d)(i) If a function contains several return statements, how many of them will be executed? [2]
(ii) Which OOP principle implements function overloading?
(e)State the number of bytes occupied by char and int data types. [2]
(f) Evaluate the value of s, if value of m = 5, n = 19 [2]
int s = (n-m)>(m-n)?((n-m):(m-n);
(g) Define the term type conversion? How is implicit conversion different from explicit conversion? [2]
(h) Name the Java package: [2]
(i) This package is invoked by default by all programs without using the import command.
(ii) This package contains important utility classes like Date, Calendar, Dictionary, Currency etc.
(i)Differentiate between actual parameter and formal parameter. [2]
(j) Rewrite the following using Ternary operator: [2]
if(deposit<120000)
interestrate =5;
else
interestrate =6;

SECTION B (60 Marks)


Attempt any four questions from this Section.
The answers in this Section should consist of the Programs in wither 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. Write a program to accept name of the student and marks obtained in Science, Computer [15]
and English and find the Total Marks and Percentage obtained by the student.

Question 5. Write a program that prompts to enter a number and check whether the number is prime or not.
(using method). [15]

Question 6. Write a program to accept two numbers from the user and find the greater number [15]
among them.

Question 7. Write a program to input basic pay(bp) of an employee. Calculate da, hra,pf, gp and np. [15]
Display gp and np. Where da= 24% of bp, hra = 15% of bp, pf = 8.33% of bp.
gp = bp+da+hra, np = gp-pf.

Question 8. Write a program to accept the name of a book and its price from the user. Now calculate the price
of the book after discount. Discount is calculated based on the following criteria: [15]

Price Discount
Less than or equal to Rs. 1000 2% of price
More than Rs. 1000 and less than or equal to Rs. 3000 10% of price
More than Rs. 3000 15% of price

Question 9. Write a program to calculate the following expressions using methods. [15]
(i) area of rectangle = l x b
(ii) area of circle = πr2 (value of π=3.14)
__________________________

You might also like