1) 3Variablename is valid identifier? a) Yes b) No 2) Find a reserve word a) Final b) final 3) Find a reserve word a) true b) True 4) Example of a char data type a) "Irfan" b) 5 c) true d) 'z' 5) Example of double data type a) 5.5 b) 5 c) '5' d) "5" 6) Write a Java statement to declare and store character * to variable Unknown a) String Unknown="*"; b) char Unknown='*'; c) 8 7) 19 % 5 a) 3 b) 4 c) 0 8) 5 + 7 * 2 a) 19 b) 24 9) Area=length x width (rewrite in Java expression) a) Area=length x width; b) Area=length x width c) Area=length * width; 10) 3 x 4 equal to 6 x 2 (rewrite in Java expression) a) 3 * 4 = 6 * 2 ; b) 3 x 4 ==6 x 2 ; c) 3 * 4 == 6 * 2 ;

3.2 Data Type, Operator and Expression

Leaderboard

Visual style

Options

Switch template

Continue editing: ?