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. Which of the following statements is false?Correct: Variables of type boolean are initialized to true.
Escuela, estudio y materia
- Institución
- CSIS 212
- Grado
- CSIS 212
Información del documento
- Subido en
- 4 de mayo de 2024
- Número de páginas
- 24
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas
Temas
-
csis 212
-
csis