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

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

Q1: To manipulate n-dimensional array __________ nested loops are required.
A) n-2
B) n-1
C) n+1
D) n (100% Sure)

Q2: When we access a multidimensional array, each array index is surrounded by __________.
A) Single quotes ''
B) Double quotes
C) Brackets [] (100% Sure)
D) Commas ,,

Q3: There is a pointer variable named ptr of type float then address of which type of variable the ptr will store in it?
A) int
B) float (100% Sure)
C) char
D) double

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: Transpose of a matrix means that when we interchange rows and columns __________.
A) the first row becomes the Last column
B) the first row becomes the first column (100% Sure)
C) the Last row becomes the first column
D) the first column becomes the first row

Q6: dereferencing operator is represented by __________.
A) * (100% Sure)
B) +
C) -
D) None of the given

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: eof is used to check for the __________ of file when a file is being read.
A) Start
B) End (100% Sure)
C) Middle
D) Name

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

Q10: Which header file must be included to use the functions tolower() an toupper()?
A) iostream.h
B) conio.h
C) ctype.h (100% Sure)
D) stdlib.h