Trending ▼   ResFinder  

ICSE 2013 solved : Computer Applications

30 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 2013 Q1. (a) What is meant by precedence of operators? [2 marks] A1. (a) Precedence of operators defines the order in which the operators within an expression are executed. The order of evaluation can be modified with the help of parenthesis ( and ). For example, in the expression x = a+b*c the RHS evaluates using a+(b*c) since the * operator has a higher precedence as compared to the + operator. As another example, in the equaion x = a+b > c ? a : b, the + operator has higher precedence over the ternary operator ?: and hence the RHS evaluates to (a+b) > c ? a : b. Q1. (b) What is a literal? [2 marks] A1. (b) A literal is a notation for representing a fixed value in source code. It is a value that is directly represented in code. For example, in the expression int x = 4; , the 4 is a literal. As another example, in the example: String s = Hello ; the Hello is a literal. Q1. (c) State the Java concept that is implemented through: i) A superclass and a subclass ii) the act of representing essential features without including background details [2 marks] A1. (c) i) Inheritance ii) Abstraction Q1. (d) Give a difference between constructor and a method. [2 marks]

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