Fictional Programming Language Logic Flashcards
7 cards from real Epic Skills Assessment practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 Fictional Programming Language Logic flashcards as text
In FictoScript, the statement `bind x := 42` followed by `bind x := 99` results in which outcome?
Answer: A compile error because bind is immutable once assigned
In FictoScript, `bind` declares an immutable variable; reassigning it is a compile-time error.
Which FictoScript operator returns the remainder after division?
Answer: mod
FictoScript uses the keyword `mod` as the modulo operator, not a symbol.
A FictoScript `when` block that lacks an `else` clause and whose condition is false will:
Answer: Do nothing and continue execution after the block
A `when` block with no `else` is a no-op when the condition is false; execution resumes after the block.
In FictoScript, the `spawn` keyword is used to:
Answer: Launch a concurrent execution thread
`spawn` initiates a lightweight concurrent task that runs alongside the main execution flow.
What does the FictoScript expression `[1, 2, 3] ++ [4, 5]` evaluate to?
Answer: [1, 2, 3, 4, 5]
The `++` operator in FictoScript concatenates two lists into a single flat list.
In FictoScript, a `maybe` type is designed to handle:
Answer: Values that may or may not be present (nullable values)
A `maybe` type represents an optional value that is either `some(value)` or `none`, preventing null reference errors.
Which FictoScript construct allows a function to call itself?
Answer: recur
FictoScript uses the `recur` keyword to explicitly perform a recursive call within a function.