C Arrays Questions and Answers

Practice Mode
Showing 10 of 50 questions
Q1
What does the following declaration mean? int (*ptr)[10];
  • A ptr is array of pointers to 10 integers
  • B ptr is a pointer to an array of 10 integers
  • C ptr is an array of 10 integers
  • D ptr is an pointer to array
Answer: Option B
Q2
In C, if you pass an array as an argument to a function, what actually gets passed?
  • A Value of elements in array
  • B First element of the array
  • C Base address of the array
  • D Address of the last element of array
Answer: Option C
Q3
Array is used to represent
  • A a list of data items of integer data type
  • B a list of data items of real data type
  • C a list of data items of different data type
  • D a list of data items of same data type
Answer: Option D
Q4
Array name is
  • A an array variabl
  • B a keyword
  • C a common name shared by all elements
  • D not used in a program
Answer: Option C
Q5
One-dimensional array is known as
  • A vector
  • B table
  • C matrix
  • D an array of arrays
Answer: Option A
Q6
The array elements are represented by
  • A index values
  • B subscripted variables
  • C array name
  • D size of an array
Answer: Option B
Q7
Array elements occupy
  • A subsequent memory locations
  • B random location for each element
  • C varying length of memory locations for each elements
  • D no space in memory
Answer: Option A
Q8
The address of the starting element of an array is
  • A represented by subscripted variable of the starting element
  • B cannot be specified
  • C represented by the array name
  • D not used by the compiler
Answer: Option C
Q9
Identify the wrong statement
  • A subscripts are also known as indices
  • B Array variables and subscripted variables are same.
  • C Array name and subscripted variables are different
  • D Arrays name and subscripted variables are same.
Answer: Option D
Q10
Arrays subscripts in C always start at
  • A -1
  • B 0
  • C 1
  • D any value
Answer: Option B
Questions and Answers for Competitive Exams Various Entrance Test