2/04/2015

BCS2233 OOP Chapter 2 Exercise


1. Match the following Statement / Name to its description. [8M]



No
Statements

Description
        I.             
x = 1;

Increment
      II.             
int x = 1;

Addition
    III.             
double radius;

Declaring Variables
    IV.             
final int SIZE = 3;

Declaring and Initializing
      V.             
+

Assignment Statements
    VI.             
*

Remainder
  VII.             
%

Multiplication
VIII.             
++

Constants


2. Show an evaluation tree for the following expressions: [6 marks]


                    I.            10 + 2 - 4


                  II.            3 + 3 * 3 % 2



                III.            3 + 2 / 5 +2 * 4

No comments:

Cara download Installer windows 10 dalam format ISO

1. Jika anda bercadang untuk download windows 10 melalui website rasmi windows - pilihan untuk download dalam format ISO tidak di berikan.  ...