CS201 QUIZ NO 1 SOLVED SPRING 2019 || 100% VERIFIED|| VURANK

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
A) A only
B) C only
C) A and B (100% Sure)
D) A and D

Q2: __________ Returns true if c is a letter and false otherwise.
A) int isalpha(int c) (100% Sure)
B) int isalnum(int c)
C) int isxdigit(int c)
D) int isdigit(int c)

Q3: Individual characters in a string stored in an array can be accessed directly using array __________.
A) superscript
B) script
C) subscript (100% Sure)
D) value

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 __________.
A) long (100% Sure)
B) int
C) short
D) double

Q5: From the following; hich one is the correct syntax of an array declaration: array size 5 and it is of float data type?
A) float [5] name;
B) name [5] float;
C) float name[5]; (100% Sure)
D) None of the given options

Q6: Pointers are a special type of __________ in which a memory address is stored.
A) variable (100% Sure)
B) Location
C) Characters
D) None of the given

Q7: __________ is the pointer which determines the position in a file from where the next read operation occurs.
A) Set
B) Get
C) Put
D) Tell (100% Sure)

Q8: We use __________ to open a file or stream for extraction.
A) in (100% Sure)
B) out
C) app
D) ate

Q9: All elements of an array must be of __________ data type(s).
A) char and int
B) Same (100% Sure)
C) Different
D) float and double

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?
A) 0x22f221
B) 0x22f222
C) 0x22f223
D) 0x22f224 (100% Sure)