Trending ▼   ResFinder  

ICSE 2005 solved: Computer Applications

29 pages, 9 questions, 0 questions with responses, 0 total responses,    0    0
Manasa Preethi
Sikkim manipal university, Bangalore
Master of Science Information Technology
+Fave Message
 Home > manumansi >

Formatting page ...

ICSE 2005 Q1. (a) Name any two OOP principles. [2 marks] A1. (a) Encapsulation, Inheritance, Abstraction, Polymorphism. Q1. (b) Mention two different styles of expressing a comment in a program. [2 marks] A1. (b) Two styles of comments are: i) Single line comment using //, for example: // This is a single-line comment ii) Multi line comment using /* and */, for example: /* This is a multi-line comment that spans across 4 lines. */ Q1. (c) Which element is num[9] of the array num? [2 marks] A1. (c) The 10th element, since the array index numbering starts from 0. Q1. (d) Differentiate between operator and expression. [2 marks] A1. (d) An operator is a symbol that acts on one, two, or three operands to form an expression that has a value. An expression is a combination of operators and operands. For example, x + y is an expression which has the binary + operator that combines with two operands x and y and adds their values to give a resultant value. Q1. (e) If m=5 and n=2 output the values of m and n after execution in (i) and (ii) :-

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

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


 

 

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

 

manumansi chat