Week 1 Flashcards

1
Q

What is data

A

Values without context or structure

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

What does information mean in relation to data?

A

values with context or structure

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

What is a “type”; give examples

A

a category for values (int, str, float, bool)

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

What does value mean in relation to python

A

objects / words / number - data that python works with.

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

What are compound values; give examples

A

combinations of data values (lists, tuples, dictionaries

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

Name 5 types of simple data used in python

A

int, str, float, bool, complex numbers, bytes

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

What is programming

A

a sequence of instructions that specify how to perform a computation

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

What are the characteristics of pseudo code

A
  1. written in simple English.
  2. describes how the program works.
  3. can not be executed by a computer.
  4. easy for humans to read and understand.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is an algorithm

A

step by step instructions that will solve a problem, when followed exactly.

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

What is meant by bugs in programming

A

programming errors

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

What is debugging

A

tracking down and correcting errors

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

What is a syntax error

A

errors in the structure of the program, this is checked first.

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

What is a run time error

A

errors that occur only when the program is running (i.e. after syntax errors have been checked)

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

What is a semantic error

A

you will not get the result you wanted, but the program will run.

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

What is meant by input

A

to get data from a keyboard, file or network

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

What is meant by output

A

displaying data on a screen, save to a file or send over the network.

17
Q

What is a conditional statement

A

the program checks for certain conditions and runs the code according.

18
Q

What is meant by repetition

A

performs an action repeatedly, usually with a variation.

19
Q

Name 5 basic operators (and the symbols)

A
  1. addition - +
  2. subtractions -
  3. multiplication *
  4. division /
  5. exponentiation (to the power of) **
20
Q

What is a “list” and name 2 features

A

[a collection of data] / always sits inside [] square brackets / first value is always recognised a 0.

21
Q

What is meant by “range” in relation to for x in range function. Name 2 features.

A

Makes the loop start from the lowest value and finish on the highest. However the highest value is always - highest value - 1.