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 SECTION B (60 Marks) Attempt any four questions from this Section. The answers in this Section should consist of the Programs in either Blue J environment or any program environment with Java as the base. Each program should be written using Variable descriptions/Mnemonic Codes such that the logic of the program is clearly depicted. Flow-Charts and Algorithms are not required. Question 4 Define a class called Student to check the student is eligible for taking admission in a special course with the following description: Instance variables: String name : to store name int Mathmark : to store Maths marks int Scimark : to store Science marks int CAmark : to store Computer Applications marks boolean eli : to store whether a student is eligible for a course Methods: Student() : parameterized constructor void Check() : to check the condition for eligible for course void Display() : to print whether eligible or not The eligibility conditions are Computer Applications marks should be more than 95% Maths marks should be more than 90% Question 5 Using the switch statement, write a menu driven program: To check and display whether a number input by the user is a composite number or not (A number is said to be composite, if it has one or more than one factors excluding I and the number itself). To find the smallest digit of an integer that is input: Sample input: 1234 Sample output: 1 For an incorrect choice, an appropriate error message should be displayed. Question 6 Write a program to input a sentence, print the longest word and the number of characters found in the longest word of the given sentence. Sample input: S= India is my country Sample output: country 7 Question 7 Design a class to overload the function Split() as follows: void Split(double x) which one double argument and display the integer part and real part in different lines Example Input: 12.56 Example Output: Integer part:12 Real part: 56 void Split(String s) with one string argument and divide the string equally if it has even number of characters, otherwise display the message Invalid Input . void Split(int n) with one integer argument and display all the digits in a new line Write a main method to create an object and call the above methods. Question 8 Write a program to input 10 city names in a single dimensional array. Arrange them in reverse alphabetical order and display the sorted array elements. Question 9 Write a menu driven program to find the sum of the following series depending on the user choice 1 or 2 1. S=1/4+1/8+1/12.........upto n terms 2. S=1/1!-2/2!+3/3!.......upto n terms where ! stands for factorial of the number and the factorial value of a number is the product of all integers from 1 to that number, e.g. 5! = 1 2 3 4 5. (use switch-case). 2 SatishManatti

Formatting page ...

Related ResPapers
ICSE Class X Prelims 2025 : Computer Applications (Ryan International School (RIS) ICSE, Kharghar, Navi Mumbai)
by shriya1010 
ICSE Class X Prelims 2025 : Computer Applications
by gogol1 
ICSE Class X Prelims 2025 : Computer Applications (St. Xavier's Institution (SXI), Ruiya)
by anikdutta 
ICSE Class X Prelims 2025 : Computer Applications (La Martiniere for Boys (LMB), Kolkata)
by debadrita68 

 

  Print intermediate debugging step

Show debugging info


 

 


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

 

nskstanes chat