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

1. A local class and a nested class are the same thing.
2. If v is a vector and i is an int variable, then in the following the value of i
can be any nonnegative int value:
```
v[i] = i;
```
3. It is valid to initialize member variables in a class on the same line in which the
variable is declared. For example, the following sets xx to 1000:
```
class A
{
public:
A(){}
private:
int xx = 1000;
```
4. If we use an out of range index with a vector, there be an error message from the compiler.


1. False
2. False
3. True.
4. False.

Computer Science & Information Technology

You might also like to view...

Which of the following is NOT true about synchronization?

A) Backup copies of your files need to be manually created. B) The synchronization process is managed by an application that can be installed on your mobile device or PC. C) The files stored in the cloud service can generally be accessed via a website as well. D) If a device crashes or is damaged, the files stored in the cloud service will be safe.

Computer Science & Information Technology

The Turing machine must execute instructions in the order that the instructions are numbered.

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

Computer Science & Information Technology

Which of the following technologies uses software to emulate multiple hardware environments that can utilize multiple operating systems?

A. hypervisor B. containers C. thin provisioning D. virtualization

Computer Science & Information Technology

?Identify an expression that defines a date object.

A. ?new Date("month, day, year hrs:mins:secs"); B. ?new Date("month day, year" "hrs:mins:secs"); C. ?new Date("month day, year hrs:mins:secs"); D. ?new Date("month, day, year" hrs:mins:secs);

Computer Science & Information Technology