paper 2

0.0(0)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/189

flashcard set

Earn XP

Description and Tags

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

190 Terms

1
New cards

What is a variable?

a location in memory where an item of data is stored.

<p><span style="font-family: Calibri, sans-serif; color: rgb(0, 0, 0)">a location in memory where an item of data is stored.</span></p>
2
New cards

What is a constant?

a fixed value/variable which never changes + always written in uppercase

<p><span>a fixed value/variable which never changes + always written in uppercase</span></p>
3
New cards

What is “MOD” used for?

used to find remainder when dividing one interger by another

4
New cards

What is “DIV” used for?

used for integer division only

5
New cards

What is used when you need to calculate operations with priority?

BODMAS

<p>BODMAS</p>
6
New cards

What is “concatenating”?

means joining together

<p>means joining together</p>
7
New cards

What is “sequencing”?

Sequencing means "the order in which programmes are written". 

8
New cards

What is “len” used for in string manipulation?

used to calculate the length

9
New cards

What is “pos” used for in string manipulation?

used to find position of a character as it outputs the result of the position of character in string

10
New cards

What is “substring” used for in string manipulation?

used to extract a part of a string by typing beginning and ending position.

11
New cards

What is “ord” used for?

used to turn a string into a binary number, as it looks where it's in the ASCII table and brings back the binary equivalent of this character 

12
New cards

What is “selection”?

Selection is a programming construct that allows a program to run sequences of code depending on whether a condition evaluates to True or False.

includes if statement

<p><strong>Selection</strong><span style="font-family: Arial, Helvetica Neue, Helvetica, sans-serif; color: rgb(0, 0, 0)"> is a programming construct that allows a program to run sequences of code depending on whether a </span><strong>condition</strong><span style="font-family: Arial, Helvetica Neue, Helvetica, sans-serif; color: rgb(0, 0, 0)"> evaluates to True or False.</span></p><p><span style="font-family: Arial, Helvetica Neue, Helvetica, sans-serif; color: rgb(0, 0, 0)">includes if statement</span></p>
13
New cards

What should you do if you use an “elif” or “else if”

needs to be ended with an “else” and afterwards an “endif”

14
New cards

What is a nested selection?

Nested selection is an if statement inside an if statement

15
New cards

What is a nested selection statement used for?

used for when there are more than 2 conditions

<p>used for when there are more than 2 conditions</p>
16
New cards
17
New cards
18
New cards
19
New cards
20
New cards
21
New cards
22
New cards
23
New cards
24
New cards
25
New cards
26
New cards

NOT (1) =

0

27
New cards

1 AND (NOT 1) =

0

28
New cards

1 OR ( 1 AND (NOT 0)) =

1

29
New cards

1 AND ((NOT 1) OR 1)=

1

30
New cards

What is a bit?

A single 1 or 0

31
New cards

What is a byte?

8 bits

32
New cards

How many bytes are in a kilobyte?

1024

33
New cards

How many kilobytes in a megabyte?

1024

34
New cards

Finish the sequence bytes, kilobytes......

Megabyte, gigabyte, terabyte, petabyte,

35
New cards

What numbers are used in binary?

1 and 0

36
New cards

What measurement comes after terabyte?

Petabyte

37
New cards

What type of data is held in a string?

Text or characters

38
New cards

What is an integer?

Whole numbers

39
New cards

What is a pixel?

The smallest element of an image - dots that make up an image on a screen

40
New cards

How many bits does ASCII use?

7/8 bits (either is right)

41
New cards

How many bits does Unicode use?

16/32 bits (either is right)

42
New cards

State a difference between ASCII and unicode

ascii uses 7 bits, unicode 16 bits. Asci can represent 127 characters, unicode can represent many more

43
New cards

What do we call the list of characters a computer can represent

Character set

44
New cards

Give an example of metadata stored with an image

Height, Width, Resolution, Colour depth, date it was produced

45
New cards

What do we call the smallest part of an image

A pixel

46
New cards

What is the correlation between colour depth, bits per pixel and file size?

The more colours we use, the more bits we need for each pixel, the larger the file size.

47
New cards

What do we call the process of turning analogue sound into digital?

Sampling

48
New cards

What is the connection between sample rate, quality of sound and file size?

The higher the sample rate, the better quality of file, the larger the file size

49
New cards

What two parts is an instruction split into?

The operator (instruction part) and the operand (the data part)

50
New cards

What type of language is Visual Basic?

A high level language

51
New cards

What language do machines understand?

Binary/Machine language

52
New cards

State two features of an IDE

Source code editor/error diagnostics and debugger/run-time environment/translator

53
New cards

A sequence is when...

Instructions are executed one after the other

54
New cards

0 AND 0

0

55
New cards

1 AND 0

0

56
New cards

1 OR 1

1

57
New cards

1 OR 0

1

58
New cards

0 OR 1

1

59
New cards

0 OR 0

0

60
New cards

0 XOR 1

1

61
New cards

1 XOR 1

0

62
New cards

1 XOR 0

1

63
New cards

0 XOR 0

0

64
New cards

1 NOT

0

65
New cards

0 NOT

1

66
New cards

1 NAND 1

0

67
New cards

1 NAND 0

1

68
New cards

0 NAND 1

1

69
New cards

0 NOR 1

0

70
New cards

1 NOR 1

0

71
New cards

0 NOR 0

1

72
New cards

1 AND (1 OR 0)

1

73
New cards

1 OR (1 AND 0)

1

74
New cards

0 OR (1 AND 0)

0

75
New cards

Convert the eight bit binary number: 10101100 into denary

172

76
New cards

Convert the eight bit binary number: 00110011 into denary

51

77
New cards

Convert the eight bit binary number: 00001111 into denary

15

78
New cards

Convert the eight bit binary number: 00110000 into denary

48

79
New cards

Convert the eight bit binary number: 10111001 into denary

185

80
New cards

Convert this denary number into 8 bit binary: 17

00010001

81
New cards

Convert this denary number into 8 bit binary: 25

00011001

82
New cards

Convert this denary number into 8 bit binary: 100

01100100

83
New cards

Convert this denary number into 8 bit binary: 67

01000011

84
New cards

Convert this denary number into 8 bit binary: 115

01110011

85
New cards

Convert this hex number to 8 bit binary: 15

00010101

86
New cards

Convert this hex number to 8 bit binary: 29

00101001

87
New cards

Convert this hex number to 8 bit binary: 38

00111000

88
New cards

Convert this hex number to 8 bit binary: AF

10101111

89
New cards

Convert this hex number to 8 bit binary: B5

10110101

90
New cards

What is contained in the meta data of an image?

The files size, author, date & time, resolution, colour depth

91
New cards

What number is this in denary? 0101

9

92
New cards

What number is this in denary? 1111

15

93
New cards

What number is this in denary? 0001

1

94
New cards

What number is this in denary? 0111

7

95
New cards

What number is this in denary? 1010

10

96
New cards

What number is this in 4 bit binary? 7

0111

97
New cards

What number is this in 4 bit binary? 13

1101

98
New cards

What number is this in 4 bit binary? 10

1010

99
New cards

What number is this in 4 bit binary? 2

0010

100
New cards

Convert this hex number to denary: C

12