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

CS201 QUIZ NO 1 SOLVED 100% VERIFIED BY ADMIN (MID TERM SYLLABUS)

Q1: In C++, what will be the highest index of the following array?
int array[15];
A) 16 (100% Sure)
B) 15
C) 14
D) 13

Q2: To get the value stored at a memory address, we use the __________.
A) refrencing operator
B) dereferencing operator (100% Sure)
C) simple operator
D) None of the given

Q3: __________ are conventional names of command line parameters of the 'main()' function.
A) 'argb' and 'argv'
B) 'argc' and 'argv' (100% Sure)
C) 'argc' and 'argu'
D) None of the given

Q4: In Analysis, we try to have a __________.
A) Determined the inputs
B) Break up of problem
C) Precise problem statement (100% Sure)
D) None of the given

Q5: These functions seekg() and seekp() requires an argument of type __________ to let them how many bytes to move forward or backward.
A) int
B) short
C) long (100% Sure)
D) double

Q6: char name [] ="Hello World";
In the above statement, a memory of __________ charaters will be allocated.
A) 13
B) 11
C) 12 (100% Sure)
D) 10

Q7: 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

Q8: While handling files, one can have __________ options.
A) read the file
B) write in some file
C) read and write in the same file
D) All of the given (100% Sure)

Q9: The increment of a pointer depends on its __________.
A) variable
B) value
C) data type (100% Sure)
D) None of the given

Q10: 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