What is the value in n after line 4 is run?
Use the following code to answer the next set of questions. Assume all needed files are included.
1.
```
string s, t;
```
2.
```
s = “Get up and go to school!”;
```
3.
```
t = “NO!”;
```
4.
```
int n = s.size();
```
5.
```
int w = s.at(3);
```
6.
```
int x = s.at(12);
```
7.
```
s += t;
```
8.
```
cout << s;
```
A. 23
B. 24
C. 3
D. -1
B. 24
You might also like to view...
The following statement __________
``` int *ptr = new int; ``` a. results in a compiler error b. assigns an integer less than 32767 to the variable ptr c. assigns an address to the variable ptr d. creates a new pointer named int e. None of these
Which of the following is not an application of cross-reference genera tion?
a. indexing a textbook b. listing all occurrences of each misspelled word in a document c. listing all uses of each object in a program d. transmitting large files over a phone line e. all of the above are applications of a cross-reference generator
The methodology used by web project teams is usually:
a. the SDLC b. a derivative of the SDLC similar to the one discussed in this chapter c. decided on as the project is built d. web sites do not require the use of a development methodology
A(n) _____ is a formal document that outlines an organization's hardware or software needs and requests vendors to develop a detailed plan of how they would meet those needs and at what cost.
a. systems request form b. ?in-stock request c. ?systems investigation request d. ?request for proposal