• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 25 pages
Exam (elaborations)

DASA Exam 2

Document preview thumbnail
Preview 3 out of 25 pages

Exam of 25 pages for the course Dasa at Dasa (DASA Exam 2)

Content preview

1. Which data structure uses LIFO (Last In, First Out) ordering?
A. Queue
B. Stack
C. Array
D. Linked List
Answer: B) Stack
Rationale: A stack follows the LIFO principle, meaning the last element
added is the first one to be removed.


2. What is the function of a compiler?
A. To interpret code line by line
B. To convert high-level code into machine code
C. To run the program directly from the source code
D. To manage memory during program execution
Answer: B) To convert high-level code into machine code
Rationale: A compiler translates high-level source code into machine
code or an intermediate code that can be executed by the computer.


3. What is the purpose of an index in a database?
A. To store the data itself

,B. To provide a faster way to retrieve data
C. To restrict access to certain records
D. To back up data
Answer: B) To provide a faster way to retrieve data
Rationale: Indexes are used in databases to speed up the retrieval of
data by creating a fast lookup mechanism based on indexed fields.


4. In which of the following scenarios would a queue be the most
suitable data structure?
A. Implementing undo functionality
B. Scheduling tasks in a print queue
C. Implementing a priority system
D. Storing elements in reverse order
Answer: B) Scheduling tasks in a print queue
Rationale: A queue follows FIFO (First In, First Out) and is ideal for
situations where tasks are processed in the order they arrive, like in a
print queue.


5. What is the primary advantage of using a linked list over an array?
A. Faster access to elements
B. Fixed size of the data structure
C. Dynamic memory allocation
D. Easier to perform sorting

, Answer: C) Dynamic memory allocation
Rationale: Linked lists allow for dynamic memory allocation, making
them more flexible than arrays, which have a fixed size and require
resizing if they become full.


6. Which of the following is a characteristic of cloud storage?
A. Provides local access to data only
B. Data is stored on personal hard drives
C. Allows for remote access to data over the internet
D. It does not support data synchronization
Answer: C) Allows for remote access to data over the internet
Rationale: Cloud storage allows users to store data on remote servers
and access it from any device with an internet connection.


7. Which type of memory is non-volatile?
A. RAM
B. Cache
C. ROM
D. Registers
Answer: C) ROM
Rationale: ROM (Read-Only Memory) is non-volatile, meaning it
retains its data even when the power is turned off.

Document information

Uploaded on
February 12, 2025
Number of pages
25
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$8.49

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

Seller avatar
douglasmugwe82
5.0
(1)
Sold
2
Followers
0
Items
4215
Last sold
1 year ago



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