Which of the following will allow an entire line of text to be read into a string object, even if it contains embedded blanks?

A) get line()
B) cin >>
C) cin.get()
D) cin.ignore()
E) both A and B, but not C or D.


A) get line()

Computer Science & Information Technology

You might also like to view...

Why is this?

You have to #include <;iomanip> as well as #include when you use a line of code such as ``` cout << setw(8) << 123456 << endl; ``` but not have to #include when you do the exact equivalent thing in ``` cout.width(8); cout << 123456 << endl; ```

Computer Science & Information Technology

The Save command allows you to name a file and determine the location where it is stored

Indicate whether the statement is true or false

Computer Science & Information Technology

Which type of a password cracking attack uses a predefined dictionary and prepends or appends characters to the dictionary word in an attempt to discover the password?

a. Dictionary attack b. Brute force attack c. Hybrid attack d. Rainbow table attack

Computer Science & Information Technology

While troubleshooting a network outage, a technician finds a 100-meter fiber cable with a small service loop and suspects it might be the cause of the outage. Which of the following is MOST likely the issue?

A. Maximum cable length exceeded B. Dirty connectors C. RF interference caused by impedance mismatch D. Bend radius exceeded

Computer Science & Information Technology