Quiz
Test your knowledge of variables, expressions, and the rest of the information in this hour by answering the following questions.
Questions
1: | What do you call a group of statements that is contained with an opening bracket and a closing bracket?
|
2: | A boolean variable is used to store true or false values.
|
3: | What characters cannot be used to start a variable name?
|
Answers
A1: | a. The grouped statements are called a block statement, or a block. |
A2: | a. true and false are the only answers a boolean variable can store. |
A3: | b. Variables can start with a letter, a dollar sign ($), or an underscore character (_). If you started ... |
Get SAMS Teach Yourself Programming with Java™ in 24 Hours, FOURTH EDITION now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.