Q.1
The icon of Java program is taken from ___.
  • a cup of coffee
  • a tornado that spits fire
  • a volcano under water
  • a candle with a flame
Q.2
What will be the output of the following Java code? class increment { public static void main(String args[]) { int g = System.out.print(++g * 8); } }
  • 25
  • 24
  • 32
  • 33
Q.3
In Java EE, EE stands for ___.
  • Entertainment Edition
  • Entrepreneur Edition
  • Enterprise Emperor
  • Enterprise Edition
Q.4
Which function is used to input int value in Java using Scanner class?
  • scanner_object . nextInteger( )
  • scanner_object . nextInt( )
  • scanner_object . nextint( )
  • scanner_object . NextInt( )
Q.5
Select TWO correct ways of including (importing) package in our program?
  • Option A & C
  • Option A & D
  • Option B & D
  • Option B & C
Q.6
Which is NOT the access specifier (visibility mode) in Java?
  • private
  • protected
  • friendly
  • publicly
Q.7
Java is Truly (Pure) _____________ Language?
  • OOP
  • POP
  • Object Based
  • All of the given
Q.8
Package is a collection of __________ .
  • Objects
  • Classes and Interfaces
  • Data
  • Variables and Constants
Q.9
Which function is used to input String value in Java using Scanner class?
  • scanner_object . nextLine( )
  • scanner_object . nextString( )
  • scanner_object . nextText( )
  • scanner_object . nextChar( )
Q.10
Which function is used to input float value in Java using Scanner class?
  • scanner_object . nextFloat( )
  • scanner_object . nextInt( )
  • scanner_object . nextfloat( )
  • scanner_object . NextFloat( )
Q.11
Java was developed in which year
  • 1992
  • 1993
  • 1994
  • 1995
Q.12
Which of the following classes belongs to util package in Java?
  • String, Math, Integer, Float
  • Date, Scanner, Vector
  • String, InputStreamReader, InputStreamWriter
  • Button, Menu, Scrollbar, Checkbox
Q.13
Which concept of Java is a way of converting real world objects in terms of class?
  • Polymorphism
  • Encapsulation
  • Abstraction
  • Inheritance
Q.14
Which of the following personality is called as father of Java Programming language –
  • Guido vom Russom
  • Larry Page
  • Bjarne Stroustrup
  • James Gosling
Q.15
Which of the following classes belongs to lang package in Java?
  • String, Math, Integer, Float
  • Date, Scanner, Vector
  • String, InputStreamReader, InputStreamWriter
  • Button, Menu, Scrollbar, Checkbox
Q.16
Earlier name of Java Programming language was –
  • Eclipse
  • D
  • Oak
  • Netbean
Q.17
Java Programming was designed by ______
  • Sun MicroSystems
  • Mozilla Corporation
  • Microsoft
  • Amazon Inc.
Q.18
JRE stands for
  • Java Run Environment
  • Java Run Execution
  • Java Runtime Environment
  • Java Ready Execution
Q.19
JDK stands for
  • Java Developer Kit
  • Java Development Kit
  • Java Design Kit
  • Java Debugging Kit
Q.20
What will be the output of the following Java program? class mainclass { public static void main(String args[]) { boolean var1 = true; boolean var2 = false; if (var System.out.println(var1); else System.out.println(var2); } }
  • 0
  • 1
  • true
  • false
0 h : 0 m : 1 s