Answer the following statements true (T) or false (F)
1. Arrays can contain different types of data, structs cannot.
2. If a struct type car has been defined with members make and type, then
car.make = “Ford”;
is a possible correct assignment.
3. A variable of struct type can be passed to a function as an argument.
4. It is more efficient to pass a struct type variable as a const reference parameter than as a
value parameter.
5. After the following declaration and assignment:
char title[] = “Professor”;
the last character in title will be ‘r’;
1. False
2. False
3. True
4. True
5. False
You might also like to view...
Answer the following questions true (T) or false (F)
1. Redefining and overriding are exactly the same thing. 2. A class template can be derived from a non-template class.
Part of the reason Ruby was slow to gain popular acceptance outside of Japan was ____.
A. An initial lack of non-Japanese documentation B. An overly complex syntax C. Poor marketing and advertising D. An incompatibility with UNIX operating systems
Which of the following statements is not true about suggestions displayed by the Performance Analyzer tool?
A. They carry no risk at all. B. They are identified by a question mark. C. They have potential trade-offs that need to be considered. D. They can be fixed automatically by the tool.
A catch block is a method that can be called directly and takes an argument that is some type of exception.
Answer the following statement true (T) or false (F)