(a) What are the default values of the primitive data type int and float?

ICSE Class 10 Computer Applications PYQ · 2015 Paper · Section A

11 Mark · 2015 · Section A · 2015 Paper

(a) What are the default values of the primitive data type int and float?

Show SolutionHide Solution↓

Default value of int is 0 and float is 0.0f.

(b) Name any two OOP’s principles.

  1. Encapsulation
  2. Inheritance

(c) What are identifiers ?

Identifiers are symbolic names given to different parts of a program such as variables, methods, classes, objects, etc.

(d) Identify the literals listed below:

(i) 0.5 (ii) 'A' (iii) false (iv) "a"

  1. Real Literal
  2. Character Literal
  3. Boolean Literal
  4. String Literal

(e) Name the wrapper classes of char type and boolean type.

Wrapper class of char type is Character and boolean type is Boolean.

Next question →

Browse the free Computer Applications sample bank