100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

ALC Final Exam questions well answered to pass

Rating
-
Sold
-
Pages
7
Grade
A+
Uploaded on
29-09-2024
Written in
2024/2025

ALC Final Exam questions well answered to pass

Institution
ALC
Course
ALC









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
ALC
Course
ALC

Document information

Uploaded on
September 29, 2024
Number of pages
7
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

ALC Final Exam

Static - correct answer ✔✔Variable type is checked at compile time



Dynamic - correct answer ✔✔Variable type is checked at runtime



Language evaluation criteria: Readability - correct answer ✔✔The ease with which programs can be read
and understood



Language evaluation criteria: Writability - correct answer ✔✔The ease with which a language can be
used to create programs



Language evaluation criteria: Reliability - correct answer ✔✔Conformance to specifications (i.e.,
performs to its specifications)



Language evaluation criteria: Cost - correct answer ✔✔The ultimate total cost



Phases of a compiler: Step 1 - correct answer ✔✔Lexical analysis: converts characters in the source
program into lexical units



Phases of a compiler: Step 2 - correct answer ✔✔Syntax analysis: transforms lexical units into parse trees
which represent the syntactic structure of program



Phases of a compiler: Step 3 - correct answer ✔✔Semantics analysis: further checks that are too difficult
for syntax (declare before use, type checking, parameter matching).

ALSO IN STEP 3: intermediate code generator



Phases of a compiler: Step 4 - correct answer ✔✔Code generation: machine code is generated

, Mark-and-sweep - correct answer ✔✔Garbage collection algorithm consisting of a mark phase and a
sweep phase.

Mark phase: when an object is created, its mark bit is set to false. In the mark phase, the mark bit of all
reachable objects is set to true.

Sweep phase: all objects whose marked value is false are cleared from memory.



Reference counting - correct answer ✔✔Garbage collection algorithm. Each object has a count of the
number of references to it. If an object has 0 references to it, it is identified as garbage and cleared from
memory.



Semaphore - correct answer ✔✔A data structure consisting of a counter and a queue for storing task
descriptors. Used to implement safeguards on the code that accesses shared data values and provides
synchronization between processes. Has a "wait" phase and a "release" phase.



Abstraction - correct answer ✔✔A view or representation of an entity that includes only the most
significant attributes



Abstract data type - correct answer ✔✔A user-defined data type in which the representation of objects
is hidden



https://www.youtube.com/watch?v=XkoeF-xXo2o



Binding - correct answer ✔✔An association between an entity and an attribute, such as between a
variable and its type or value, or between an operation and a symbol



Binding time - correct answer ✔✔The time at which a binding takes place



Static binding - correct answer ✔✔A binding is static if it first occurs before runtime and remains
unchanged throughout program execution



Dynamic binding - correct answer ✔✔A binding is dynamic if it first occurs during execution or can
change during execution of the program

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.
BravelRadon Havard School
View profile
Follow You need to be logged in order to follow users or courses
Sold
876
Member since
4 year
Number of followers
540
Documents
42128
Last sold
2 days ago
EXAM HUB

Welcome to Exam Hub Are you looking for high-quality, exam-ready notes, past papers, Test Banks, and well-researched study materials to boost your grades? You’re in the right place! I create and upload detailed, easy-to-understand, and well-structured documents across multiple subjects. All my materials are designed to help you study , save time, and excel in your coursework and exams! On this page NURSING EXAMS,STUDY GUIDES,TESTBANKS AND QUALITY EXAMS IS THE KEY TO STUDENTS CAREER EXCELLENCE, you find all documents, package deals, and flashcards offered by BravelRadon (EXAM HUB STORES!)....kindly recommend a friend for A+ GARANTEEd either you are a first-year student or final-year graduation! best of luck!

Read more Read less
3.5

154 reviews

5
56
4
30
3
32
2
8
1
28

Recently viewed by you

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

Frequently asked questions