Lec1: Programming Process Flashcards

1
Q

What is the difference between an algorithm and a program?

A

An algorithm is a conceptual idea, a program is a concrete instantiation of an algorithm.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A computational mode of thinking means that everything can be viewed as a math problem involving numbers and formulas.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In the 5-step Programming process which is NOT involved in defining what the program is to do?

A

Compile code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

One of the design tools used by programmers when creating a model of a program is:

A

Psuedocode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Finish the following statement: Distinguished gentleman drinking a beer: I don’t always make web applications, but when I do, _____”

A

I use assembly language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The purpose of validating the results of the program is

A

to determine whether the program solves the original problem.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Two truths and a lie: Identify the false statement.

A

Logic errors are fairly easy to find because the software that translates a program finds all the logic errors for you.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Declarative knowledge refers to statements of facts.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Imperative knowledge refers to ‘how to’ methods.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which of the following is considered a low-level language?

A

Machine Language
Assembly Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Approximately what percentage of your time will be spent troubleshooting your program?

A

70%

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What kind of error is considered an example of a syntax error?

A

Omitting a word that a statement requires

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Not all computer programs are ultimately converted to machine language.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The rules of the programming language constitute its ____.

A

Syntax

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

A ____ translate high-level language statements into machine code.

A

Compiler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Which one of the five steps of the 5-Step Programming Process is a student most likely to get discouraged?

A

Testing the program

17
Q

What is rubber duck debugging?

A

A tactic where programmers verbally explain a broken code to a rubber duck in hopes of finding the solution by describing the problem

18
Q

A sequential search is not an algorithm.

A

False

19
Q

What is a sequential search?

A

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.

20
Q

Which of the following is NOT part of the programming process?

A

All of the above are part of the programming process (debugging, testing, design)

21
Q

Keywords are:

A

Words that have a special meaning in the programming language.