Trending ▼   ResFinder  

ICSE Prelims 2016 : Computer Applications (Shantiniketan Trust School, Bangalore)

3 pages, 0 questions, 0 questions with responses, 0 total responses,    0    0
Namratha Simha
Shantiniketan Trust School, Bangalore
+Fave Message
 Home > namratha_simha123 >   F Also featured on: School Page

Formatting page ...

SHANTINIKETAN TRUST SCHOOL #70 BILEKAHALLI, BANGALORE-76 III PREPARATORY EXAMINATION 2014-2015 SUB : COMPUTER APPLICATIONS Std. X ICSE 100 Total Marks : Answer 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 given for writing the answers. _____________________________________________________________________ This paper is divided into two Sections. Attempt all questions from Section A and any four question from Section B. The intended marks for questions or parts of questions are given in brackets(). _____________________________________________________________________ Section A (This section consists of 40 marks. All the questions are compulsory.) Q1. A) What do you mean by initial class? (1) B) Explain the difference between prefix and postfix operators with an example. (2) C)What will happen during object creation if the program does not provide a constructor? (2) Q2. A) Given int a, b,c; float d,e,f; Write 1 pure and 1 mixed expression. B) Write the appropriate Calendar class functions to do the following : i)Set the current month to 9. ii)Get the day of week of current date. C) Evaluate the following expressions, if int a=2,b=3 and c=9; i)a--(b++)*(--c) ii)a*(++b)%c (2) (2) Q3.A) What will be the output of the following code snippet ? double b = -15.6; double a=Math.rint(Math.abs(b)); System.out.println( a= +a); B) Compare StringBuffer and String. C) Write the java function to exit from a program. D) Difference between while and do-while loops. (2) (3) (2) (1) (2) Q4.A) Explain the difference between call by value and call by reference. B) Compare Bubble sort and Selection sort. C) Correct the errors and rewrite properly : class A { int check(int d) { return d+6; } void check(int f) { return f+1; } void calculate() { int tot=check(20)+check(15.5); } } (2) (2) (3) Q5.A) What is the difference between protected and friendly access specifiers. (2) B) Which are the 2 ways of invoking (calling) functions? (1) C) Explain with an example how a single-dimensional array is represented in memory?(2) Q6. A) Which unit (part) of the class gets automatically called when an object of a class is created? B) Find the errors and rewrite correctly. a. int x[10]={3,2,4,5,6,7}; b. char x={'j','n','k','p'}; C) What is the difference between length and length()? Q7. A) Write the syntax and explain how the compareTo() function works. B) In order to use dates and times you need to import the __________ package. C) Which is the package that needs to be imported to use the Scanner class? (1) (1) (2) (2) (2) (1) Section B (This section consists of 60 marks. There are 6 questions. Each question carries 15 marks. Attempt any 4 questions from this section.) (Each program should be written using Variable descriptions/Mnemonic codes such that the logic of the program is clearly depicted. Flowcharts and Algorithms are not required.) Q8. Define a class City and store the following city names in a single-dimensional array. Sort the array using Bubble sort and display the sorted array. City names : Delhi, Bangalore, Kolkata, Mangalore, Mumbai, Hyderabad. (15) Q9. Write a program to generate the following output : 1 22 333 4444 55555 (15) Q10. Write a program to accept a number from the user and display each digit in words. (Use switch-case) Ex. If the number is 295, the output should be Two Nine Five (15) Q11. Write a menu-driven program to do the following : Choice 1: Accept a number from the user and print the fibonacci series till that number. (Fibonacci series : 1 1 2 3 5 8 13 , each element is the sum of the previous two elements. Choice 2: Accept a number from the user and display the sum of it's digits. (15) Q12. Write a program to reverse each word in a string in their own positions. Also display the number of words in it. (15) Q13. The annual exam result of 20 students of a class is tabulated as follows: Roll No. SubjectA SubjectB SubjectC Write a program to: a.Accept the above data from the user and store into 4 different arrays. b.Display the total marks obtained by each student, along with the Roll No. c.Display the highest marks obtained in SubjectA and the roll number of the student who obtained it. (15) XXXXXXXXXXXXXXXXXXXXXXX

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

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

 

namratha_simha123 chat