in Education by
What is true about do statement? (a) do statement executes the code of a loop at least once (b) do statement does not get execute if condition is not matched in the first iteration (c) do statement checks the condition at the beginning of the loop (d) do statement executes the code more than once always I have been asked this question in examination. Question is from Control Statements topic in section Operators and Control Statements of Java Select the correct answer from above options Java questions and answers, Java questions pdf, Java question bank, Java questions and answers pdf, mcq on Java pdf, Java questions and solutions, Java mcq Test , Interview Java questions, Java Questions for Interview, Java MCQ (Multiple Choice Questions),Core Java Questions, Core Java MCQ,core java interview questions for experiencedcore java interview questions for 3 years experience,java programming questions,core java interview questions for freshers,java interview questions and answers for freshers, java programming questions and answers pdf, java interview questions for beginners

1 Answer

0 votes
by
 
Best answer
Right choice is (a) do statement executes the code of a loop at least once Easiest explanation: Do statement checks the condition at the end of the loop. Hence, code gets executed at least once.

Related questions

0 votes
    Which statement is true about java? (a) Platform independent programming language (b) Platform dependent programming ... and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    What is true about a break? (a) Break stops the execution of entire program (b) Break halts the ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    What is true about private constructor? (a) Private constructor ensures only one instance of a class exist at ... questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    What is true about Class.getInstance()? (a) Class.getInstance calls the constructor (b) Class.getInstance is ... questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    What is true about constructor? (a) It can contain return type (b) It can take any number of ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    What is true about protected constructor? (a) Protected constructor can be called directly (b) Protected ... questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of the following is true about Java system properties? (a) Java system properties are accessible by any ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    What is false about constructor? (a) Constructors cannot be synchronized in Java (b) Java does not provide ... questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of these is correct about passing an argument by call-by-value process? (a) Copy of argument ... questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of these is an incorrect Statement? (a) It is necessary to use new operator to initialize an ... questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    Which of the following is used with the switch statement? (a) Continue (b) Exit (c) break (d) ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of the following is not a decision making statement? (a) if (b) if-else (c) switch (d) ... java programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of the following is not a valid jump statement? (a) break (b) goto (c) continue (d) ... java programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    From where break statement causes an exit? (a) Only from innermost loop (b) Terminates a program (c ... questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of these statement is incorrect? (a) Every class must contain a main() method (b) Applets do ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
...