quize for part 1
  • Question 1: Which of the following are not reserved words in Java? [ Check all correct answers]
    1. transient
    2. include
    3. goto
    4. union

  • Question 2: What is the range of values that can be stored in a byte primitive variable?
    1. 0 to 255
    2. -127 to 128
    3. -128 to 127

  • Question 3: How many String objects are created in the following code?
    1. String A,B,C;
    2. A = "1234";
    3. B = A;
    4. C = A + B;

    1. 1
    2. 2
    3. 3
    4. 4