10 Questions
What distinguishes an imperative programming language from a declarative programming language?
Emphasis on explicit control flow
In non-strict functional languages, how are the same results as control flow statements achieved?
Functions and language constructs
What are the only control flow instructions available for some CPUs at the machine language level?
Conditional or unconditional branch instructions
At the level of machine language or assembly language, how do control flow instructions usually work?
By altering the program counter
How do interrupts and signals alter the flow of control?
In a way similar to a subroutine
What is control flow in computer science?
The order in which individual statements or function calls of an imperative program are executed
What distinguishes an imperative programming language from a declarative programming language?
Emphasis on explicit control flow
How are interrupts and signals related to control flow?
They can alter the flow of control similar to a subroutine
In non-strict functional languages, how are the same results as control flow statements achieved?
Functions and language constructs
How do control flow instructions usually work at the machine language level?
By altering the program counter
Test your knowledge of control flow in computer programming with this quiz. Explore the order of execution of statements and function calls, and distinguish between imperative and declarative programming languages.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free