Q.1
What is the size of the short datatype
  • 16 bits
  • 18 bits
  • 64 bits
  • 32 bits
  • None
Q.2
Which of the following is a data type that can store a number with a decimal point?
  • int
  • byte
  • short
  • double
Q.3
If a=48;find a= a++ + ++a;
  • 45
  • 50
  • 98
  • 46
Q.4
Write a java expression for the following code1/3ab + 1/2cd
  • 1/3*a*b + 1/2*c*d
  • 3.3*a*b + 1.5*c*d
  • 1/3*a*b+1/2*c*d
Q.5
What is the function equals() used for?
  • It is used to compare two strings
  • It is used to compare two strings together
Q.6
It is a type of java program that can be embedded in a web.
  • general purpose application
  • standalone applications
  • applet
  • webpage
Q.7
State True or False:This is a correct initialization of a variable.int myTemperature = 98.2;
  • True
  • False
Q.8
The smallest meaningful element of Java is called a/an
  • Identifier
  • Token
  • Variable
  • Keyword
Q.9
Java was developed in January _________ by a team of Sun Microsystems.
  • 1995
  • 1996
  • 1985
  • 1986
Q.10
______________ is known as the Father of the Java Language.
  • James Gosling
  • James
Q.11
State True or False:Java is case sensitive?
  • True
  • False
Q.12
State True or False: In Java single-line comments begins with ** and ends with //
  • True
  • False
Q.13
A variable that holds a whole number
  • String
  • float
  • int
  • char
Q.14
Int a[]=new int [5]; a[0]=a[1]=a[2]=a[3]=a[4]=System.out.println(a[2+1]);
  • 78
  • 15
  • 12
  • 19
Q.15
Int a[] ={2,4,6,8,10};a[0]=23;a[3]=a[1];int c= a[0]+a[1];System.out.println("Sum = "+c);
  • 6
  • 25
  • 24
  • 27
Q.16
Char m[] = {'R', 'A', 'J', 'E', 'N', 'D', 'R', 'A' };?
  • m.size of (a)
  • m.elements of (m)
  • m.length
  • m.length()
Q.17
The elements of array[are numbered:
  • from 1 to 50
  • from 0 to 49
  • from 1 to 51
  • none
Q.18
An array element can be accessed through:
  • dots
  • element number
  • index number
  • none
Q.19
A dimensional array is also known as:
  • subscripted variable
  • actual variable
  • compound variable
  • none
Q.20
Cell numbers of a dimensional array are also known as:
  • packets
  • blocks
  • subscripts
  • superscript
0 h : 0 m : 1 s