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

Computer Science & Information Technology

You might also like to view...

Answer the following statements true (T) or false (F)

1. When using graph coloring, nodes that share the same color cannot be assigned to the same register. 2. With simple, one cycle instructions, there is little or no need for microcode. 3. Almost all RISC instructions use simple register addressing. 4. RISC processors are more responsive to interrupts because interrupts are checked between rather elementary operations. 5. Unrolling can improve performance by increasing instruction parallelism by improving pipeline performance.

Computer Science & Information Technology

You can track one-time tasks in Outlook but not tasks that recur over a period of time.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology