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

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

Q1: In the case of pointer to pointer or __________, the first pointer contains the address of the second pointer, which contains the address of the variable, which contains the desired value.
A) double dereference (100% Sure)
B) single dereference
C) dereference
D) None of the given

Q2: From the following; which one is the range of Random number generator function rand()?
A) 0 - 32768
B) 1 - 32768
C) 0 - 32767 (100% Sure)
D) 1 - 32767

Q3: Pointers store the __________.
A) value of a variable
B) memory address (100% Sure)
C) characters
D) None of the given

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

Q5: We define a matrix as __________ array.
A) Sorted
B) Unsorted
C) Single dimensional
D) Multi dimensional (100% Sure)

Q6: __________ character is used to indicate the end of the string.
A) New line
B) Blank space
C) Null (100% Sure)
D) E

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

Q8: A heirarchy of classes which are used to deal with console and disk file are called __________.
A) Stream classes
B) Simple classes
C) Binary classes
D) IO classes (100% Sure)

Q9: Pointers work by pointing to a particular __________.
A) Value
B) variable
C) data type (100% Sure)
D) None of the above

Q10: To read command-line arguments, the main() function itself must be given __________ arguments.
A) 1
B) 2 (100% Sure)
C) 3
D) 4