What does this code fragment store in d1 and d2 if the input file contains

```
string d1, d2;
...
infile >>d1;
getline( infile, d2 );
first line
second line
```

a. d1 = "first"
d2 = " line"
b. d1 ="first"
d2 = "second line"
c. d1 = "first line"
d2 = "second line"
d. d1 = "first"
d2 = " line second line"


a. d1 = "first"
d2 = " line"

Computer Science & Information Technology

You might also like to view...

Set methods are also commonly called ________ methods and get methods are also commonly called ________ methods.

a. query, mutator. b. accessor, mutator. c. mutator, accessor. d. query, accessor.

Computer Science & Information Technology

A(n) _____ card is used to connect the laptop to an 802.11 network

Fill in the blank(s) with correct word

Computer Science & Information Technology

You can not link Excel worksheet data to a Word document Select one:

a. With a hyperlink b. With the copy and paste special commands c. With the right drag method d. With the copy and paste buttons on the standard toolbar

Computer Science & Information Technology

The netsh command can be used to configure a Windows firewall remotely by default, without any changes required on the remote server

a. true b. false

Computer Science & Information Technology