Component 12 - Key Definitions Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Primitive data types, integer, real/floating point, character, string and Boolean.

A

Data types have a significant effect on the compilation of a program. Different data types require different amounts of memory, methods of processing and so forth. Incorrect data type, e.g. integer when you need real, can cause significant logic errors in a program.
Integer = a whole number
Real = a number with fractional parts Character = a single letter, number or symbol String = zero or more characters
Boolean = true or false

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

Represent positive integers in binary

A

See the notes hand out in the lesson folder for methods

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

Use of sign and magnitude and two’s complement to represent negative numbers in binary.

A

See the notes hand out in the lesson folder for methods

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

Addition and subtraction of binary integers.

A

See the notes hand out in the lesson folder for methods

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

Represent positive integers in hexadecimal

A

See the notes hand out in the lesson folder for methods

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

Convert positive integers between binary hexadecimal and denary.

A

See the notes hand out in the lesson folder for methods

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

Representation and normalisation of floating point numbers in binary.

A

See the notes hand out in the lesson folder for methods

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

Floating point arithmetic, positive and negative numbers, addition and subtraction.

A

See the notes hand out in the lesson folder for methods

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

Bitwise manipulation and masks: shifts, combining with AND, OR, and XOR

A

Shifting allows us to quickly perform integer division and multiplication, logical shifts ignore all sign bits and simply insert zeroes as necessary, arithmetic shifts preserve the sign bit.
Masking is simply a method of applying a Boolean expression, usually to a register, in order to explore the state of individual bits, rather than changing the entire value stored. AND masks are used to check whether a bit is on or off, OR is used to set a bit and XOR masks are often used as a form of encoding/encryption

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

How character sets (ASCII and UNICODE) are used to represent text

A

Text in a computer is represented as numerical data. There are two standards – ASCII and UNICODE, and both do the same thing, which is to assign a unique numeric value to each character that the computer is to represent or store.
ASCII is actually now part of the UNICODE standard. ASCII is traditionally a 7 bit standard, which can also be represented in 8 bits per character. Obviously, the more bits per character a standards has, the more symbols it can represent, however there is the storage implication meaning it will take up more space to store each character.
ASCII is limited to 127 characters, whereas UNICODE (depending on which version is used) is a 16 bit standard and can store every printable character in the known world. Even languages that are “extinct” are available in Unicode.
These standards are essential, as without them, computers and devices from different manufacturers could not easily communicate.

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