Q: Which operator is used for input stream?
Solution: The operator of extraction is >> and it is used on the standard input stream.
Q: Where does a cin stops it extraction of data?
Solution: cin will stop its extraction when it encounters a blank space.
Q: Which is used to get the input during runtime?
Solution: cin is mainly used to get the input during the runtime.
Q: What can be used to input a string with blank space?
Solution: If a user wants to input a sentence with blank spaces, then he may use the function getline.
Q: When will the cin can start processing of input?
Solution: When you give some input to console the processing of the input starts when the user presses enter/return key.
Q: Which is used for formatting purpose in c++?
Solution: Whitespace is a term that refers to characters like spaces, tabs, and newlines that are used for formatting purposes.
Q: How many number of spaces should be set in default tab?
Solution: The default number of spaces is 4 in programming.
Q: What can be improved by formatting the source code?
Solution: By formatting your code, the user can easily understand it and can upgrade it without any complexity.
Q: Which function allows you to set minimum width for the next input?
Solution: setw function of iomanip header file allows you to set minimum width for the next input.
Q: What is the use of the function "showbase"?
Solution: showbase is used to indicate the base used.
You Have Score    | /10 |