Module checkpoint

Tcl fundamentals knowledge check

Answer every question from your current understanding. After submission, compare your reasoning with the explanation and revisit any weak concept.

5 QuestionsOne Answer eachImmediate ScoreDetailed Explanations
Read→Reason→Select→Review
Question 1 of 5With `set top fifo`, what do `puts "$top"` and `puts {$top}` print?
Question 2 of 5Why should expressions be written as `expr {$a + $b}` with braces?
Question 3 of 5Why is it `lappend tests tb_irq` and not `lappend $tests tb_irq`?
Question 4 of 5What does `catch {read_slacks $report} slacks` return when the file cannot be opened?
Question 5 of 5In `regexp {^path\s+(\S+)} $line -> name`, what is `->`?

Review every selection before submitting. You can retry after reading the explanations.