What happens at line 2?

The next set of questions refer to the following code. Assume all includes are
correct. The line numbers are for reference only.


1.
```
string s = “math is fun!”;
```

2.
```
int f = s.at(0)
```

3.
```
int t = s.size();
```

4.
```
int n = s.at(5);
```

5.
```
int y = s.at(s.5);
```

A. The value of f is m.
B. The value of f is [] (empty set).
C. The program will not compile.
D. The program crashes when it runs.


A. The value of f is m.

Computer Science & Information Technology

You might also like to view...

Multi-column layouts are created with CSS3 by setting either the number of columns or the width of each column.

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

Computer Science & Information Technology

Repeated table heading rows are only seen in Print Layout view

Indicate whether the statement is true or false

Computer Science & Information Technology

To edit a data source during the merge process, click:

a. Address Block b. Edit Data Source c. Edit Recipient List

Computer Science & Information Technology

The method "equals (aString)" returns a(n) ____ value.

A. int B. boolean C. char D. object

Computer Science & Information Technology