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.
École, étude et sujet
- Établissement
- CSIS 212
- Cours
- CSIS 212
Infos sur le Document
- Publié le
- 7 mai 2024
- Nombre de pages
- 24
- Écrit en
- 2023/2024
- Type
- Examen
- Contient
- Questions et réponses
Sujets
-
csis 212
-
csis