Question 11 reads a line of input, including leading and embedded spaces, and stores it in a string object. A. cin B. getline setw D get

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section: Chapter Questions
Problem 9PP
icon
Related questions
Question
Question 11
reads a line of input, including leading and embedded spaces, and stores it in a string object.
A cin
B) getline
C) setw
get
Question 12
The
causes a program to wait until the information is typed at the keyboard and the Enter key is pressed
A cin object
B Preprocessor
c) Output stream
D cout object
Question 13
This stream manipulator forces cout to print the digits in fixed-point notation.
setfixed (2)
setw (2)
setprecision (2)
fixed
Question 14
What will the value of x be after the following statements execute?
int x = 0;
int y = 5;
int z = 4;
x = y + z * 2;
18
13
Question 15
This function tells the cin object to skip one or more characters in the keyboard buffer.
A cin.akip;
B) cin.hop
cin.ignore
D cin.jump
© © O O
Transcribed Image Text:Question 11 reads a line of input, including leading and embedded spaces, and stores it in a string object. A cin B) getline C) setw get Question 12 The causes a program to wait until the information is typed at the keyboard and the Enter key is pressed A cin object B Preprocessor c) Output stream D cout object Question 13 This stream manipulator forces cout to print the digits in fixed-point notation. setfixed (2) setw (2) setprecision (2) fixed Question 14 What will the value of x be after the following statements execute? int x = 0; int y = 5; int z = 4; x = y + z * 2; 18 13 Question 15 This function tells the cin object to skip one or more characters in the keyboard buffer. A cin.akip; B) cin.hop cin.ignore D cin.jump © © O O
Question 16
Give the correct description for endl keyword?
cout << "X " << endl;
cout >> m > endl;
cin << "print world" << endl
cin >> y >> 'endl’;
Question 17
When the final value of an expression is assigned to a variable, it will be converted to:
A The data type of the expression
B) The smallest C++ data type
C The data type of the variable
D
The largest C++ data type
Question 18
that do not appear in the algebraic
When converting some algebraic expressions to C++, you may need to insert
expression.
A Parentheses
Exponents
C preprocessor
D Calculations
Question 19
This manipulator is used to establish a field width for the value immediately following it.
set_field
B
setw
C field_width
D) iomanip
O O O O
Transcribed Image Text:Question 16 Give the correct description for endl keyword? cout << "X " << endl; cout >> m > endl; cin << "print world" << endl cin >> y >> 'endl’; Question 17 When the final value of an expression is assigned to a variable, it will be converted to: A The data type of the expression B) The smallest C++ data type C The data type of the variable D The largest C++ data type Question 18 that do not appear in the algebraic When converting some algebraic expressions to C++, you may need to insert expression. A Parentheses Exponents C preprocessor D Calculations Question 19 This manipulator is used to establish a field width for the value immediately following it. set_field B setw C field_width D) iomanip O O O O
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr