Introduction to Computing MCQs with Answers
Practice important Introduction to Computing MCQs with answers and explanations.
Multiple Choice Questions
Q2081: What type of data structure is used to store the number of times each letter occurs in a text?
- A: Two-dimensional array
- B: One-dimensional array
- C: Aggregate type
- D: Linked list
View Answer
B
Q2082: How is a two-dimensional array typically represented?
- A: As a single row of elements
- B: As multiple rows and columns
- C: As a list of fields
- D: As a collection of different data types
View Answer
B
Q2083: What does the first index in a two-dimensional array represent?
- A: The column position
- B: The row position
- C: The element value
- D: The data type
View Answer
B
Q2084: In a two-dimensional array representing monthly sales, what does the entry in the third row and first column represent?
- A: The sales made by the third salesperson in January
- B: The total sales for January
- C: The sales by all salespeople in January
- D: The sales made by the first salesperson in the third month
View Answer
A
Q2085: How are fields in an aggregate type usually accessed?
- A: By numerical index number
- B: By field name
- C: By array position
- D: By row and column indices
View Answer
B
Q2086: What is an example of an aggregate type?
- A: A one-dimensional array of integers
- B: A two-dimensional array of characters
- C: A block of data with different types and sizes
- D: A list of floating-point numbers
View Answer
C
Q2087: Fill in the blank: An array is a block of data where all entries are of the _____ type.
- A: different
- B: same
- C: undefined
- D: optional
View Answer
B
Q2088: Fill in the blank: A two-dimensional array consists of multiple rows and columns, with positions identified by _____ of indices.
- A: pairs
- B: single
- C: triplets
- D: doubles
View Answer
A
Q2089: Fill in the blank: An aggregate type consists of a block of data items that might be of different _____ and sizes.
- A: types
- B: indices
- C: positions
- D: values
View Answer
A
Q2090: Fill in the blank: In an aggregate type, fields are usually accessed by _____ name.
- A: index
- B: numerical
- C: field
- D: data
View Answer
B