CS201 QUIZ NO 1 SOLVED 100% VERIFIED BY ADMIN (MID TERM SYLLABUS)
Q1: ofstream is used for __________.
Q2: Base address is the memory address of __________ element of an array.
Q3: All elements of an array must be of __________ data type(s).
Q4: eof is used to check for the __________ of file when a file is being read.
Q5: While handling files, one can have __________ options.
Q6: 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 that enters first into the stream will go out at last
Q7: we have opened a file stream myfile for reading(getting), myfile.tellg() gives us the current get position of the file pointer. It returns a whole number of type __________.
Q8: Null Character is represented by __________ in C++.
Q9: suppose we have int y[10];
To access the 4th element of the array we write.
Q9: What will be the size of the array declared as int array[1000];