0% found this document useful (0 votes)
57 views3 pages

First Term Examination-2018 Max. Time: 2 Hrs

The document contains a test exam for grade 9 computer applications. It has 4 sections with multiple choice and long answer questions testing concepts like data types, operators, functions, classes, conditionals, loops, arrays and more.

Uploaded by

Apoorva
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)
57 views3 pages

First Term Examination-2018 Max. Time: 2 Hrs

The document contains a test exam for grade 9 computer applications. It has 4 sections with multiple choice and long answer questions testing concepts like data types, operators, functions, classes, conditionals, loops, arrays and more.

Uploaded by

Apoorva
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/ 3

PATEL PUBLIC SCHOOL

Affiliated to ICSE, New Delhi.


Subbaihnapalya, Bangalore-33.
First Term Examination-2018 Max. Time: 2 hrs
Grade 9 COMPUTER APPLICATIONS Max.Marks:100

Section A(40 Marks)


(Attempt all the questions from this Section)
Question 1.
a) What is JVM? [2]
b) Define Token. [2]
c) Write the rules to name an identifier. [2]
d) Differentiate between Primitive and Reference data type. [2]
e) What is an escape sequence? Give an example. [2]

Question 2.
a) Which of the following are valid identifiers and why/why not: [2]
Data_rec _data , 1 data , my.file , switch
b) Arrange the following operators in ascending order based on the precedence: [2]
= , ++ , ^ , &
c) Given the following set of identifiers:
byte b ; char ch;
shortsh; intintval;
longlongval; float fl;
Identify the data type of the following expressions:
i) ’a’-3 [2]
ii) intval * longval –ch; [2]
iii) fl+ longval/sh [2]

Question 3.
a) Evaluate: [2]
int a, mb=2 , k=4 ;
a=mb*3/4+k/4+8-mn+5/8;
b) Rewrite the following by using switch-case statement: [2]
if (code==’A’)
System.out.println (“Accountant”);
else
if (code == ‘C’ || code==’G’)
System.out.println(“Grade IV”);
else
if(code==’F’)
System.out.println(“advisor”);
c) Differentiate between if-else and switch-case. [2]
d) Give output of the following: [2]
int a=5;
a + +;
System.out.println(a);
a−¿ ¿;
System.out.println(a);
e) What is the value of 1 , if x =5. [2]
x 1=++ x−x +++−−x ;
Question 4.
a) Briefly explain the terms: i) Softlifing ii) Software counterfeiting [2] b)
Briefly explain the terms: i) IP spoofing ii) Denial of service [2]
c) Differentiate between patent and copyright. [2]
d) Give the syntax of function definition. [2]
e) Define ‘Intellectual property right’. [2]

Section B (60 Marks)


(Attempt any 6 questions from this Section)
Each program must be written by using variable description table.
Question 5.
A bank accepts fixed deposits for one year or more and the policy it adopts on interest
is as follows: [10]
i)If a deposit is less than ` 2000 and for 2 or more years, the interest rate is
5% compounded annually.
ii)If a deposit is ` 2000 or more but less than ` 6000 and for 2 or more years, the interest
rate is 7% compounded annually.
iii)If a deposit is more than ` 6000 and is for 1 year or more, the interest rate
is 8% compounded annually.
iv)On all deposits for 5 years or more, interest is 10% compounded annually.
v)On all other deposits not covered by above conditions, the interest is
3% compounded annually.

Given the amount deposited and the number of years, write a program to calculate the money in
the customer’s account at the end of the specified time.

Question 6.
Write a menu driven program to convert Fahrenheit to Celsius and Celsius to Fahrenheit. [10]

Question 7.
Write a program that takes three angles and states whether these angles form an
acute triangle or an obtuse angle or a right-angled triangle. [10]

Question 8.
Write a program by using function to convert the time in 24 hrs format to 12 hrs format. [10]

Question 9.
Write a java class to calculate the income tax by taking monthly salary of an employee based on
the following conditions:  [10]

Annual income(Rs)                                 Tax


Upto`1,30,000                                      No tax
>than `1,30,000 to <= `2,00,000         15% of the amount exceeding over
`1,30,000
>than ` 2,00,000 to <= ` 2,50,000  `5000 + 20% of the amount exceeding
over`2,00,0000
>than ` 2,50,000                                    30% of the amount exceeding
`2,50,000
Question 10.
A school has following rules for grading system: [10]
Below 25 – F
25 to 45 - E
45 to 50 – D
50 to 60 - C
60 to 80 - B
Above 80 –A
Write a program to enter name and 5 subject marks and print the corresponding grade.
Question 11.
Define a class called mobike with the following description: [10]

Instance variables/data members:


Int bno – to store the bike’s number
int phno – to store the phone number of the customer
String name – to store the name of the customer
int days – to store the number of days the bike is taken on rent
int charge – to calculate and store the rental charge

Member methods:
void input( ) – to input and store the detail of the customer.
void compute( ) –to compute the rental charge

The rent for a mobike is charged on the following basis.


First five days `500 per day
Next five days `400 per day
Rest of the days `200 per day
void display ( ) – to display the details in the following format:
Bike No. PhoneNo. No. of days Charge

Question 12.
Shasha Travels Pvt. Ltd. gives the following discount to its customers: [10]

Ticket amount Discount


Above `70000 18%
` 55001 to `70000 16%
`35001 to `55000 12%
` 25001 to `35000 10%
less than `25001 2%

Write a program to input the name and ticket amount for the customer and calculate the
discount amount and net amount to be paid. Display the name, discount and net amount.

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

You might also like