CSIS 212 Key Compulsory Exam Questions and CORRECT Answers
Which case of the following would warrant using the boolean logical inclusive OR ( |) rather than the conditional OR ( ||)?Correct: Testing if at least one of two conditions is true when the right operand has a required side effect. Consider array items, which contains the values 0, 2, 4, 6 and 8. If method changeArray is called with the method call changeArray(items, items[2]), what values are stored in items after the method has finished executing? passedArray[value]= 12; value = 5;Correct: 0, 2, 4, 6, 12 Which of the following primitive types is never promoted to another primitive type?Correct: Both double and boolean.
Written for
- Institution
- CSIS 212
- Course
- CSIS 212
Document information
- Uploaded on
- May 7, 2024
- Number of pages
- 24
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
csis 212
-
csis