Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6. Which of the following statements is true about loops. 12 Point a. post test loops are: do/while and for loops b. pre test loops

image text in transcribed
6. Which of the following statements is true about loops. 12 Point a. post test loops are: do/while and for loops b. pre test loops are: while and do/while loops c. pre test loops are while and for loops d. all loops are pretest loops e. all loops are post test loops 7. Which of the following statements should be used to print out your lunch money with 2 decimal places if lunchMoney holds a double value 12.3456789? [2 Point a. System.out.print("Lunch Money is + lunchMoney); b. System.out.printf("Lunch Money is 5% + lunchMoney); c. System.out.printf("Lunch Money is $%.2f", lunchMoney); d. System.out.println("Lunch Money is $" + lunchMoney); 8. Which of the following is a valid declaration of a constant to represent the number of days in January? 12 Point a. int NUMDAYSINJANUARY; b. final NUMDAYSINJANUARY = 31; c. final int NUMDAYSINJANUARY = 31; d. int final NUMDAYSINJANUARY = 31; 9. Which of the following expressions evaluates to true under either of the following conditions: 12 Point the number of students is between 1 and 28 (inclusively) the number of students exceeds 44. 1 =1 && numStudents 44) numStudents >= 1 && numStudents

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Marketing The New Profit Frontier

Authors: Ed Burnett

1st Edition

0964535629, 978-0964535626

More Books

Students also viewed these Databases questions

Question

4. What decision would you make and why?

Answered: 1 week ago

Question

3. Review the evidence. Do you believe the testimony presented?

Answered: 1 week ago

Question

1. What are the marketing implications of this situation?

Answered: 1 week ago