APDR

Advanced Programming Concepts Lab

Algorithms, Programming, and Data Representation · Module 92313 · Chapter 7a

Predict how names bind, types dispatch, resources end, compiler stages flow, and recursive calls return. Each experiment isolates one rule from the advanced lecture.

How the lab works

  1. Predict. Choose an answer before the trace runs.
  2. Rate your confidence. A sure but wrong prediction marks an idea to revisit.
  3. Reveal. Follow names, runtime rules, resource ownership, compilation, or recursive returns.
  4. Explore. Open the sandbox at any time and change its input; generated challenges practise new values.

7.1 Names, objects, and aliases

Trace a=[1], b=a, and then mutate or rebind one name. The model distinguishes names from objects.

The traced rule appears here.

Explore the rule

7.2 Type checks and polymorphism

Decide whether a rule is checked before execution, at runtime, or through a shared interface.

The traced rule appears here.

Explore the rule

7.3 Abstraction and visibility

Compare a promised interface with implementation details and language-specific visibility rules.

The traced rule appears here.

Explore the rule

7.4 Ownership and resource lifetime

Follow an allocation or file through its owner and determine how cleanup happens.

The traced rule appears here.

Explore the rule

7.5 Compilation and SSA

Place a program transformation in the pipeline or select the value that reaches an SSA merge.

The traced rule appears here.

Explore the rule

7.6–7.7 Recursion, progress, and proof

Trace calls to a base case, identify the decreasing measure, and connect a recursive step to induction.

The traced rule appears here.

Explore the rule

Your results

Personal study lab based on the Chapter 7a guide and supplied “lecture7a.pdf”, written in my own words. Not an official FAU publication; check course details against the current notes. Made by Thanate Amornjiraporn (Focus).