WorksheetsWEEK 10 - JAVA
Total questions: 10
Worksheet time: 3mins
It is similar to the conditional statement, but the only difference is this is checks for equality?
Strings
Switch Statement
Character
Enumerators
Using this, a switch or loop statement can be terminated without the complete block of code included inside running?
Case Keyword
Default Keyword
Integers
Break keyword
This keyword ought to be added at the end of the switch statement.
Case Keyword
Default Keyword
Integers
Break keyword
A primitive data type called a ________ represents one of just two possible values.
True or False
Booleans
Switch
If else
It specify a block of codes to be executed, if a specifies condition is true.
Else
If
Else if
Switch
It is used to specify many alternative block of code to be executed.
Else
If
Else if
Switch
This conditional statement used if the same condition is false.
Else
If
Else if
Switch
It is specify a new condition to test, if the first condition is false
Else
If
Else if
Switch
This data type only works with string, char, int and Enums.
Java Switch
Java Booleans
Java If…else
None of the above
It is a form of data that switch statements can use.
Int
Enum
String
Char
