1:   Which keyword is used to allocate memory to array variable in Java?
Options:
  1. provide
  2. new
  3. allocate
  4. add

Answer: Option 2

Explanation:

Sorry, No description available. Discuss this in Forums

How do you rate this queston?  Very Easy  Easy  Average  Above Average  Tough

2:   From where does the index of an array starts?
Options:
  1. -1
  2. 1
  3. 2
  4. None of the above.

Answer: Option 4

Explanation:

Index of an array starts from zero(0) to size-1(n-1). Discuss this in Forums

How do you rate this queston?  Very Easy  Easy  Average  Above Average  Tough

3:   How many kinds to variable are defined in Java?
Options:
  1. 5
  2. 3
  3. 4
  4. 2

Answer: Option 2

Explanation:

Java defines mainly three kinds of variables - Instance, Static and Local. Discuss this in Forums

How do you rate this queston?  Very Easy  Easy  Average  Above Average  Tough

4:   How many types of type casting are there in Java?
Options:
  1. 1
  2. 4
  3. 2
  4. 3

Answer: Option 3

Explanation:

In Java type casting is divided into two parts - Implicit and Explicit. Discuss this in Forums

How do you rate this queston?  Very Easy  Easy  Average  Above Average  Tough

5:   what is the range of int data type in Java?
Options:
  1. -128 to 127
  2. -32768 to 32767
  3. -2147483648 to 2147483647
  4. 9223372036854775808 - 9223372036854775807

Answer: Option 3

Explanation:

Integer occupies 4 bytes (32-bits) in memory. Its range is from -2147483648 to 2147483647. Discuss this in Forums

How do you rate this queston?  Very Easy  Easy  Average  Above Average  Tough




Download StudyAlways app from google play





To deliver your own personal maximum, you'll realise there are no shortcuts if you want to be a champion it is all about rolling your sleeves up and getting stuck in. Steve Backley, The Champion in all of Us:
-Rules for Success