ACtE08 · Chapter 8Mock Test 05🏛️ Past Licensure QuestionID: 4d9fbd35
Which of the following is NOT an I/O stream manipulator in C++?
Which of the following is NOT an I/O stream manipulator in C++?
Multiple Choice Options
- A✓ Correct Option
Base
- B
Ends
- C
Oct
- D
skipws
Detailed Technical Solution & Explanation
In C++ standard stream I/O (<iostream> and <iomanip>):
•
ends: Inserts a null character ('\0') into an output stream.•
oct: Sets the basefield to octal base formatting.•
skipws: Skips leading whitespace on input extraction.•
Base: There is no manipulator named Base in standard C++. To set a numeric base, one uses either the base manipulators (dec, oct, hex) or the parameterized manipulator setbase(int n).Option Analysis:
•
Option A (Base): Correct; 'Base' is not a valid C++ stream manipulator.
•
Option B (Ends): Incorrect; valid manipulator inserting a null terminator in stream buffers.
•
Option C (Oct): Incorrect; valid manipulator formatting integer output as octal.
•
Option D (skipws): Incorrect; valid manipulator enabling whitespace skipping during extraction.
Reference: Mock Test 05NEC Licensure Syllabus