CS201 QUIZ NO 1 SOLVED 100% VERIFIED BY ADMIN (MID TERM SYLLABUS)
Q1: 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
Q2: __________ Returns true if c is a letter and false otherwise.
Q3: Individual characters in a string stored in an array can be accessed directly using array __________.
Q4: 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 __________.
Q5: From the following; hich one is the correct syntax of an array declaration: array size 5 and it is of float data type?
Q6: Pointers are a special type of __________ in which a memory address is stored.
Q7: __________ is the pointer which determines the position in a file from where the next read operation occurs.
Q8: We use __________ to open a file or stream for extraction.
Q9: All elements of an array must be of __________ data type(s).
Q10: Suppose that an integer type pointer contains a memory address 0x22f220. What will be the new memory address if we increment this pointer by one?