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


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

Q1: aFile.seekg(-10L, ios:cur) indicates the file pointer will move 10 bytes in the __________.
A) forward direction
B) backward direction (100% Sure)
C) both direction
D) None of the above


Q2: In __________, we try to have a precise problem statement.
A) Analysis (100% Sure)
B) Design
C) Coding
D) None of the given


Q3: If an array has 50 elements what is allowable range of subscripts?
A) 0-49 (100% Sure)
B) 1-49
C) 0-50
D) 1-50


Q4: At the desing phase, we try to break up the problem into __________.
A) functional units (100% Sure)
B) non-functional units
C) small units
D) None of the given


Q5: The name of the array is a constant pointer which contains the memory address of the __________ of the array.
A) first element (100% Sure)
B) last element
C) second element
D) none of the given


Q6: "multi [3][3]" element can also be accessed by '__________'.
A) **(multi+3)+3
B) *(*(multi+3)+3) (100% Sure)
C) *(multi+3)
D) None of the given


Q7: __________ function give the position of the next character to be read from that file.
A) tellp()
B) tellg() (100% Sure)
C) seekg()
D) seekp()


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


Q9: How many bytes an integer type pointer intPtr will jump in memory if the statement below is executed?
intPtr += 2 ;
A) 2
B) 4
C) 8 (100% Sure)
D) 12


Q10: In C-language the string "AZMAT" is equal to __________.
A) Azmat
B) azmat
C) AZMAT (100% Sure)
D) None of the given