Answer the following statements true (T) or false (F)
1. The following statements both declare the variable num to be an integer.
int num;
INT num;
2. The following is a legal C++ statement to define and initialize a variable. char first Name = "Jack";
3. If a variable is defined as
int sum;
it may be written in the program code as sum or Sum, but not SUM.
4. The following two statements both assign the value 5 to the variable dept.
5 = dept;
dept = 5;
1. FALSE
2. FALSE
3. FALSE
4. FALSE
You might also like to view...
List five of the ten factors that must be considered when choosing output technology.
What will be an ideal response?
Overriding a method differs from overloading a method because:
a. Overloaded methods have the same signature. b. Overridden methods have the same signature. c. Both of the above. d. Neither of the above.