arrays in c++

mcqspedia.com has 5 Question/Answers about Topic arrays in c++

Position number contained within a square brackets e.g. my_array [5], is referred as

Position number contained within a square brackets e.g. my_array [5], is referred as
  • A. Post-scripts
  • B. Sub-scripts
  • C. Elements of an array
  • D. None of them
  • Correct Answer: Option B

A consecutive group of memory locations that all have same name and same type, is called as

A consecutive group of memory locations that all have same name and same type, is called as
  • A. Structures
  • B. Classes
  • C. Arrays
  • D. Functions
  • Correct Answer: Option C

A character array can be initialized using

A character array can be initialized using
  • A. Floats value
  • B. Integer values
  • C. A string literal
  • D. None of them
  • Correct Answer: Option C

Each element of an array is searched against searching key, is specialty of

Each element of an array is searched against searching key, is specialty of
  • A. Bubble sort
  • B. Linear search
  • C. Binary search
  • D. All of them
  • Correct Answer: Option B

Referring an element outside array bounds is a

Referring an element outside array bounds is a
  • A. Syntax error
  • B. Logical error
  • C. Execution time error
  • D. Both B and C
  • Correct Answer: Option D