Q#1: In the case of pointer to pointer ___, the first pointer contains the address of the second pointer, which contains the address of the variable, which contains the desired value.
(A) Single dereference
(B) Double dereference *
(C) Triple dereference
(D) None of the above
Answer: (B) Double dereference
Q#2: Transpose of a matrix means ___
(A) Interchanging diagonals
(B) Interchanging rows and columns *
(C) Adding rows and columns
(D) Multiplying rows and columns
Answer: (B) Interchanging rows and columns
Q#3: Returns true if c is a digit or a letter and false otherwise
(A) isalpha()
(B) isdigit()
(C) isalnum() *
(D) isgraph()
Answer: (C) isalnum()
Q#4: Whenever some number is added to an array name, it will jump as many ___ as the added number.
(A) Bytes
(B) Bits
(C) Elements *
(D) Words
Answer: (C) Elements
Q#5: At the ___, we try to break up the problem into functional units
(A) Implementation stage
(B) Design stage *
(C) Testing stage
(D) Compilation stage
Answer: (B) Design stage
Q#6: ___ are conventional names of the command line parameters of the main() function
(A) argc and argv *
(B) mainArg and mainVal
(C) param1 and param2
(D) count and args
Answer: (A) argc and argv
Q#7: Pointers store the ___
(A) value of a variable
(B) address of a variable *
(C) type of a variable
(D) size of a variable
Answer: (B) address of a variable
Q#8: Pointers work by pointing to a particular ___
(A) Variable *
(B) Function
(C) Memory block
(D) Class object
Answer: (A) Variable
Q#9: The statement cout << yptr will show the ___ the yptr points to
(A) Value *
(B) Address
(C) Type
(D) Size
Answer: (A) Value
Q#10: Returns true if c is a letter and false otherwise
(A) isalpha() *
(B) isdigit()
(C) isalnum()
(D) isgraph()
Answer: (A) isalpha()
Q#1: In the case of pointer to pointer ___, the first pointer contains the address of the second pointer, which contains the address of the variable, which contains the desired value.
(A) Single dereference
(B) Double dereference *
(C) Triple dereference
(D) None of the above
Answer: (B) Double dereference
Q#2: Transpose of a matrix means ___
(A) Interchanging diagonals
(B) Interchanging rows and columns *
(C) Adding rows and columns
(D) Multiplying rows and columns
Answer: (B) Interchanging rows and columns
Q#3: Returns true if c is a digit or a letter and false otherwise
(A) isalpha()
(B) isdigit()
(C) isalnum() *
(D) isgraph()
Answer: (C) isalnum()
Q#4: Whenever some number is added to an array name, it will jump as many ___ as the added number.
(A) Bytes
(B) Bits
(C) Elements *
(D) Words
Answer: (C) Elements
Q#5: At the ___, we try to break up the problem into functional units
(A) Implementation stage
(B) Design stage *
(C) Testing stage
(D) Compilation stage
Answer: (B) Design stage
Q#6: ___ are conventional names of the command line parameters of the main() function
(A) argc and argv *
(B) mainArg and mainVal
(C) param1 and param2
(D) count and args
Answer: (A) argc and argv
Q#7: Pointers store the ___
(A) value of a variable
(B) address of a variable *
(C) type of a variable
(D) size of a variable
Answer: (B) address of a variable
Q#8: Pointers work by pointing to a particular ___
(A) Variable *
(B) Function
(C) Memory block
(D) Class object
Answer: (A) Variable
Q#9: The statement cout << yptr will show the ___ the yptr points to
(A) Value *
(B) Address
(C) Type
(D) Size
Answer: (A) Value
Q#10: Returns true if c is a letter and false otherwise
(A) isalpha() *
(B) isdigit()
(C) isalnum()
(D) isgraph()
Answer: (A) isalpha()