Identify the compiler errors in and state what is wrong with the code.
The variable 3_for_me is illegal. The “Case” must be “case”.
Students might say that the switch is wrong because it doesn’t have a default statement.
```
int 3_for_me = 3, quick_4
switch(3_for_me)
{
Case 7: cout << “hello”; break;
case 8: cout << “goodbye”; break;
}
```
You might also like to view...
To dereference a structure pointer and simultaneously access a member of the structure, the appropriate operator to use is
A) the ampersand, &. B) an asterisk, *. C) the structure pointer operator, ->. D) the dereference operator, <-. E) None of the above
Discuss the following approaches to persistence:
(a) Container-Managed Persistence (CMP). (b) Bean-Managed Persistence. (c) JDBC. (d) SQLJ. (e) JDO.
Answer the following statements true (T) or false (F)
1. In an MS-DOS COPY command, if no file name is specified for the destination file, the source file name is used. 2. Under MS-DOS, a programmer must specify a file’s size when the file is first created. 3. When wild card characters are used in an MS-DOS file name, a question mark (?) represents any single character. 4. When wild card characters are used in an MS-DOS file name, an asterisk (*) represents multiple characters. 5. A batch file is a file of pre-coded MS-DOS commands.
How often are restore points created?
A) every day B) once a week C) once a month D) only when the user requests it