Y9 computing end of year exams

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/52

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

53 Terms

1
New cards

What is a byte

8 bits

2
New cards

What is a nibble

4 bits

3
New cards

What is a bit

A binary digit, a 0 or a 1.

4
New cards

What does 1 mean in binary?

on

5
New cards

What does 0 mean in binary?

off

6
New cards

Binary system

a number system that has just two unique digits, 0 and 1, called bits

7
New cards

Define algorithm

A set of instructions for solving a problem

8
New cards

Define pseudocode

Pseudocode is a way of writing an algorithm in shorthand so that it is easy to understand

9
New cards

What is a variable?

A variable is a named value that can change when the program is run

10
New cards

What is a constant?

A Constant is a variable that dosen't change when a program is run

11
New cards

What is an integer?

A whole number that can be positive, negative, or zero

12
New cards

What is a string?

Used for text (eg ASCII, UNICODE characters)

13
New cards

What is a float?

In Python, use a float for positive or negative decimal numbers

14
New cards

What is a boolean?

True or False (used in code to detect whether something has happened or not)

15
New cards

What is a syntax error?

A syntax error is the incorrect use of a programming language element, such as a keyword, operator, or programmer-defined name.

16
New cards

What is a logical error?

Where a output is incorrect or unexpected

17
New cards

What is a procedure?

A Procedure is a named block of code which performs a task, but doesn't return a value back to the code which called it.

18
New cards

What is a function?

A Function is a named block of code which performs a task, and does return a value back to the code which called it. In Python a Function has to have the return keyword.

19
New cards

Count controlled loop

A loop that stops when a counter variable reaches a specified limit.

20
New cards
21
New cards

eg. for x in range (0,10):

22
New cards

print(x)

23
New cards

Condition controlled loop

Loop the program until a condition is satisfied.

24
New cards

eg. x=5

25
New cards

while x>=0:

26
New cards

print(x)

27
New cards

x = x -1

28
New cards

What is a linear search algorithm?

Goes through each item in list until the value is found.

29
New cards

Linear search alogrithm

30
New cards

Linear search algorthm pseudocode

input searchedForItem

31
New cards

found = false

32
New cards

For i = 0 to 7

33
New cards

If items[i] == searchedForItem

34
New cards

found = true

35
New cards

Output searchedForItem + " found at position" + i

36
New cards

End if

37
New cards

What is bubble sort?

This is a simple algorithm used for taking a list of unordered numbers and putting them into the correct order.

38
New cards

Multiply symbol python

39
New cards

Divide symbol python

/

40
New cards

To the power of symbol python

**

41
New cards

eg. 2**3 is 2x2x2

42
New cards

Whole number division symbol python

//

43
New cards

eg. 45//10 is 4

44
New cards

Modulo division symbol python

%

45
New cards

eg. 45%10 = 5

46
New cards

How are lists stored in python?

eg. certificate = ["U", "PG", "12A", "15", "18"]

47
New cards

How are items in lists numbered?

certificate = ["U", "PG", "12A", "15", "18"]

48
New cards

eg. "12A" is stored in location certificate[2]

49
New cards

How do you add something to a list?

eg. certificate.append("15")

50
New cards

How do you remove the last item in a list?

eg. certificate.pop()

51
New cards

What comes after if & else?

:

52
New cards

interger input

int(input("abcde"))

53
New cards

print

print("Hi")