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)
|