Trending ▼   ResFinder  

ICSE 2008 solved : Computer Applications

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

Formatting page ...

ICSE 2008 Q1. (a) Mention any two attributes required for class declaration. [2 marks] A1. (a) public and abstract Q1. (b) State the difference between token and identifier. [2 marks] A1. (b) A token is the smallest element of a program that is meaningful to the compiler. A token is the basic building block which is put together to construct a program. A token can be: i) A reserved word or keyword e.g. while ii) An identifier e.g. sum (variable name) iii) A separator or a delimiter e.g. , { ( etc. iv) An operator e.g. + v) A literal e.g. 25 vi) Comments are also treated as tokens to be ignored An identifier is a name given to a variable, class, etc. e.g. in int sum = 0; the variable sum is an identifier. Q1. (c) Explain instance variable. Give an example. [2 marks] A1. (c) An instance variable is a data member of a class. Each object of a class has its own value of the instance variables of that class. For example, consider the class Car as defined below: class Car

Formatting page ...

Top Contributors
to this ResPaper
(answers/comments)


Rockey Ron

(2)

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