What does the code in line 1 do?

```
1 string sentence = “C++ is my favorite programming language.”.;
2 string word; = “favorite”

3 int sentSize = sentence.size();
4 int wordSize = word.size();

5 int wordInSentence = sentence.find(word);
```

A. Creates a string called sentence.
B. Initializes a string called sentence.
C. Both A & B
D. Neither. Strings aren’t initialized that way.


C

Computer Science & Information Technology

You might also like to view...

An app consists of databases designed to store information.

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

Computer Science & Information Technology

Cloud computing is the concept of storing, accessing, and editing files that are stored in another physical location

Indicate whether the statement is true or false

Computer Science & Information Technology

Sorting in a report can be done on only one field

Indicate whether the statement is true or false

Computer Science & Information Technology

The Quick Access Toolbar can be customized

Indicate whether the statement is true or false

Computer Science & Information Technology