3.4.1 Array & List are Similar
10 Computer Science · Chapter 3: Programing Fundamentals · Federal Board (FBISE)
3.4.1 Array & List are Similar from Federal Board 10 Computer Science (10th Class) Chapter 3, Programing Fundamentals: 3 short and long questions and 7 MCQs with answers.
Array & List are Similar MCQs
- Q1
What is a List, in terms of data structures?
Show answer
Correct answer: C. An Abstract Data Type (ADT) representing an ordered sequence of elements
A list is an Abstract Data Type (ADT) — an ordered sequence of elements with defined operations.
- Q2
What is a key difference between how arrays and lists are stored in memory?
Show answer
Correct answer: A. Arrays are stored at contiguous locations; lists are not necessarily contiguous
Arrays are stored in memory at contiguous locations, while list elements may be stored at non-contiguous memory locations.
- Q3
Which of the following is true about both arrays and lists?
Show answer
Correct answer: D. Both can expand or contract to hold items
Both arrays and lists can grow or shrink easily to accommodate adding or removing items.
- Q4
Which symbol indicates that an array is a built-in JavaScript tool?
Show answer
Correct answer: B. Square brackets [ ]
Square brackets [ ] are used to indicate and create arrays, which are a built-in JavaScript feature.
- Q5
For which type of data are arrays generally considered best suited?
Show answer
Correct answer: A. Numbers
Arrays are best suited for working with numbers, while lists are chosen for more general, flexible usage.
- Q6
Arrays and list can contain data types containing __________.
Show answer
Correct answer: B. Alphanumeric
Arrays and lists can contain alphanumeric data — a mix of alphabets and numbers.
- Q7
ADT stands for __________.
Show answer
Correct answer: C. Abstract Data type
ADT stands for Abstract Data Type, a data type defined only by its operations.
Array & List are Similar short questions
How are arrays and lists similar, and what are the major differences between them?
ImportantEnlist 3 key differences between array and list.
Important
Array & List are Similar long questions
What is a List, and how is it similar to and different from an Array? Explain the algorithm to find an element in a list, with code.
Important