Trending ▼   ResFinder  

ICSE Class X Board Exam 2016 : Computer Applications (Solved Paper)

11 pages, 42 questions, 2 questions with responses, 2 total responses,    1    0
Sumanta Pan
Oxford High School, Howrah
+Fave Message
 Home > sumanta4evr >   F Also featured on: School Page

Formatting page ...

ICSE Question Paper 2016 (Solved) Computer Applications Class X SECTION A (40 Marks) Answer all questions from this Section Question 1. (a) Define Encapsulation. [2] Ans. Encapsulation is the process of bundling state (instance variables) and behaviour (methods) is a single unit (class). (b) What are keywords? Give an example. [2] Ans. Keywords are reserved words which convey special meaning to the compiler. They cannot be used as identifiers. Ex: class, void (c) Name any two library packages. [2] Ans. java.util, java.io (d) Name the type of error (syntax, runtime or logical error) in each case given below: [2] (i) Math.sqrt (36-45) (ii) int a;b;c; Ans. (i) Runtime error Math.sqrt(36-45) = Math.sqrt(-9) which cannot be computed as square root of a negative number is not defined. Therefor, a runtime error will be thrown. (ii) Syntax error Multiple variables can be defined in one of the following ways int a, b, c; int a; int b; int c; (e) If int x[] = { 4, 3, 7, 8, 9, 10 }; what are the values of p and q? [2] (i) p = x.length (ii) q = x[2] + x[5] * x[1] Ans. (i) 6 (ii) q = x[2] + x[5] * x[1] = 7 + 10 * 3 = 7 * 30 = 37 Question 2. (a) State the difference between == operator and equals() method. [2] Ans. == compares if the two objects being compared refer to the instance while equals() method which can be overridden by classes generally compares if the contents of the objects are equals. (b) What are the types of casting shown by the following examples: [2] (i) char c = (char)120; (ii) int x = t ; Ans. (i) Explicit casting (ii) Implicit casting (c) Differentiate between formal parameter and actual parameter. [2] Ans. Format parameters are the parameters defined in the signature of a method. Actual

Formatting page ...

Top Contributors
to this ResPaper
(answers/comments)


Sumanta Pan

(2)

ResPaper Admins

(1)

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

Additional Info : ICSE Class X Board Exam 2016 : Computer Applications (with Solutions)
Tags : ICSE Class X Board Exam 2016 : Computer Applications (with Answers),  

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

 

sumanta4evr chat