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.
Geschreven voor
- Instelling
- CSIS 212
- Vak
- CSIS 212
Documentinformatie
- Geüpload op
- 4 mei 2024
- Aantal pagina's
- 24
- Geschreven in
- 2023/2024
- Type
- Tentamen (uitwerkingen)
- Bevat
- Vragen en antwoorden
Onderwerpen
-
csis 212
-
csis