Podcast
Questions and Answers
What is the definition of an array?
What is the definition of an array?
- An array is a variable that can store multiple values of the same data type but cannot be grouped under a single variable name.
- An array is a variable that can store only one value of the same data type.
- An array is a fixed size sequential collection of elements of the same data type grouped under a single variable name. (correct)
- An array is a variable that can store multiple values of different data types.
What is the appropriate solution to store roll numbers of 100 students?
What is the appropriate solution to store roll numbers of 100 students?
- Using a single variable to store all roll numbers.
- Using an array to store the roll numbers. (correct)
- Creating a separate function for each roll number.
- Declaring 100 individual integer variables for roll numbers.
What is the index range for an array with size 100?
What is the index range for an array with size 100?
- 1 to 100
- 100 to 199
- -50 to 49
- 0 to 99 (correct)
What happens if we declare 100 individual integer variables for roll numbers instead of using an array?
What happens if we declare 100 individual integer variables for roll numbers instead of using an array?
What does the size of an array indicate?
What does the size of an array indicate?
Flashcards are hidden until you start studying