Arrays MCQ Questions and Answers - 1

Question: 1

Which of the following is a derived data type?

(A) Array

(B) Double

(C) Float

(D) Union

Ans: A

Array

Question: 2

Arrays in C++ belong to which of the following data type?

(A) Primitive

(B) User defined

(C) Derived

(D) Basic

Ans: C

Derived

Question: 3

___  function compares the two given strings.

(A) Strcmp ()

(B) Strcp ()

(C) Stcp()

(D) Stcmp()

Ans: A

Strcmp ()

Question: 4

Matrices can be represented through ____ arrays.

(A) Single

(B) 2-D

(C) 3-D

(D) Multi-dimensional

Ans: B

2-D

Question: 5

The size of the array should always be ___

(A) Positive

(B) Negative

(C) Whole number

(D) Real number

Ans: A

Positive

Error Report!

Related Questions