Trending ▼   ResFinder  

ICSE Prelims 2015 : Computer Applications (Cambrian Hall, Dehradun)

3 pages, 0 questions, 0 questions with responses, 0 total responses,    0    0
Harvinder Singh
  
+Fave Message
 Home > saroj1952 >   F Also featured on: School Page

Formatting page ...

CAMBRIAN HALL , DEHRADUN Preliminary Examination, Dec - 2015 Class : X MM: 100 Computer Applications TIME : 2 hrs ---------------------------------------------------------------------------------------------------You will not be allowed to write for the first 15 minutes. This time is to be spent in reading the question paper. The time given at the head of the paper is the time allowed for writing the answers. This question paper is divided into two sections. You are to attempt all questions from section A and any four questions from section B. The marks for questions or sub parts are given in brackets []. ------------------------------------------------------------------------------------------------------------------------------SECTION A(40 marks) (Attempt all questions from this section) Question 1. [2x5] (a) Define the term inheritance. Explain its significance giving a suitable example. (b) A Java program uses a Compiler as well as Interpreter. Explain. (c) Write the escape sequences for : newline , horizontal tab, backspace , null (d) Write java statements to declare the variables using valid types and assign them the following literals : Java Language , 345.65 , G , false (e) What do you mean by explicit type conversion? How is it performed? Give suitable example. Question 2. [2x5] (a) If y=14 then find z= ( ++y * (y++ + 5 + ++y)) (b) Find output of the following : (i) int a =18; int b=12; boolean t = (a>20 && b<15) true : false System.out.println(t); (ii) int val = 1500; char c = (val + 550 < 1700) ? Z : # ; System.out.println(c); (c) Write equivalent java expression for the following mathematical expression : Z = x4 + x+log( y) k (d) What are syntax errors and how are these different from run time errors? Explain giving examples in both the cases. (e) Explain with the help of an example , the purpose of default in a switch statement. What happens if programmer forgets to write default in switch statement? Question 3. [2x10] (a) What do you mean by nesting of loop? Give an example to support your answer. (b) What will the following functions return when executed? (i) Math.max(-17, -19) (ii) Math.ceil(87.3) (iii) Math.abs(5-8) (iv) Math.rint(7.4) (c) What are logical operators? Write any two logical operators along with their names. (d) Arrange the following datatypes in ascending order of their size : (i) Char (ii) boolean (iii) double (iv) int (e) What are the default values? Write default initial values of boolean and double. (f) Explain using the appropriate examples the difference between pure and impure functions. (g) Explain two main differences between linear search and binary search. (h) What is default constructor? Explain with example. (i) State the difference between : (1) = and == (2) a and a

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

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

 

saroj1952 chat