ICSE 2010, Computer Application, Sample Question Paper 16, Class X
http://www.icseguess.com/-------------------------------------------------------------------------------------------------------www.icseguess.com Other Educational Portals www.cbseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com SamplePaper – 2010 Class – X Subject – Computer Application This paper is divided into two Sections. Attempt all questions from Section A and any five questions from Section B. The intended marks for questions or parts of questions are given in brackets ( ). Section A Question 1 (2 marks each) (a) Define a class. How is it related to an object? (b) What is a compound statement? (c) Explain the concept of try-catch-finally with a suitable example. (d) State and explain the multiple branch selection statement provided by Java. (e) Given numbers 23, 45, -33, 533, 100. Illustrate a binary search to locate the number 500. Question 2 (a) What is a package? (2 marks) (b) What is the value of the following expressions( or ERROR)? (1 mark each) i) “Tomorrow”.substring(4).indexOf(r); ii) “ Correct”.charAt(1).compareTo(“Option”.charAt(0)); (c) Unlike other languages, why does Java need a compiler as well as an interpreter? (2 marks) http://www.icseguess.com/-------------------------------------------------------------------------------------------------------www.icseguess.com Other Educational Portals www.cbseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com (d) What is meant by an infinite loop? Give an example. (2 marks) (e) Write a statement in Java for 43)(abba (2 marks) Question 3 Differentiate between the following pairs: (2 marks each) (a) coercion and casting (b) String and StringBuffer classes (c) Byte Oriented and Character Oriented Streams (d) if-else and switch (e) throw and throws Question 4 (1 mark each) (a) What is the requisite data type to store the character * ? (b) Which keyword is used to raise an exception? (c) If a =12, b =11 and a+= a++ – (--a * --b). Find the values of a and b. (d) State the three types of errors. (e) What does System.in.read() return? (f) Given String str = “60”; write the statement to convert it to an integer data type. (g) State any two IOException classes. (h) Name the method used to print random numbers between 0 and 1. (i) State any two non-numeric primitive data type. http://www.icseguess.com/-------------------------------------------------------------------------------------------------------www.icseguess.com Other Educational Portals www.cbseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com (j) How many iterations are involved while bubble sorting an array of 5 integers? Section B Attempt any five questions from this section. The answers in this Section should consist of the Programs in either BlueJ environment or any program environment with Java as the base. Each program should be written using Variable description/Mnemonic Codes such that the logic of the program is clearly depicted. Flowcharts and Algorithms are not required. 1 A scholarship is awarded to the top three scorers in a Scholarship test conducted in a class of 50 students. Store names and total marks to arrange them in descending order of marks and display the name of students securing the first three positions in the class along with their total marks. 2 A computerized ticket counter of an underground metro rail station charges for each ride at the following rate: Age Amount/Head 18 or above Rs. 5 5 or above but below 18 Rs. 3 Accompanying kids below 5 Nil Accept the number of people of various age groups and prints a ticket. At the end of the journey, the program should state the number of passengers of different age groups and the total amount received as collection of fares. http://www.icseguess.com/-------------------------------------------------------------------------------------------------------www.icseguess.com Other Educational Portals www.cbseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com 3 Input any string to calculate the total number of characters and vowels present in the string and also reverse the string. 4 Create a 3 X 3 matrix and store the first nine natural numbers in it row-wise. Print the following output: i) sum of the numbers in each row ii) product of the numbers on the leading diagonal iii) average of the numbers in the lower triangle of the trailing diagonal. 5. Design a menu driven program to input a two digit number and find whether it is a: Prime number Palindrome number 6. Print the following patterns: a) 1 12 123 1234 12345 b) BBBB EEE SS T http://www.icseguess.com/-------------------------------------------------------------------------------------------------------www.icseguess.com Other Educational Portals www.cbseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com Paper By : Mrs. Armin Shroff Email Id:-arminzs@yahoo.com Ph No.: 9846761942
Description
This content is useful for ICSE Students
Presentation Transcript
Your Facebook Friends on WizIQ