Introduction to Computing MCQs with Answers
Practice important Introduction to Computing MCQs with answers and explanations.
Chapter: 146
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
Correct Answer:
B
Chapter: 146
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
Correct Answer:
B
Chapter: 146
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
Correct Answer:
B
Chapter: 146
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
Correct Answer:
A
Chapter: 146
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
Correct Answer:
B
Chapter: 146
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
Correct Answer:
C
Chapter: 146
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
Correct Answer:
B
Chapter: 146
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
Correct Answer:
A
Chapter: 146
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
Correct Answer:
A
Chapter: 146
Q2090:
Fill in the blank: In an aggregate type, fields are usually accessed by _____ name.
A. index
B. numerical
C. field
D. data
Correct Answer:
B
Chapter: 147
Q2091:
What is the beginning of a list called?
A. The middle
B. The tail
C. The head
D. The base
Correct Answer:
C
Chapter: 147
Q2092:
What is the end of a list referred to as?
A. The head
B. The base
C. The tail
D. The middle
Correct Answer:
C
Chapter: 147
Q2093:
In which data structure are entries inserted and removed only at the head?
A. Queue
B. List
C. Stack
D. Linked list
Correct Answer:
C
Chapter: 147
Q2094:
What is the primary characteristic of a stack?
A. First-in, first-out (FIFO)
B. Last-in, first-out (LIFO)
C. Ordered access
D. Random access
Correct Answer:
B
Chapter: 147
Q2095:
What term is used to describe adding an entry to the top of a stack?
A. Popping
B. Pushing
C. Queuing
D. Removing
Correct Answer:
B
Chapter: 147
Q2096:
What term describes the process of removing an entry from the top of a stack?
A. Pushing
B. Popping
C. Queueing
D. Inserting
Correct Answer:
B
Chapter: 147
Q2097:
A stack is ideal for processes that require retrieval in what order?
A. First-in, first-out (FIFO)
B. Random order
C. Last-in, first-out (LIFO)
D. Sorted order
Correct Answer:
C
Chapter: 147
Q2098:
What is a common use case for a stack in programming?
A. Managing function calls in recursion
B. Handling buffers
C. Processing lists
D. Serving queues
Correct Answer:
A
Chapter: 147
Q2099:
What is the primary characteristic of a queue?
A. Last-in, first-out (LIFO)
B. Random access
C. First-in, first-out (FIFO)
D. Ordered access
Correct Answer:
C
Chapter: 147
Q2100:
In which data structure are entries inserted only at the tail and removed only at the head?
A. Stack
B. Queue
C. List
D. Array
Correct Answer:
B