Trending ▼   ResFinder  

ICSE Class IX Prelims 2021 : Computer Applications (Greenwood High International School, Bengaluru)

5 pages, 24 questions, 1 questions with responses, 1 total responses,    2    0
ManuscriptHunter
  
+Fave Message
 Home > mandalorian >   F Also featured on: School Page icse9 and 2 more

Formatting page ...

GREENWOOD HIGH TERM EXAMINATION 1 OCTOBER 2020 SUBJECT COMPUTER APPLICATIONS Grade 9 Date: 16/10/2020 Time: 2 hrs Max. Mark: 100 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. _____________________________________________________________________ SECTION A (All questions are compulsory) Question 1: [10 * 1 = 10] a) Identify the keyword in Java to represent a set of objects that has common attributes and behavior. b) In procedural programming, more emphasis in given to _________ ? c) Which character set is capable of representing almost all writing systems around the world? d) Name the package in Java containing Scanner class. e) Which keyword in Java makes the variable declaration constant ? f) Which process in Java promotes a data type into its highermost data type available in the expression? g) Which statement in Java allows a variable to be tested only for equality against a list of values? h) Which type of loop in Java continues iterating indefinitely? This paper has 5 no of printed pages 1 i) Write valid Java expression for the following mathematical expression: x5 + 4xy + 3z 2x + z -y j) What is the size of long datatype in Java? Question 2: Define the following along with appropriate examples: [5 * 2 =10] a) Type casting b) Object c) Empty loop d) Encapsulation e) Literals Question 3: Predict the output of the following code fragment: a) int a=0,p=2,x,n=5; for(x=2;x<=4;x++) { if(n%x==0) { a = ++p + p-- + x; break; } else continue; } System.out.println(a); System.out.println(x + p); b) double d = 13.67; int k=12,j=10; int res = k>10?44:54; System.out.println(res + (int)d); System.out.println("Java " + (j<res)); System.out.println(k + j + "Hello Java"); System.out.println((char)(k+57) + j); System.out.println(++k + --j); This paper has 5 no of printed pages [5] [5] 2 c) Assuming the value of p =1, predict the output of the following: [5] int a=1,b=2,c=3; char ch = 'A'; switch(p) { case 1: a++; case 2: ++b; ch++; break; case 3: c--; ch++; } System.out.println(a + " " + b + " " + c); System.out.print(ch); d) int sal=3000; double n=0.0; for(int a=1;a<=2;a++) { n = sal>1000?sal-(50.0/100)*sal : sal - 0.2*sal; sal = sal - (int)n; } System.out.println(sal); System.out.println(n); This paper has 5 no of printed pages [5] 3 SECTION B The answers in this Section should consist of the Program 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. (All questions are compulsory) Question 4: [15] A transport company charges for parcels from Bangalore to Delhi or vice versa as per the following criteria: Weight in Kg Charge per Kg Upto 10 Kg Rs. 25 per Kg Next 20 Kgs Rs. 20 per Kg Above 30 Kgs Rs. 10 per Kg An additional surcharge of 5% is charged on the bill. Write a Java program to input the name of the customer and weight of the parcel. Calculate and display the total bill inclusive of surcharge in the following format: Name XXXXX Weight Total Bill XXXX XXX Question 5: [15] Write a menu driven program in Java to do the following: a Input a double value(N) and display the following series : 1.0 1.2 1.4 .. N b Input an integer number (num) and print the sum of only those digits of the number which are multiples of 2 or 3. Sample input: num=43961 Sample output : sum = 4 + 3 + 9 + 6 = 22 Appropriate error message must be displayed for an incorrect choice. [Use Streams] This paper has 5 no of printed pages 4 Question 6: [15] An international airline gives the following discount to its customers for the purchase of tickets as per the given criteria: Ticket amount Discount Above Rs. 79000 Rs. 55001 to Rs. 79000 Rs. 35001 to Rs. 55000 Rs. 25001 to Rs. 35000 less than Rs. 25001 18% 16% 12% 10% 2% Write a program to input the name and ticket amount for the customer. Calculate and display the discount, amount and net amount to be paid. Question 7: [15] Write a program to input a number and reverse the number. Check and display whether the reverse of the number is a Harshad number or not. [A Harshad number , is an integer that is divisible by the sum of its digits Example: 200 is a Harshad Number as the sum of digits is 2(2+0+0) and 200 is divisible by 2 171 is a Harshad Number as the sum of digits is 9(1+7+1) and 171 is divisible by 9 ] [Use Scanner class] This paper has 5 no of printed pages 5

Formatting page ...

Top Contributors
to this ResPaper
(answers/comments)


Jay Kishan Agarwal

(1)

ResPaper Admins

(1)

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

Additional Info : ICSE Class IX Mid-term 2021 : Computer Applications  

© 2010 - 2025 ResPaper. Terms of ServiceContact Us Advertise with us

 

mandalorian chat