Programming Languages and Compilers quizzes
How programming languages express ideas and how compilers turn code into instructions a computer can run.
1 quiz
27 questions
Quizzes in this topic
Try a question
From Programming Languages and Compilers: Programming paradigms · Imperative and Declarative Styles
Why is x = x + 1 valid in imperative code, though false as a math equation?
- Here = means store a new value
- The compiler silently rewrites it as x + 1
- Imperative code ignores mathematical rules
Show the answer
Answer: Here = means store a new value
In imperative languages = is assignment: compute the right side, then overwrite the variable's memory with it.
A few questions at a time, before your apps
BrainTok asks a few questions from quizzes like these before the apps you choose open, so your screen time turns into learning. For iPhone.
Join the beta