Introduction to Computing MCQs with Answers
Practice important Introduction to Computing MCQs with answers and explanations.
Multiple Choice Questions
Q1781: Fill in the blank: In parallel processing, the program unit requesting a function _________.
- A: Waits for the function to complete
- B: Continues execution while the function executes
- C: Stops execution until the function finishes
- D: Is terminated until the function is complete
View Answer
B
Q1782: What issue arises when two threads manipulate the same data concurrently?
- A: Data integrity issues
- B: Improved performance
- C: Increased accuracy
- D: Simplified coding
View Answer
A
Q1783: Fill in the blank: Data that can be accessed by only one thread at a time is said to have ________.
- A: Shared access
- B: Mutually exclusive access
- C: Concurrent access
- D: Public access
View Answer
B
Q1784: How can mutually exclusive access be implemented when threads need to access shared data?
- A: By blocking other threads from accessing the data
- B: By using multiple CPU cores
- C: By avoiding the use of shared data
- D: By allowing simultaneous access
View Answer
A
Q1785: In the context of parallel processing, what does spawning threads refer to?
- A: Creating new threads
- B: Waiting for threads to complete
- C: Terminating threads
- D: Accessing shared data
View Answer
A
Q1786: Which programming language uses the term "thread" for concurrent activities?
- A: Ada
- B: Java
- C: C++
- D: Python
View Answer
B
Q1787: Fill in the blank: When a thread is using shared data, other threads may be blocked from accessing that data until ______.
- A: The data is modified
- B: The thread completes its task
- C: The thread is terminated
- D: The data is reset
View Answer
B
Q1788: What might threads need to communicate about in a parallel processing scenario involving multiple spaceships?
- A: Their locations
- B: Their execution time
- C: Their thread counts
- D: Their memory usage
View Answer
A
Q1789: What does the / operator do in C when both operands are integers?
- A: Divides and returns a decimal
- B: Divides and returns an integer
- C: Multiplies operands
- D: Subtracts operands
View Answer
B
Q1790: What is the result of 5.0 / 2.0 in C?
- A: 2
- B: 2.5
- C: 2
- D: 5
View Answer
B