Q No,1 (i)
Which of the following is true about streams?
A) It is a sequence of bytes
B)it is an ordered sequence.
C)All bytes can go through the stream simultaneously.
D)Bytes thet enters first into the stream will go out at least.
(ii)
Consider the following code segment.
1 - String s1, s2;
2 - s1 = s2;
Which of the following will be called while executing code at kine 2?
A)Copy constructor
B)Default constructor
C)Assignment operator
D)Parameterized constructor
(iii)
What is the difference between cout and cerr?
A)Cout is unbuffered output and cerr is buffered output
B)Cout is standard output and cerr is not a standard output
C)Cout is not a standard output and cerr is standard output
D)Cout is buffered output and cerr is unbuffered output
(iv)
If text is a pointer of type String then what will be the functionality of following statement?
text = new String[5];
A)Creates array of 5 Staring objects statically.
B)Creates array of 5 String objects dynamically
C)Creates array of pointers to String objects
D)Creates a String object