Algorithms & Introductions to Python {3} Flashcards

1
Q

Define:

Pattern recognition?

A

Identification of common characterisitics among different problems and within the same problem.

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

Define:

Decomposition?

Example?

A

The breaking down of a complex problem into a series of smaller or simpler platforms

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

Define:

Algorithms?

3 building blocks?

A

Sequences of instructions used to solve problems or perform tasks in a structured manner (written in a human language or by a human)

Sequencing, selection, & iteration

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

Define:

Abstraction?

A

The generalization of a problem so that a solution can be applied to different specific problems

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

Define:

Computational thinking?

A

The process by which a problem is formulated and solved using a computer

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

Define:

Euclid Algorithm?

A

Oldest algorithm used to find the Greatest common divisor (GCD) of a number

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

Define:

Sequencing?

A

The order in which the steps of an algorithm executed

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

Define:

Selection?

A

Used to determine a different set of steps to execute based on a Boolean expression

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

Define:

Iteration?

A

When algorithms use repetition to execute steps a certain number of times or until a certain condition is met

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

Define:

Programming Language?

A

A language that humans learn to communicate with computers

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

Define:

Program?

A

A sequence of instructions written in a programming language that are designed to execute one at a time

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

Define:

Low-level languages?

A

Sometimes referred to as machine languages or assembly languages

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

Define:

Portable?

A

They can run on different kinds of computers with few or no modifications

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

Define:

Compiler?

A

A special type of computer program that translates programs wrriten in a higher-level programming language to the low-level languages that run directly on a computer

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

Define:

Source code vs. Binary Executable?

A

Source code: The input of a compiler
Binary executable: The output of a compiler

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

Define:

Interpreted programming language?

Example?

A

The instructions in its programs are translated and run by an **interpeter **

Python

17
Q

Define:

Interpreter?

A

A special type of binary executable

18
Q

Define:

Procedure?

Other name?

A

def hello_world ():
print(“Hello World!”)
hello_world ()
A special type of programming construct that continas a series of statements that perform a particular task (also called a subroutine)

19
Q

Define:

Procedure definition header?

A

Involves the keyword def followed by a unique name or identifier

20
Q

Define:

Body?

A

The contents of the procedure that consists of one or more lines of code that are indented by a constant amount (usually 4 spaces) under the procedure definition header

21
Q

Define:

Comment?

A

A computer program is text that is intended only for the human reader (has a hashtag in front of it)

Example: print(“hello world!”) #lets go

22
Q

Define:

Input? Output? Math and logic? Conditional execution? Repetition?

A

Input: Get data from the keyboard, a file, or some other device (uses int)
Output: Display data on the screen (uses print)
Math & logic: Perfrm basic mathematical operations like and, or, not
Conditional execution: Check for certain introduction and execute the appropriate sequence of statements (uses if and else)
Repetition: Peform some action repeatedly, usually with some variation (uses for, in, while)