quiz حل الأسئلة الجامعية manage_search الأرشيف

تم الحل ✓
categoryعلوم الحاسوب schoolبكالوريوس event_available2026-07-14

السؤال

Transcribed Image Text:

521 EAE O 70 28 29 3 31 O 32 O 33 34 3 11) In Java, you do not use the new operator when you use a(n): A) two-dimensional array C) initialization list B) array size declarator D) all of the above 12) A loop that repeats a specific number of times is known as a(n): A) sentinel loop C) counter-controlled loop B) conditional loop D) infinite loop 13) If you are using a block of statements, don't forget to enclose all of the statements in a set of A) Parentheses 14) A parameter variable's scope is: B) Double quotes A) the class to which the method belongs C) the main method C) Semicolons D) Braces B) the method in which the parameter is declared D) All of the above 15) This type of loop is ideal in situations where the exact number of iterations is known. A) do-while loop B) for loop C) while loop 16) Given the following code, what will be the value of finalAmount when it is displayed? public class Order } private int orderNum; private double orderAmount; private double orderDiscount; public Order (int orderNumber, double orderAmt, double orderDisc) orderNum orderNumber/ orderAmount orderAntz orderDiscount orderDisc public int getOrderAnount() return orderAmount/ public int getOrderDisc ()) return orderDisc; D) if statement public class CustomerOrder public static void main(String[] args) ( int ordNum1234; double ordAmount 580.00; double discount Per 1/ Order order; double finalAmount order.getOrderAmount () order.getOrderAmount () order.getOrderDisc(); System.out.printf("Final order amount 3, .2f\n", Version B

check_circle الجواب — حل مفصل خطوة بخطوة

hourglass_top