Coding Test Flashcards
Why design a programming language?
To give a machine instructions
What is wrong with our language?
Implied
Contradictions
Words with multiple meanings
How to remove ambiguities?
Specific and limited syntax
Not many words
What happens when you reduce the number of commands?
Increase flexibility
Makes harder to use
Functions and abstraction
Functions take a list of commands and call it one thing
Are functions reusable?
Yes
Functions and the user
Functions allow the user to clean up the code
visually more pleasing and helpful
Function or loop? Repetition
Loop
Function or loop? Parameters
Function
Function or loop? Call
Function
Abstraction and teams
I can use Ferris’s code without knowing how it works
Can get blocks of code online
Algorithm
A precise sequence of instructions and processes that can be executed by the computer
Sequencing
is the application of each step of an algorithm in the order in which the statements are given.
Selection
uses a Boolean condition (a TRUE/FALSE condition) to determine which of two parts of an algorithm is used.
Iteration
the repetition of part of an algorithm until a condition is met for a specified number of times