Trending ▼   ResFinder  

ICSE Prelims 2 2017 : Computer Applications (Smt. Sulochanadevi Singhania School, Thane)

3 pages, 27 questions, 27 questions with responses, 71 total responses,    0    0
Tanish Gupta
Hiranandani Foundation School (HFS), Thane
XI-XII
+Fave Message
 Home > hurricane_tanish > PRELIM 2 >   F Also featured on: School Page

Formatting page ...

SMT. SULOCHANADEVI SINGHANIA SCHOOL, THANE Sub. Exam Date Marks Time Total No. of Printed sides 10 Computer Prelim II 08.02.17 100 2 2 Application hours 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. Class Question 1 [10] (a) Why a class is called a factory of objects? (b) What is the purpose of the new operator? (c) Mention any two components required for class declaration. (d) Write a statement in Java to assign the value of pie (i.e. 3.142) to a variable with requisite data type. (e) Explain any two types of access specifiers. Question 2 [10] (a) Write the function prototype for the function isValid ( ) that takes a character as its argument and returns true or false. (b) State any two special properties of the constructor. (c) Differentiate between formal and actual parameter. (d) Define impure function. Give example of an impure library function in Java. (e) State the appropriate keyword for the following. (i) Command which enables the use of a particular package in your program. (ii) The command that refers to the property of the current object, in case identifiers of the class and the function arguments are identical. Question 3 [20] (a) When there are multiple definitions with the same function name, what makes them different from each other? (b) What is mixed expression? Will explicit type conversion be required for mixed expression? (c) Give output of the following statement. System.out.println(" \" "+true+" \" "+" \\ "+" \' "+false+" \' "); (d) Give output of the following statements. do System.out.println("hard work"); while(false); while(true) System.out.println("success"); (e) Give output of the following statements. int i, j, k; for(i=1, j=10, k=7; i<=7 ; i+=2, j--, k*=1) System.out.print( i + "\t" + j + "\t" + k +"\n"); (f) Explain local and global scope of a variable, with example. (g) Differentiate between isUpperCase ( ) and toUpperCase ( ) methods. 1

Formatting page ...

Top Contributors
to this ResPaper
(answers/comments)


Diksha Thakur

(20)

Mohammed Malik ...

(15)

Sai S Kalyan

(12)

Shubham Ojha

(11)

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

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

 

hurricane_tanish chat