Question Completion Status: QUESTION 1 Which of the following statements about a
ID: 3860998 • Letter: Q
Question
Question Completion Status: QUESTION 1 Which of the following statements about a do...while repetition statement is false? O a. The body of a do.. while loop may never be executed O a The body of a do. while loop may never be executed. 0 b. The body of a do while loop will be executed at least once. O C. The loop control variable can be counter-controlled or sentinel. 0 d. The loop-control variable is tested last and when true the body of a do while is executed. QUESTION 2 Which operator can be used to store a concatenated string? O b.* O c.++ QUESTION 3 There is a program called Dental. In this program there is a static variable called dentalCost that is a field or class variable and a method or local variable also called dentalcost in main0. How do you assign what is in the local to the field? O a dentalCost - dentalCost: Ob dental.dentalCost - dentalCost: O c dentalCost - Dental.dentalCost: O d. Dental.dentalcost-dentalCost:Explanation / Answer
1. b. the body of a do.. while loop will be execute at least once.
it is possible that the loop may not be executed even once if the loop condition evaluates to False the first time.
2. d+= will treat the original value of d as if it were null
4. a. & (boolean logical AND): The & and | operators always evaluate both operands.
5. True: Because only static data exist from the point of view of static methods
6. d. logical : logical operators enable you to form more complex conditions by combining simple conditions.
7. d. All the above
9. d.while
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.