(Paper) ICSE Important Questions : Computer Application (2009) Part -4
Disclaimer: This website is NOT associated with CBSE, for official website of CBSE visit - www.cbse.gov.in
Paper : ICSE Important Questions : Computer Application (2009) Part - 4
Question 1.
- What is significance of abstraction in class. Explain with example. (4)
- What is main method ? What is its role in java program?. (3)
- What is Local and global variables in Java?. (3)
Question 2.
- Differentiate between Operator and expression0. (4)
- Define bytecode (2)
- Evaluate Math.ceil(7.8)+Math.round(6.3); (1)
Question 3.
- What is BufferedReader. (2)
- Write a syntax of nested if-else. (1)
- Explain the concept of wrapper class in Java.(5)
- What is difference between binary search and Linear search. (2)
Question 4.
- Distinguish break and continue statements with example. (4)
- What is prototype of a method ? Explain.(2)
- Explain exception class.(2)
- Define constructor and ‘static’ keyword.(2)
SECTION B [60 Marks]
Answer any FOUR questions in this section. Each program should be written in such a way that it clearly depicts the logic of the problem. This should be achieved by using mnemonics and comments in the program. Give the variable list used in the program. Flowcharts and algorithms not required.
Question 5.
- Primorial(p#) is defined to be a product of prime numbers less than or equal to p. (15)
For eg. 3# =2*3=6 5# =2*3*5=30 Design a class primo_numb with two methods
- to check whether entered number is prime number or not
- to print the primorial of that number.
Question 6:
(a) Write a program to print following pattern (8)
1
0 1
1 0 1
0 1 0 ….. n
(b) Write a program to enter a string and print the first character of that string at last.
For eg. “deep” ->eepd
“b”-> b
“dv”->vd (7)
Question 7.
(a) The single dimensional arrays A and B are sorted in ascending order. Create an array C to combine them into a descending order.(10)
(b) Declare a class shop with following data members. (7)
- Name of the item ND
- item number ITNo
- Balance Amount Bal_Amt
- Type of item TIT
Initialize all the data members.
Question 8.
- Write a class to enter three numbers in a function numb( ). And print the
numbers entered if it is possible that the addition of any two numbers give
third number.(8)
For eg. numb(3,4,7) -> here 3+4=7
numb(8,5,3) -> 5+3=8
numb(8,10,2) -> 8+2=10 - Enter two arrays of characters named Arr1 & Arr2, in alphabetical
order. Print the count of the number of characters which appear in
both arrays.
Arr1 {"a", "c", "x"}
Arr2 {"b", "c", "d", "x"}) → Prints 2 (7)