Java Basics Quiz4 by Sarah | Quizes Welcome to Java Quiz Series. This quiz consists of 10 multiple-choice questions. Keep the following in mind: Multiple Attempts - You will have multiple attempts for this quiz. Timing - You will need to complete each of your attempts in one sitting, as you are allotted 7 minutes to complete each attempt. Answers - You may review your answer-choices and compare them to the correct answers after your final attempt. To start, click the "Next" button. When finished, click the "Submit Quiz" button 1. What is the difference While and Do-While loop?While loop is executed only when given condition is true. Whereas, do-while loop is executed for first time irrespective of the condition.While loop will execute even after condition fails, where as Do-While will terminate. 1 out of 10 2. How many bytes are used to represent the primitive data type "int" in Java.481The number of bytes to represent an int is compiler dependent. 2 out of 10 3. Name the exception thrown by the array when you try to insert extra recordArrayIndexOverflowExceptionArrayIndexOutOfBoundsExceptionArrayIndexOutFlowException 3 out of 10 4. What is the output of the below program0VariableInitializationErrornull 4 out of 10 5. The initial value of a local variable of type String is?0nullspace1 5 out of 10 6. Which is the correct declaration of an Array?int[ ] a;int b[ ];int[ ] c; 6 out of 10 7. Which is the invalid declarations of an Array?int a[ ], b[ ];int c[ ], [ ] d;int[ ] e, [ ] f; 7 out of 10 8. What is the output of the below program?-1NegativeArraySizeExceptionInvalidArrayDeclaration 8 out of 10 9. What are the valid declarations of 2D Array?int a[ ][ ];int[ ][ ] e;[ ][ ] int g;[ ] int[ ] S; 9 out of 10 10. Can you create One dimensional array and two dimensional array without new operator?YesNo 10 out of 10 Time is Up! 3 Comments Sowjanya on January 21, 2021 at 9:22 am Done Reply Mamatha Bojja on January 21, 2021 at 9:22 am Good to learn java Reply Rajasekhar on February 12, 2021 at 5:29 pm Thank you Reply Submit a Comment Cancel replyYour email address will not be published. Required fields are marked *Comment Name * Email * Website Save my name, email, and website in this browser for the next time I comment.