Trending ▼   ResFinder  

ICSE Prelims 2017 : Computer Applications (Stanes ICSE School, Coimbatore)

2 pages, 25 questions, 20 questions with responses, 29 total responses,    0    0
Nsk
stanes,  Coimbatore 
+Fave Message
 Home > nskstanes >   F Also featured on: School Page

Formatting page ...

COMPUTER APPLICATIONS (Theory) (Two hours) Answers to this Paper must be written on the paper provided separately. You will not be allowed to write during the first 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 for writing the answers. 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) What is the purpose of the new operator? (b) Write one similarity and one difference between public and protected . (c) What is the purpose of final ? (d) Differentiate between methods and contructors. (e) Define impure function. Give suitable example. Question - 2 (a) Differentiate between Binary Search and Linear Search. (b) Define Encapsulation . (c) Differentiate between rint and round . (d) Define Ternary operator with suitable example. (e) Define coercion . Question - 3 (a) Predict the output String s1 = "Competitive Swimming"; System.out.println(s1.replace("Swimm","Train")); (b) Write the output. int a=6,b=4,c=9,ans; ans=(a>b)?(a>c)?a:c:(b>c)?b:c; System.out.println(ans); (c) Write the output. int x[] = { 6, 4, 3, 2, 1, 5, 7, 8 }; for(int i=1; i<8; i=i+2) System.out.println(x[i]); (d) Define fall through . (e) Write the output. System.out.println( Computer Applications .lastIndexOf( Exam .chatAt(2),7)); (f) Analyse the following code and answer the questions. public void fun1() { Char a= A , b= a ; int c = a++ + b; System.out.println(c); } a. What will be the output? b. Write the main method which calls the above method. c. What will be the value of a after the execution of the method? (g) Convert the string stored in variable str to capital letters. (h) Write a valid statement for the following. a. Store 567.89 as a String. b. How to remove the white spaces in s1= CatSatOnTheWall ; c. Compare two Strings(Str1 and Str2) and store the answer in boolean ans; (i) What will be the value of ctr after the loop? int ctr=0; for(int i=1; i<=5; i++) for(int j=1; i<=5; i+=2) ++ctr; 1 SatishManatti

Formatting page ...

Top Contributors
to this ResPaper
(answers/comments)


Sandeep M

(7)

Mohammed Malik ...

(5)

Eshant Mahale

(4)

Downey

(3)

 

  Print intermediate debugging step

Show debugging info


 

 

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

 

nskstanes chat