JAVA Online Test


Java Quiz


1. What is the size of a Char?
  • 4 bits
  • 7 bits
  • 8 bits
  • 16 bits

2. Following code will result in: int a = 3.5;
  • Compilation error - correct answer
  • Runtime error
  • a being 3.5
  • a being 3

3. A 'for' loop in Java looks like this....
  • for(int i=0;i<5;i++){}
  • for i=1 to 5 do
  • repeat...until(i=5)
  • FOR I:=5 DOWNTO 1 DO

4. Which platform can not run Java.
  • Linux
  • Windows NT
  • Commodore 64
  • Apple Mac

5. 'JMF' stands for:
  • A pop group of the 90's who had the hit "Unbelievable"
  • Java Media Framework
  • Java Messaging Framework
  • Java Meditation Forum


Score =

Correct answers: