Ch. 1 + 5 (functions) vocabulary Flashcards

1
Q

Program

A

A set of instructions the computer follows to perform a task.

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

Programmer

A

Person who can design, test and create computer programs.

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

Hardware

A

The physical components that make up a computer.

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

Central Processing Unit (CPU)

A

The part of the computer that actually runs the programs. The most important component of the computer.

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

Microprocessors

A

CPUs located on small chips.

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

Main memory (RAM)

A

Stands for Random Access Memory. Where a computer stores a program while it’s running, along with data used by the program.

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

Secondary storage

A

Can store data for long periods of time, even when the computer is off. For example, disc drive, solid state drive, flash drives, etc.

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

Input

A

Data the computer collects from people and other devices.

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

Input device

A

Component that collects data.

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

Output

A

Data produced by the computer for other people or devices.

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

Output device

A

Device used to format and present output.

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

Application software

A

Programs that make the computer useful for everyday tasks

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

System software

A

Programs that control and manage basic operations of the computer.

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

Byte

A

Just enough memory to store a small number or a letter. Consists of 8 bits.

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

Bit

A

Stands for binary digit. The smallest piece of information that can be stored.

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

Digital

A

Describes any device that stores data as binary numbers.

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

Assembly language

A

Language made up of mnemonics that is close in nature to machine language. Requires a good understanding of how the CPU works.

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

Algorithm

A

A set of well-defined logical steps that must be taken to perform a certain task.

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

Pseudocode

A

Fake code.

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

Flowchart

A

Diagram that graphically depicts the steps in a program.

21
Q

Function

A

Piece of prewritten code that performs a task.

22
Q

print function

A

Displays output on the screen.

23
Q

argument

A

Data given to a function.

24
Q

String

A

A sequence of characters that is used as data.

25
Q

String literal

A

String that appears in the actual code of the program.

26
Q

Comments

A

Notes of explanations within a program.

27
Q

End-line comment

A

Appears at the end of a line of code.

28
Q

Variable

A

Name that represents a value stored in the computer memory.

29
Q

Assignment statement

A

Used to create a variable and make it reference data.

30
Q

Garbage collection

A

Removal of values that are no longer referenced by variables.

31
Q

Data types

A

Categorized values in computer memory.

32
Q

Numeric literal

A

Number written in a program.

33
Q

Exponent operator **

A

Raises a number to a power.

34
Q

Multiline continuation character \

A

Allows to break a statement into multiple lines.

35
Q

Expression

A

An instruction that combines values and operators and always evaluates down to a single value.

36
Q

format()

A

The format function always returns a string value. Can be used to format the number, by expressing the number of decimal points, comma separators, etc.

37
Q

Name 5 built-in functions

A

print(), int(), float(), format(), input(), abs(), max(), min(), round(), str(), len(), type()

38
Q

abs(n)

A

Returns the absolute value of a function (always a positive number). The value is the same as the parameter n. The data type of the number is the same as the data type of the parameter.

39
Q

round(n)

A

Returns the integer value closest to the number n. When ‘round’ is used with one argument, as shown, the data type returned is int and the value is the closest integer value to n.

40
Q

round(n,d)

A

When used with two arguments, round(n,d) returns n rounded to d digits after the decimal points. The data type of the value returned is the same as the data type of n.

41
Q

len(s)

A

Returns the number of elements in the sequence s. A string is a sequence of characters, so len(s) can be used to find the number of characters in a string.

42
Q

type(x)

A

Returns the data type of object x.

43
Q

min(…)

A

Returns the minimum value among all those provided as arguments. The arguments may be two or more individual numbers (i.e. two or more expressions that evaluate to a numerical type). Alternately, a single “iterable” object (e.g. a list) may be provided as an argument.

44
Q

max(…)

A

Returns the maximum value among all those provide as arguments. The arguments may be two or more individual numbers (i.e., two or more expressions that evaluate to a numerical type). Alternately, a single “iterable” object (e.g. a list) may be provided as an argument.

45
Q

Software

A

Software are computer programs that make the computer useful.

46
Q

Compiler

A

A program that translates a high-level programming language into a separate machine language.

47
Q

Interpreter

A

A program that translates a high-level programming language into machine language and then executes it.

48
Q

List the steps in the software development cycle.

A
  1. Analyze. Define the problem and make sure it’s fully understood. Determine required inputs and outputs.
  2. Design a solution to the problem, i.e. an algorithm.
  3. Code. I.e. translate your design into the Python language. This step includes creating an effective user interface that obtains the required input from the user and presents output back.
  4. Test and debug to correct syntax and logic errors. How can you prove to yourself that the program works for all expected and unexpected inputs?
  5. Document. Documentation includes everything that describe the program, its purpose and how it operates. Full documentation is an important piece of every programming project.