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 4 out of 57 pages
Exam (elaborations)

CS101 – Introduction to Computer Science (Final Exam Questions With Complete Solutions 2025/2026)

Document preview thumbnail
Preview 4 out of 57 pages

CS101 – Introduction to Computer Science (Final Exam Questions With Complete Solutions 2025/2026) 1. What is abs(x)? - ANSWER A function that returns the absolute value of x 2. What is round(x)? - ANSWER A function that rounds x to the nearest whole number 3. What are the three basic programming structures? - ANSWER Sequence, selection, and loop 4. What is sequence structure? - ANSWER A set of instructions executed in order, one after another 5. What is selection structure? - ANSWER A decision making structure that executes code based on a condition 6. What is a Boolean expression? - ANSWER An expression that evaluates to true or false 7. What is a single-alternative if structure? - ANSWER An if condition with only one outcome if true 8. What is a dual-alternative if structure? - ANSWER An if-else structure with outcomes for both true and false 9. What is turnaround time? - ANSWER Time from job submission to job completion 10. What is main memory used for? - ANSWER Temporarily storing data and instructions during execution 11. What is secondary memory? - ANSWER Persistent storage like hard drives and SSDs

Content preview

CS101 – Introduction to Computer
Science (Final Exam Questions With
Complete Solutions 2025/2026)

1. What is abs(x)? - ANSWER ✔ A function that returns
the absolute value of x


2. What is round(x)? - ANSWER ✔ A function that rounds
x to the nearest whole number


3. What are the three basic programming structures? -
ANSWER ✔ Sequence, selection, and loop


4. What is sequence structure? - ANSWER ✔ A set of
instructions executed in order, one after another


5. What is selection structure? - ANSWER ✔ A decision-
making structure that executes code based on a
condition

,6. What is a Boolean expression? - ANSWER ✔ An
expression that evaluates to true or false


7. What is a single-alternative if structure? - ANSWER ✔
An if condition with only one outcome if true


8. What is a dual-alternative if structure? - ANSWER ✔
An if-else structure with outcomes for both true and
false


9. What is turnaround time? - ANSWER ✔ Time from job
submission to job completion


10. What is main memory used for? - ANSWER ✔
Temporarily storing data and instructions during
execution


11. What is secondary memory? - ANSWER ✔
Persistent storage like hard drives and SSDs

,12. What is volatile memory? - ANSWER ✔ Memory
(like RAM) that loses data when power is off


13. What is the most common secondary storage device?
- ANSWER ✔ Magnetic disk drive


14. What is a file? - ANSWER ✔ A named collection of
data stored on a storage device


15. How does organizing data into files help? -
ANSWER ✔ Provides uniform access and easier data
management


16. What is the difference between text and binary files?
- ANSWER ✔ Text = readable characters; binary =
machine-encoded data

, 17. What kind of data do image formats like JPEG store?
- ANSWER ✔ Binary data representing visual
information


18. What is a file extension? - ANSWER ✔ A suffix
(e.g., .txt, .jpg) indicating the file type


19. Does changing a file extension change its type? -
ANSWER ✔ No, only the label changes, not the
content


20. What happens when you create a file? - ANSWER ✔
Storage is allocated and file metadata is recorded


21. What happens when you delete a file? - ANSWER ✔
Storage is freed and directory entry is removed


22. What are common file operations? - ANSWER ✔
Create, delete, open, read, write, append, truncate,
rename

Document information

Uploaded on
September 7, 2025
Number of pages
57
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$14.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

Sold
0
Followers
0
Items
22
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