Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Which of the following statements is true? 12 Point a. == means assignment b. = = means check equality c. = and == can

image text in transcribed
image text in transcribed
1. Which of the following statements is true? 12 Point a. == means assignment b. = = means check equality c. = and == can be used interchangeably in Java statements 2. A case for cookies holds 13 bags of cookies. In order to determine the number of cases required to deliver 26 bags of cookies, which operator would be used for the calculation? [2 Point] a./ b. c. % d. + 3. What does the word final mean in Java? [2 Point a. the end of the program b. a variable declaration c. a constant declaration d. a class declaration 4. Which of the following operators has the highest order of precedence? 12 Point a. + b. C. d. e. b and c f.a and d 5. Which of the following operators is the logical AND operator? [2 Point) b. && c. d.! II. SL Gall 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

Step: 3

blur-text-image

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

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions

Question

Describe Table Structures in RDMSs.

Answered: 1 week ago