1. A _______ is a location in memory (storage area) to hold data.
2. To indicate the storage area, each variable should be given a unique name. This is also called an __________in Java.
3. Which of the following depicts the correct way to declare variables in Java?
4. In this example, maxSpeed is a variable of ____________, and is assigned value 80. Meaning, maxSpeed variable can store integer values.
5. What does the following 16 bit pattern represent?
6. Is it necessary for a variable to always have a data type?
7. One what line is a variable being declared in this snippet of code?
8. When we use data we do not have to invent our own scheme to represent it with bits. The list below shows the ___________ data types.
9. Upper and lower case characters are important in these names (referring to the list above). So "byte" is the name of a data type, but "BYTE" is not
10. All data in Java falls into one of two categories: primitive data and _______.
11. Which one of the items on the list is incorrect?
12. Integer types have no_______ part; floating point types have a _________ part.
13. All values represented using the short data type use 64 bits. All values represented using the long data type use 16 bits.
14. Would data type short be an appropriate choice for dealing with the number 1,723,774 in your computer program?
15. When you write a program you do not have to know how to represent a number in bits. You can type the number just as you would on a typewriter. This is called a ______.
16. All the below examples are:
17. The following is an integer literal. 197.01
18. 81E-06 is an example of a _________________. The big E means "times 10 to the power of"
19. What is wrong with this number, considered to be of float type? 1230.00089F
20. Computer programs frequently work with character data. The primitive data type for characters in Java is named _____.
21. Is the following statement, with example, true or false?
22. This is a String, which is not primitive data. It is an object. Strings are surrounded by double quote marks ", not by apostrophes.
23. Another of the primitive data types is the type_______. It is used to represent a single true/false value. A __________value can have only one of two values.
24. What is printed to the screen?
25. Which of the following are NOT valid rules for identifiers?
26. A reserved word is a word which has a _________________ in Java. For example int, double, true, and import are reserved words
27. What is wrong with the last item on the list (if anything)?
28. When you run the following program, you get the output 'Q' because:
29. Java also provides support for character strings via java.lang.String class. Here's how you can create a String ______in Java.
30. Fill in the blanks for the fourth type of variable in Java.