Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 7 pages
Exam (elaborations)

Advanced Computer Science Multiple Choice Questions (MCQs) with Answers and Explanations for Degree, Master-s, and Professional Certification Exams.docx

Document preview thumbnail
Preview 2 out of 7 pages

Advanced CompTIA N Advanced CompTIA CySA multiple choice questions with Advanced Computer Science Multiple Choice Questions (MCQs) with Answers and Explanations for Degree, Master-s, and Professional Certification E Advanced Microsoft Certified Power1

Content preview

Advanced Computer Science Multiple
Choice Questions (MCQs) with Answers and
Explanations for Degree, Master's, and
Professional Certification Exams
1. A distributed database system is designed to ensure availability during network partitions.
According to the CAP theorem, which property must be compromised when partition
tolerance is maintained?

A. Atomicity
B. Durability
C. Consistency
D. Isolation

Explanation: The CAP theorem states that a distributed system cannot simultaneously guarantee
consistency, availability, and partition tolerance. When partition tolerance is required, one must
choose between consistency and availability.

2. Which scheduling algorithm minimizes average waiting time when all process execution
times are known beforehand?

A. Round Robin
B. First-Come First-Served
C. Priority Scheduling
D. Shortest Job First

Explanation: Shortest Job First executes processes with the smallest burst times first, minimizing
the average waiting time compared with other scheduling methods.

3. A compiler performs lexical analysis before syntax analysis primarily to:

A. Generate object code directly
B. Allocate memory addresses
C. Convert source code into tokens
D. Optimize loops

Explanation: Lexical analysis scans the source code and groups characters into tokens that are
then used by the syntax analyzer to build parse trees.

4. In graph theory, which algorithm efficiently finds the shortest paths from a single source
to all vertices in a graph with non-negative edge weights?

, A. Bellman-Ford Algorithm
B. Floyd-Warshall Algorithm
C. Depth-First Search
D. Dijkstra's Algorithm

Explanation: Dijkstra's algorithm computes shortest paths efficiently for graphs with non-
negative edge weights using a greedy approach.

5. Which database normalization form eliminates transitive dependencies?

A. First Normal Form
B. Second Normal Form
C. Third Normal Form
D. Boyce-Codd Normal Form

Explanation: Third Normal Form removes transitive dependencies by ensuring non-key
attributes depend only on candidate keys.

6. In object-oriented programming, polymorphism allows:

A. Multiple inheritance only
B. Static memory allocation
C. Data hiding through encapsulation
D. Objects of different classes to be treated through a common interface

Explanation: Polymorphism enables methods to operate on objects of different types through a
shared interface, improving flexibility and reusability.

7. Which data structure provides amortized O(1) insertion and deletion at both ends?

A. Binary Search Tree
B. Stack
C. Queue
D. Deque

Explanation: A double-ended queue supports insertion and deletion at both front and rear in
constant amortized time.

8. In operating systems, deadlock prevention can be achieved by:

A. Allowing circular wait conditions
B. Ignoring resource allocation requests
C. Increasing CPU speed
D. Eliminating at least one necessary condition for deadlock

Document information

Uploaded on
June 18, 2026
Number of pages
7
Written in
2025/2026
Type
Exam (elaborations)
Contains
Unknown
$23.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
0
Items
59
Last sold
-



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions