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
Exam (elaborations)

DSA Exam Questions And Correct Answers | Graded To Pass

Rating
-
Sold
-
Pages
9
Grade
A+
Uploaded on
27-03-2026
Written in
2025/2026

DSA Exam Questions And Correct Answers | Graded To Pass Abstract Data Types - Answer- Computational problems Data - Answer- info to state knowledge about world components and properties of a type of data, relationships among these data Operations - Answer- manipulate data to reason about world Specification - Answer- ADT Stage what are the data and operations from the pov of the user Representation - Answer- ADT Stage how are the data stored decided by someone implementing ADT Implementation - Answer- ADT Stage how are the operations performed decided by someone implement ADT Fields, Methods - Answer- OOP languages implement adt naturally Set of Data - Answer- static, dynamic static - Answer- change infrequently, fixed dynamic - Answer- items are added or removed over time Data Relationship, Operation on data, Static or Dynamic - Answer- factors for modelling set of data Data Structures - Answer- Representation that show relationship among data in computer environment Primitive data structure - Answer- Bit boolean Bit string/byte/int/char Composite data structure - Answer- Ordered tuple Arrays, structs, classes/objects String of char/ floating point number Algorithms - Answer- well-defined procedure that processes input values to generate desired output values to solve a problem implement operations using data structure Abu Ja'Far - Answer- wrote procedure to perform math operations Al-Khwarizmi - Answer- algorithms Aspect of Good Algorithm - Answer- input output definite finite correct effective general efficient 3 ways of implementation - Answer- natural language programming language pseudocode Program - Answer- data structure + algorithms functions - Answer- with return value subroutines - Answer- no return value, has side effects toString - Answer- returns conversion of sequence to string isFull - Answer- return true if the sequence is full append - Answer- subroutine, add a character at the end of sequence, unless it is full iteration - Answer- execution of loops body iterating block of statements (looping once) recursion - Answer- solves problems in terms of smaller part or instances though procedure - functions /subroutines procedure calling itself / cycle of procedure calls elements of recursion - Answer- basis, recursive step basis - Answer- direct solution to smallest part recursive step - Answer- solves big problem in terms of solution to smaller part pseudocode - Answer- algorithms will be described using __________ similar to pascal notation iteration - Answer- -more efficient -critical -application is called repeatedly or executed Recursion - Answer- -faster if hardware & o/s are built for it -simple and consistent -different execution time is not perceivable -conversion to iteration is complex Tail Recursion - Answer- linear recursive method makes the recursive call as its last step (kung ano yung last step dun na magiistop yung program) after recursive call wala na gagawin array reversal method Non-tail recursion - Answer- recursive call is not the last step tail call optimization - Answer- avoid stack overflow by removing frames can drop old stack frame Algorithm Analysis - Answer- study of amount of resources used by algorithm to solve problems Correctness & Generality Efficiency Correctness & Generality - Answer- Primary properties Efficiency - Answer- secondary but also important time & space efficiency Time efficiency - Answer- amount of time algorithm takes to complete problem Space efficiency - Answer- The amount of memory that an algorithm uses Empirical Method - Answer- experimental approach to measuring efficiency based on ACTUAL EXPERIENCE dependent sa runtime environment and sa machine na ginagamit hands-on actual running ng algo sa program languages 1. Write program 2. Run program 3. Measure resources - Answer- process of empirical method External Factors - Answer- -computer hardware -network conditions -input -algorithm -concurrent users & programs -OS -prog language -computer processor -available memory Theoretical Method - Answer- detach sa runtime environment focus on algorithm, input language & machine independent theoretical units of time & space Theoretical method - Answer- preferred way to analyze algorithm compare fairly w/o environmental factors

Show more Read less
Institution
DSA
Course
DSA

Content preview

DSA Exam Questions And Correct
Answers | Graded To Pass
Abstract Data Types - Answer- Computational problems

Data - Answer- info to state knowledge about world
components and properties of a type of data, relationships among these data

Operations - Answer- manipulate data to reason about world

Specification - Answer- ADT Stage
what are the data and operations
from the pov of the user

Representation - Answer- ADT Stage
how are the data stored
decided by someone implementing ADT

Implementation - Answer- ADT Stage
how are the operations performed
decided by someone implement ADT

Fields, Methods - Answer- OOP languages implement adt naturally

Set of Data - Answer- static, dynamic

static - Answer- change infrequently, fixed

dynamic - Answer- items are added or removed over time

Data Relationship, Operation on data, Static or Dynamic - Answer- factors for modelling
set of data

Data Structures - Answer- Representation that show relationship among data in
computer environment

Primitive data structure - Answer- Bit boolean
Bit string/byte/int/char

Composite data structure - Answer- Ordered tuple
Arrays, structs, classes/objects
String of char/ floating point number

, Algorithms - Answer- well-defined procedure that processes input values to generate
desired output values to solve a problem

implement operations using data structure

Abu Ja'Far - Answer- wrote procedure to perform math operations

Al-Khwarizmi - Answer- algorithms

Aspect of Good Algorithm - Answer- input
output
definite
finite
correct
effective
general
efficient

3 ways of implementation - Answer- natural language
programming language
pseudocode

Program - Answer- data structure + algorithms

functions - Answer- with return value

subroutines - Answer- no return value, has side effects

toString - Answer- returns conversion of sequence to string

isFull - Answer- return true if the sequence is full

append - Answer- subroutine, add a character at the end of sequence, unless it is full

iteration - Answer- execution of loops body
iterating block of statements (looping once)

recursion - Answer- solves problems in terms of smaller part or instances

though procedure - functions /subroutines

procedure calling itself / cycle of procedure calls

elements of recursion - Answer- basis, recursive step

basis - Answer- direct solution to smallest part

Written for

Institution
DSA
Course
DSA

Document information

Uploaded on
March 27, 2026
Number of pages
9
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$12.49
Get access to the full document:

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

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Stuviaascorers University of Washington
Follow You need to be logged in order to follow users or courses
Sold
370
Member since
3 year
Number of followers
185
Documents
11065
Last sold
2 weeks ago
StuviaAscorers | Top Study Notes & Exam Solutions

Stuviaascorers – Your #1 Source for Top-Quality Study Materials! Struggling with exams? Stuviaascorers has got you covered! I provide expertly crafted study notes, summaries, past papers, and exam-ready answers to help you pass with flying colors. My materials are designed for clarity, accuracy, and success—so you can study smarter, not harder! Why Choose My Study Materials? Well-structured & easy to understand – No fluff, just what you need! Exam-focused & high-scoring content – Get straight to the point! Accurate answers & clear explanations – Learn with confidence! Save time & boost your grades – Study efficiently! Don’t leave your success to chance! Browse my documents and start acing your exams today!

Read more Read less
3.8

66 reviews

5
31
4
11
3
12
2
2
1
10

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