Chp 1: Computer Programming Flashcards

1
Q

Computer: definition

A

Any device that stores and processes data.

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

algorithm

A

A sequence of steps that species how to solve a problem, with or without a computer.

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

bug

A

An error in a program.

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

processors

A

(or CPUs) perform simple calculations

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

memory

A

(or RAM) that temporarily stores information.

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

program

A

the sequence of instructions that specifies how to perform a computation on computer hardware.

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

input

A

Get data from the keyboard, a file, a sensor, or some other device.

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

output

A

Display data on the screen, or send data to a file or other device.

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

math

A

Perform basic mathematical operations like addition and division.

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

decision

A

Check for certain conditions and execute the appropriate code.

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

repetition

A

Perform an action repeatedly, usually with some variation.

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

programming

A

the process of breaking down a large, complex task into smaller and smaller subtasks

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

statement

A

a line of code that performs a basic action; specifies one step of an algorithm.

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

print statement

A

displays a message to the user

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

method

A

a named sequence of statements.

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

class

A

a collection of related methods; it is conventional to start with a capital letter.

17
Q

comment

A

A part of a program that contains information about the program but has no effect when the program runs.

18
Q

high-level language

A

A programming language that is designed to be easy for humans to read and write.

19
Q

low-level language

A

A programming language that is designed to be easy for a computer to run. Also called “machine language”.

20
Q

portable

A

The ability of a program to run on more than one kind of computer.

21
Q

interpreter

A

processes the program a little at a time, alternately reading lines and performing computations.

22
Q

compiler

A

reads the entire program and translates it completely before the program starts running; compiled programs often run faster than interpreted programs.

23
Q

Source code

A

A program in a high-level language, before being compiled.

24
Q

object code

A

The output of the compiler, after translating the program.

25
Q

Executable/ Object code

A

translated program language to a low-level language that is ready to run on specific hardware; is not portable.

26
Q

Virtual Machine

A

“imaginary” machine has the functionality common to desktops, laptops, tablets, phones, etc.

27
Q

byte code

A

A special kind of object code used for Java programs. Byte code is similar to object code, but it is portable like a high-level language.

28
Q

strings

A

A sequence of characters that appear in quotation marks; the primary data type for text.

29
Q

Newline (\n)

A

A special character signifying the end of a line of text. Also known as \line ending”, \end of line” (EOL), or \line break”.

30
Q

escape sequence

A

two characters of source code that represent a single character when used inside a string.

31
Q

Computer science

A

the science of algorithms, including their discovery and analysis; scientific and practical approach to computation and its applications.

32
Q

debugging

A

The process of finding and removing errors.