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...

Wireless cards are available in only one form factor: mini-PCIe

Indicate whether the statement is true or false

Computer Science & Information Technology

List all zip codes that are not assigned to students. Write two versions: using a NOT EXISTS and using an OUTER JOIN.

What will be an ideal response?

Computer Science & Information Technology