c Flashcards

1
Q

What is a program

A

A program is a computer program that consists of instructions executing one at a time

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

Input

A

A program gets data from a file,keyboard,touchscreen, network, etc.

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

Process

A

A program performs computations on that data such as adding two values like x+y

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

Output

A

A program that puts data somewhere such as to a file, screen or network.

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

Variables

A

Programs use these to refer to data like x

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

Computational Thinking

A

creating a sequence of intstructions to solve a problem

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

Algorithm

A

a sequence of instructions that solve a problem

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

Python interperter

A

A computer program that executes code written in the python language

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

line

A

row of text

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

prompt

A

the interactive interpreter displays a prompt in whihch indicates the interpreter is ready to acccept the code.

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

statement

A

program instruction

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

Expressions

A

code that return a value when evaluated

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

assignment

A

a new variable is created by performing an assignment using the = symbol

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

print()

A

displays variables or expression values

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

comments

A

done by which are optional but helps explain the code

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

string literal

A

text enclosed in quotes

17
Q

to keep the output of a print statement on the same line seperated by a space

A

end = ‘ ‘

18
Q

to keep the output of a print statement on the same line seperated by a space

A

end = ‘ ‘

19
Q

Newline character

A

\n

20
Q

whitespace

A

space,tab, or newline

21
Q

type

A

determines how a value can behav

22
Q

Syntax error

A

The program contains invalid code that cannot be understood

23
Q

IndentationError

A

The lines of the program are not porperly indented

24
Q

ValueError

A

Invalid value is used-can occur if giiving lettters to int()

25
Q

NameError

A

The program tries to use a vairbale that does not exsist

26
Q

TypeError

A

An operation uses incorrect types can occur if adding an integer to string

27
Q

logic errors

A

Did not behave as intended so this is also known as a bug

28
Q

Switchs

A

controls whether or not the electricity flows through the wire

29
Q

Bits

A

binary digits 8 bits in a byte

30
Q

Processors

A

process aka execute a list of desired calculations

31
Q

instructions

A

each calculation in the processor

32
Q

memory

A

Can store a series of thousands of adressed locations, the instructions operate on data as well.

33
Q

machine instructions

A

written in 1s and 0s

34
Q

Executable program

A

a sequence of machien instructions together to form an executable program