Question: Question 1: (15 Marks) - Multiple Choice Questions This part consists of 10 multiple choice questions. For each question, encircle the label A, B, C,

 Question 1: (15 Marks) - Multiple Choice Questions This part consists

Question 1: (15 Marks) - Multiple Choice Questions This part consists of 10 multiple choice questions. For each question, encircle the label A, B, C, or Das your most appropriate answer. Each question carries 1.5 points. 1. Which of the following is a high-level computer programming language? a. Machine language b. Assembly language c. Japan language d. none of the above 2. Which of the following primitive types could be promoted to another type? a. long b. double c.int d. none of the above 3. The keyword a. int C. static is used at method declaration to specify that the method returns nothing b. boolean d. void 4. Any field declared with keyword a. constant C. const is constant. b. static d. final 5. Consider the following array declaration: What is the value of the expression: int[] array = 17,2,12,9,3,10,11,8,3); System.out.println(array(array[2]-array[3]]*2); b. 3 d. 12 a. 18 c. 5 6. To check if two strings stri and str2 have the same value we use the command a. si=s2 b. si==s2 C. stri.equals(str2) d. None of the above 7. The parameter list in the method header and the method call arguments must agree in: a. number b. type corder d. All the above 8. When evaluating an expression without parentheses, operands of the same precedency are evaluated a. randomly b. right to left d. left to right C. at the same time

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!