Trending ▼   ResFinder  

X ICSE First Preparatory

4 pages, 0 questions, 0 questions with responses, 0 total responses,    0    0
sarakesavan
Madras University (MU), Chennai
M.C.A Computer Applications
+Fave Message
 Home > sarakesavan >   F Also featured on: School Page

Formatting page ...

LAWRENCE HIGH SCHOOL (ICSE) FIRST PREPARATORY EXAMINATION 2014-15 Subject: Computer Application Class: X Marks:100 Hrs Time: 2 Answer to this paper must be written on the paper provided separately. 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 (a) Sate the Java concept that is implemented through: (i) a superclass and a subclass. (ii) the act of representing essential features without including background details. (b) What are the types of casting shown by the following examples? (i) double s = 15.2; int y = (int)s; (ii) int x = 12; long y = x; (c) Name any two wrapper classes. (d) Name the Java keyword that: (i) indicates that a method has no return type (ii) stores the address of the currently-calling object. (e) What is an exception? Give an example for the each type of exception. [2] [2] [2] [2] [2] Question 2 (a) Differentiate between call by value or pass by value and call by reference or pass by reference. (b) Name the type of error (syntax, runtime or logical error) in each case given below: (i) Division by a variable that contains a value of zero. (ii) Multiplication operator used when the operation should be division. (iii) Missing semicolon. (c) Difference between public and private modifiers for members of a class. (d) What is the advantage of having Unicode character set in java? (e) Write the result of: x y = x / ( y * Math.pow(x , 2 ) ) * 2 when x = 10, y = 2 [2] [3] [2] [1] [2] Question 3 (a) Write the java statements to perform the following tasks on strings: (i) Concatenate City with Address and store as string PostalAddress. (ii) Print the position of first occurrence of the letter B in string City. (iii) Print Hello Boss if a given name starts with the letter Z else if the name s last letter is a then print Good Day Boss . Make sure that the first and last letters are not spaces. (b) Write the two ways in which you can assign a text string TOGETHER to a [4] [2]

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

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

 

sarakesavan chat