Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

Array of arrays are called multidimensional arrays.(a) True(b) FalseThis question was posed to me in homework.Query is from Arrays of Arrays topic in portion Arrays and Hashes in Ruby Programming Language of Ruby

Answer» RIGHT CHOICE is (a) True

The BEST EXPLANATION: We can PUT anything in an array and make it array of arrays.
2.

Each element in an array has an index and the starting index is index 1.(a) True(b) FalseThis question was posed to me in quiz.I would like to ask this question from Arrays in division Arrays and Hashes in Ruby Programming Language of Ruby

Answer»

The correct choice is (b) False

The BEST EXPLANATION: Array’s starting INDEX is index 0 not index 1.

3.

Arrays can be used to store multiple values in one single variable.(a) True(b) FalseThe question was asked in semester exam.The origin of the question is Arrays in chapter Arrays and Hashes in Ruby Programming Language of Ruby

Answer»

Right choice is (a) True

Explanation: We can STORE multiple value in ONE SINGLE variable known as ARRAYS.