Syvum Home Page

Home > Quiz Games > Java Programming >

Java Programming : Basic Operations : Multiple Choice


Answer the following questions about basic operations in the Java programming language.

Formats Info Page Worksheet / Test Paper Quiz Review
Multiple choice

Your Performance  

1.

15 & 29 = ?

  44

  14

  13

  12

  Half-n-half Clue
 

2.

The type long can be used to store values in the following range:

  -263 to 263 - 1

  -231 to 231 - 1

  -264 to 264

  -232 to 232 - 1

  Half-n-half Clue
 

3.

Which of the following is not a hexadecimal number?
(A) 999
(B) (hex)23
(C) 0x556
(D) 0x1F2

  (C)

  (A)

  (A) & (B)

  (A), (B) & (C)

  Half-n-half Clue
 

4.

If not assigned a value, a variable of type char has the following default value:

  '\uffff'

  '\u0001'

  " " (space)

  '\u0000'

  Half-n-half Clue
 

5.

What will be the result of the expression
a % b
when a and b are of type int and their values are a = -17 and b = -6?

  -23

  None of these

  5

  -5

  Half-n-half Clue
 

6.

Select the invalid assignment statements from the following:
(A) float x = 238.88;
(B) double y = 0x443;

  (A) & (B)

  (A) & (C)

  (B) & (D)

  (B)

  Half-n-half Clue
 

7.

27 | 8 = ?

  27

  8

  19

  35

  Half-n-half Clue
 

FREE PREVIEW: Last 10 Questions not a part of the free preview. Get Premium Membership to view all questions.


 
12 more pages in Java Programming


Contact Info © 1999-2018 Syvum Technologies Inc. Privacy Policy Disclaimer and Copyright
Previous
-
Next
-