Lec1: Programming Process Flashcards
What is the difference between an algorithm and a program?
An algorithm is a conceptual idea, a program is a concrete instantiation of an algorithm.
A computational mode of thinking means that everything can be viewed as a math problem involving numbers and formulas.
True
In the 5-step Programming process which is NOT involved in defining what the program is to do?
Compile code
One of the design tools used by programmers when creating a model of a program is:
Psuedocode
Finish the following statement: Distinguished gentleman drinking a beer: I don’t always make web applications, but when I do, _____”
I use assembly language
The purpose of validating the results of the program is
to determine whether the program solves the original problem.
Two truths and a lie: Identify the false statement.
Logic errors are fairly easy to find because the software that translates a program finds all the logic errors for you.
Declarative knowledge refers to statements of facts.
True
Imperative knowledge refers to ‘how to’ methods.
True
Which of the following is considered a low-level language?
Machine Language
Assembly Language
Approximately what percentage of your time will be spent troubleshooting your program?
70%
What kind of error is considered an example of a syntax error?
Omitting a word that a statement requires
Not all computer programs are ultimately converted to machine language.
False
The rules of the programming language constitute its ____.
Syntax
A ____ translate high-level language statements into machine code.
Compiler
Which one of the five steps of the 5-Step Programming Process is a student most likely to get discouraged?
Testing the program
What is rubber duck debugging?
A tactic where programmers verbally explain a broken code to a rubber duck in hopes of finding the solution by describing the problem
A sequential search is not an algorithm.
False
What is a sequential search?
Also known as a linear search is a method for finding a target value within a list. It checks each element of the list for the target value until a match is found or until all the elements have been searched.
Which of the following is NOT part of the programming process?
All of the above are part of the programming process (debugging, testing, design)
Keywords are:
Words that have a special meaning in the programming language.