0% found this document useful (0 votes)
15 views

20112024105941Class 9 Computer Applications 2nd Term Master Worksheet

Computer

Uploaded by

ishanjadhav077
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

20112024105941Class 9 Computer Applications 2nd Term Master Worksheet

Computer

Uploaded by

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

THE BISHOP’S SCHOOL, PUNE

2ND TERMINAL EXAMINATION MASTER WORKSHEET (2024-2025)


SUBJECT: COMPUTER APPLICATIONS
CLASS: IX MARKS: 100
DATE: TIME: 2Hrs
=============================================================================
Answer 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 [20]
Choose the correct answers to the questions from the given options.
(Do not copy the question, write the correct answer only.)

1.
Name the OOP’s principle depicted in the above picture.
a) Encapsulation b) Polymorphism
c) Inheritance d) Abstraction
2. ____________ is an identifiable entity
a) Object b) Class
c) Characteristics d) Behaviour
3. Assertion (A): 12 is a constant.
Reason (R): All literals are constant.
a) Both Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation of Assertion
(A).
b) Both Assertion (A) and Reason (R) are true and Reason (R) is not the correct explanation of
Assertion (A).
c) Assertion (A) is true but Reason (R) is false.
d) Assertion (A) is false but Reason (R) is true.
4. int p=12,q=6;
q-=++p+q%++q;
System.out.println(q); What will be the output of given println () statement?
a) 13 b) -13
c) 31 d) -31
5. x=a*b/c;
In the above statement the expression will be evaluated from _________ .
a) L to R c) R to L
b) Both at once d) None of the above

1
6. Which among the following is a false statement?
a) Keywords can be used as an identifier. b) Class name must be meaningful.
c) float f=12.21f; d) Literals are constants
7. __________ is a Syntax Error?
a) System.out.println(x+++ " "); b) int x = 5/0;
c) int a=sc.NextInt(); d) double d=231;
8. ______ is a jump statement.
a) case b) control variable
c) continue d) default
9. All the cases executed one after the other in a switch case due to _________ is missing.
a) continue b) jump
c) break d) None of the above
10. Assertion (A): for loop can execute infinitely.
Reason(R): Due to the condition never turns false.
a) Both Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation of Assertion
(A).
b) Both Assertion (A) and Reason (R) are true and Reason (R) is not the correct explanation of
Assertion (A).
c) Assertion (A) is true but Reason (R) is false.
d) Assertion (A) is false but Reason (R) is true.
11. Types of Java program available.
a) Applets b) Standalone
c) Both a and b d) Only applications
12. Which among the following is not a Data Type?
a) Integer b) double
c) char d) boolean
13. A statement which is used to exit from a loop.
a) continue b) exit()
c) return d) break
14. A class is a _______________ .
a) Template b) class
c) Object d) all of these
15. Unicode character sets are represented by _____ symbol.
a) \\u b) /u
c) \u d) //u
16. int a=9,b=11,c=1;
System.out.println(a++*b%++c-a);
a) 39 b) -39
c) 9 d) -9
17. The latest version of Java is _____ .
a) 21 b) 23
c) 17 d) None
18. char ch=’T’;
for( ; ch<=’V’;ch++)
System.out.print(ch++);
What will be the output?
a) TUV b) TSR
c) TV d) TR

2
19. choose the odd one out:
a) System b) Scanner
c) String d) static
20. The loop which never terminates are known as ____ .
a) Infinite loop b) Delay loop
c) Finite loop d) None of the above

Question 2. [20]

1. Define nested for loop statements in Java. Give its syntax.


2. State the difference between character and String literals.
3. Write a Java expression for the following:
𝑏 ∗ √𝑏𝑥 2 − 4𝑏
4𝑥 3
4. Convert the conditional operator to if-else.
status=(connection==true)?1:0;

5. Predict the output:


for(int x=1;x<=6;x++)
{
if(x%2==0)
System.out.println(Math.pow(x,2));
else
System.out.println(Math.pow(x,3));

}
6. Convert the switch case to if-else statement:
switch(c)
{ case ‘a’:
case ‘e’:
case ‘i’:
case ‘o’:
case ‘u’:
count1++;break;
default: count2++;
}
System.out.println(“vowels : “+count1);
System.out.println(“consonants : “+count2);

7. Predict the output:


int a=2,b=5,c=8;
switch(a)
{
case 1: a=b*c; System.out.println(a);
case 2: b=a*c; System.out.println(b);
case 3: c=a*b; System.out.println(c);
default: System.out.println(“Wrong input”);
}
8. Predict the output:
for(int j=2,i=8;j<i;j++)
{
System.out.println(i*j);
}
9. Evaluate the expression.
int p=3,q=6,r=9;
r*=++p-q++ * r++ %p%q;
3
System.out.println(r);
What will be the value of ‘r’?

10. Evaluate the expression.


int m=21,n=54;
if((m<n%55)||(m>n/2))
System.out.println(n%55);
else
System.out.println(m*n);

Section B (60 Marks)


Attempt any four questions from this section.
The answer in this section should consist of the Program either in BlueJ environment or any program
environment with Java as the base.
Flow Charts and Algorithms are not required.
Comments and Variable description table is compulsory for each program

Question 3 [15]
Write a menu driven program in Java to perform the following operations:
Press 1: Display sum of the series 0 + 1 + 1 + 2 + 3 + 5 + 8 ….upto nth term
Press 2: Display the series 7, 77, 777, 7777, 77777 . . . upto nth term.

Question 4 [15]

A cloth showroom has announced the following festival discounts on the purchase of items based on the total
cost of the items purchased:
Total Cost Discount Rate
Less than Rs. 2000 5%
Rs. 2000 to less than Rs. 5000 25%
Rs. 5000 to less than Rs. 10,000 35%
Rs. 10,000 and above 50%
Write a program to input the purchase amount. compute and display the amount to be paid by the customer
after availing the discount.
Note : Display as per the output format given in the example below.
Example:
Amount Amount to be paid after discount
10000 5000.0

Question 5 [15]
A StarLine Cab service company provides service within the city at the following rates:
Distance CAR
Upto 5 KM ₹150/-
Beyond 5 KM ₹10/- PER KM

Write a program in Java to input the number of KM. calculate and display the final amount to be paid.
Note : Display as per the output format given in the example below.
Example:
Travel (km) Charges
8 Rs. 180

4
Question 6 [15]
Write a program menu driven program in Java to perform the following operations:
Press 1 : To display the pattern
1
00
111
0000

Press 2 : To display the pattern


5 6 7 8 9 10
6 7 8 9 10
7 8 9 10
8 9 10
9 10
10

Question 7 [15]
Write a program in Java to accept a number from the user. Display the number of factors. check whether it’s a
Prime number or not.
Note : Display as per the output format given in the example below.
Input: 11
Output: Number of factors are: 2
It’s a Prime Number

Question 8 [15]
Employees at SK Consulting earn the basic hourly wage of Rs.800. In addition to this, they also receive a
commission on the sales they generate while tending the counter. The commission given to them is calculated
according to the following table:
Total Sales Commission Rate
₹ 100 to less than Rs. 1000 1%
₹ 1000 to less than Rs. 10000 2%
₹ 10000 to less than Rs. 25000 3%
₹ 25000 and above 3.5%
Write a program in Java that inputs the number of hours worked and the total sales. Compute the wages of the
employees.
Note : Display as per the output format given in the example below.
Input: Input the number of hours worked.
5
Total sales
38000
Output: Hourly wage = 4000
Commission earned = 1330
Total Amount = 5330

**************
5

You might also like