Question
1. ofstream objects manage reading from a file True False 2. The ios base class shared by both hierarchies holds formatting information stream state flags
1. ofstream objects manage reading from a file
True
False
2. The ios base class shared by both hierarchies holds
- formatting information
- stream state flags
- stream opening mode flags
- All of them los base badbit is true
- if the stream object encountered a serious error, possibly with the internal buffer
- ifthere is a buffer overflow
- Iflatest operation falled
dall of the above
4. A Deadlock _ occurs when two or more threads are waiting for one another to complete exec and therefore are blocked forever. 5. A Mutex object creates or acquires a shared state in which it can store a value.
6. The most common and versatile data structures in computer science are linked lists and containers I general. Y True
d) False
7. A linked list is a collection of objects of non-identical type with possibly different lifetimes.
A) True
b) False
8. ofstream objects manage reading from a file
- True
- False
9. [Marks 4] Q. Name and explain the ways in which a file object can access (connect to a stream) the tents of its stream. Please briefly explain the scenarios where each one of them can be used.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started