Formatting page ...
II TERM EXAMINATION : 2020-21 Class - X (ICSE) Subject - Computer Applica on Time : 2 hrs. M.M. : 100 Answers to this paper must be written on the paper provided separately. You will not be allowed to write during the rst 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 to write the answers. This paper is divided into TWO sections. Answer ALL the questions in Section A and any FOUR questions from Section B. The intended marks for questions or parts are given in [ ]. SECTION - A [40 MARKS] Attempt ALL questions from this section. Q.1- a. b. c. d. e. Q.2- a. b. c. d. e. Q.3- a. What do you understand by the term abstraction? Explain with an example. Why is Java a platform independent language? Name the primitive data type in Java that is : i. A 64 bit integer and is used when you need a range of values wider than those provided by int. ii. A single 16 bit Unicode character whose default value is \u0000 . What is the use of escape sequence '\n' and '\t ? Find the output of z if : int y = 14; int z = ++y * ( y + y ); Differentiate between equals( ) and compareTo( ) methods with appropriate example. Name the wrapper classes of char type and boolean type. Write different ways of writing comments in Java programs. Distinguish between Math.ceil( ) and Math. oor( ) with the help of examples. Rewrite using if-else : comm = (sale > l 5000) ? sale * 5/l 00:0; Write a Java expression for the following: a+b - cd a + b2 Write the output for the following statements: String strl = "Java is Fun"; String str2 = "amytime"; System.out.println(str2.replace('m',,n')); System.out.println(strl.concat(str2)); Give the output for the following statements: i. Math. oor(8.96); ii. Math.min(10, 23) + Math.pow(2, 3); f= b. c. [2] [2] [2] [2] [2] [2] [2] [2] [2] [2] [2] 2 [2] [2] This paper consists of 3 printed pages and 1 blank page. Turn Over
|