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

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

Question 1: (15 Marks) - Multiple Choice Questions This part consists of 10 multiple choice questions. For each question, encircle the label A, H.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 clapan language d. none of the above 2. Which of the following primitive types could be promated to another type? a long b. double c. Int d. nonc of the above 3. The keyword is used at method declaration to specify that the method returns nothing. b, boolean c. static d, void 4. Any field declared with keyword a. constant C. const constant. b. static 5. Consider the following array declaration: What is the value of the expression: irt array = 17.2,12,9,3,10,11,8,3) System.out.println (array(array[2] -array[31]*2); b.3 0.5 d. 12 6. To check if two strings tri and atr2 have the same value we use the command b. 12 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 carder d. All the above 8. When evaluating an expression without parentheses, operands of the same precedency are evaluated a. randomly b.right to left cat the same time d. left to right TM105/M105 THE Final 2 of 7 2020-2021/Fall 9. The Java primitive type that holds numbers with the largest integer value is: a. byte b.int c. short d. long 10. An overloaded method is one that a. has the same name and arguments, but a different return type as another method. b. has a different name as another method, but the same arguments as another method. c. has the same name and arguments as another method defined in another program. d. None of the above

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!