Trending ▼   ResFinder  

ICSE 2012 solved : Computer Applications

35 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 2012 Q1. (a) Give one example each of a primitive data type and a composite data type. [2 marks] A1. (a) class Car { int gears, maxSpeed; // int primitive data type String model, manufacturer; } Car c = new Car(); // composite data type In the example above, gears is a primitive data type (int for integer), and c is a composite data type of class Car. Basically, int is a primitive data type, and Car is a composite data type. Q1. (b) Give one point of difference between unary and binary operators. [2 marks] A1. (b) The unary operators operate on a single operand (e.g. x++) whereas the binary operators operate on two operands (e.g. x*y). Here, ++ is a unary operator and * is a binary operator. Q1. (c) Differentiate between call by value or pass by value and call by reference or pass by reference. [2 marks] A1. (c) CALL BY VALUE CALL BY REFERENCE

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

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