• 1. 
    Cell numbers of a dimensional array are also known as:

  • packets
  • blocks
  • subscripts
  • superscript
  • 2. 
    Which element is represented by a[10]?

  • 10th
  • 9th
  • 11th
  • None
  • 3. 
    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
  • 4. 
    Char m[] = {'R', 'A', 'J', 'E', 'N', 'D', 'R', 'A' };?

  • m.size of (a)
  • m.elements of (m)
  • m.length
  • m.length()
  • 5. 
    An array element can be accessed through:

  • dots
  • element number
  • index number
  • none
  • 6. 
    What is the size of the short datatype

  • 16 bits
  • 18 bits
  • 64 bits
  • 32 bits
  • None
  • 7. 
    Which of these are tokens

  • Keywords
  • Identifiers
  • String
  • All of the above
  • 8. 
    What this prints

  • 1010
  • 10 10
  • 10
  • 9 9
  • 9. 
    Arrange the following primitive datatypes in an ascending order of their size: char,long,double,int

  • char int long double
  • long,double,char,int
  • double char int long
  • 10. 
    Which of the following is the correct way to store 40 values in an array?

  • int a[ 40]=new int[ ];
  • int a[ ]=new int[40];
  • int a[0 - 40]
  • int a [40];
  • 11. 
    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
  • 12. 
    The elements of array[50] are numbered:

  • from 1 to 50
  • from 0 to 49
  • from 1 to 51
  • none
Report Question
warning
access_time
  Time