Practice mode / Java Which statement transfer execution to different parts of your code based on the value of an expression? A Option A: If B Option B: Switch C Option C: Nested-if D Option D: if-else-if Correct answer B. Switch Show answer Report a problem How we write and check questions
Question 01 / Java Which of these is returned by Greater Than, Less Than and Equal To (i.e Relational) operator? A Option A: Fload B Option B: Integer C Option C: Boolean D Option D: Double Correct answer C. Boolean Show answer Open question
Question 02 / Java Which of these is not a bitwise operator? A Option A: &' Operator B Option B: &=' Operator C Option C: |=' Operator D Option D: <=' Operator Correct answer D. <=' Operator Show answer Open question
Question 03 / Java Which of these operators is used to allocate memory to array variable in Java? A Option A: alloc B Option B: malloc C Option C: new malloc D Option D: new Correct answer D. new Show answer Open question
Question 04 / Java Which one is true about a constructor? A Option A: A constructor must have the same name as the class it is declared within. B Option B: A constructor is used to create objects. C Option C: A constructor may be declared private D Option D: All of the above Correct answer D. All of the above Show answer Open question
Discussion