A.breakB.returnC.exitD.continue Related Posts:Find the least number which when divided by 35 leaves…In a linear block code, the _______ of any two valid code…Consider the following statements about the…Consider the following statements: 1. Ocean currents are the…Consider the following statements: Consideration Read More …
Tag: Java Programming MCQs
What is the value of the expression 2 & 3 ?
A.2B.3C.4D.5 Related Posts:The expression builder is an access tool that controls an…What is the value of the expression 8A search value in SQL query can be a specific value or it…An expression A.B in C++ means ____Which function is used Read More …
What is the value of the expression 8 << 2 ?
A.2B.32C.1 6 D.5 Related Posts:The expression builder is an access tool that controls an…What is the value of the expression 2 & 3 ?A search value in SQL query can be a specific value or it…An expression A.B in C++ Read More …
The keyword used to create a constant variable
A.finalB.staticC.constD.None of Options are Correct Related Posts:The frequency of the modulated signal is constant for the…A pointer pointing to a memory location of the variable even…Which of these operators is used to allocate memory to array…In a certain store, the Read More …
What is stored in the object obj in following lines of code? box obj;
A.Memory address of allocated memory of object.B.NULLC.Any arbitrary pointerD.Garbage Related Posts:The dimensions of an open box are 52, 40 and 29 cms. Its…In a linear block code, the _______ of any two valid code…A wooden box of dimensions 8m x Read More …
Which of these are selection statements in Java?
A.ifB.forC.continueD.None of Options are Correct Related Posts:Which of these selection statements test only for equality?Consider the following statements about the…Consider the following statements: 1. Ocean currents are the…Who has defined Social Selection Saying “Social Selection as…Consider the following statements: Consideration Read More …
Which of these selection statements test only for equality?
A.ifB.switchC.Both a & bD.None of Options are Correct Related Posts:Consider the following statements: Consideration is 1. A…Which of these are selection statements in Java?Consider the following statements about the…Consider the following statements: 1. Ocean currents are the…Who has defined Social Read More …
Which of these is an incorrect array declaration?
A.int arr[] = new int[5];B.int [] arr = new int[5];C. int arr[]; arr = new int[5];D.int arr[] = int [5] new Related Posts:Which of these operators is used to allocate memory to array…__ function is used to allocate space for Read More …
What is the error in this code? byte b = 50; b = b * 50;
A.b can not store the result 2500, limited by its range.B.* operator has converted b * 50 into int, which can not be converted to byte without casting.C.b can not contain value 50.D.No error in this code Related Posts:Byte stuffing Read More …
Which of these is necessary condition for automatic type conversion in Java?
A.The destination type is smaller than source type.B.The destination type is larger than source type.C.The destination type can be larger or smaller than source type.D.None of Options are Correct Related Posts:Which of these coding types is used for data type Read More …