Data types Flashcards

1
Q

Primitive Data Types

A

“The basic data types provided by a programming language as building blocks. Most languages allow more complicated composite types to be recursively construction starting from basic types. E.g. char, integer, float, Boolean. As an extension a ‘string’ data type is constructed behind the scenes of many char data types.”

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

Integer

A

“A data type used to store positive and negative whole numbers

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

Real

A

“A data type used to store an approximation of a real number in a way that can support a trade-off between range and precision. A number is, in general, represented approximately to a fixed number of significant digits and scaled using an exponent.”

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

Floating Point

A

“A data type used to store an approximation of a real number in a way that can support a trade-off between range and precision. A number is, in general, represented approximately to a fixed number of significant digits and scaled using an exponent.”

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

Character

A

“A single alphanumeric character or symbol.”

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

String

A

“A sequence of alphanumeric characters and or symbols. e.g. a word or sentence.”

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

Boolean

A

“Used to store the logical conditions TRUE / FALSE. Often translated to On/Off, Yes/No etc.”

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

Binary

A

“Binary describes a numbering scheme in which there are only two possible values for each digit: 0 and 1. The term in computing refers to any digital encoding system in which there are exactly two possible states. E.g. in memory, storage, processing and communications, the 0 and 1 values are sometimes called “low” and “high”, respectively.”

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

Sign and Magnitude

A

“A method in computing of being able to store negative numbers as string of pure binary digits. It works by turning the MSB into a sign bit, where 0 represents a positive number and 1 represents a negative.”

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

Two’s Complement

A

“A method in computing of being able to store and represent floating point real numbers (both positive and negative) as a string of pure binary digits. Uses the concepts of two’s complements, mantissa and exponent.”

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

Hexadecimal

A

“A numerical system of notation which uses 16 rather than 10 as its base. The 16 Hex base digits are 0-9 and the letters A-F.”

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

Denary

A

“A numerical system of notation which uses 10 as its base. The 10 Decimal base digits are 0-9.”

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

Floating Point Arithmetic

A

“The mathematical process of performing simply calculations on more than one floating-point number stored in binary notation.”

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

Bitwise Manipulation

A

“The act of algorithmically manipulating bits or other pieces of data shorter than a word. Programming tasks that require a bit manipulation include low-level device control, error detection and correction algorithms, data compression, encryption algorithms, and optimisation.”

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

Shifts

A

“An operation that moves the bits held in a register, called the shift register, either to the left or the right. There are three different types of shift: arithmetic shift, logical shift and cyclic shift. They are distinguished by what happens to the bits that are shifted out of the register at one end and what is moved in to fill the vacant space at the other end.”

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

AND

A

“A logical operator used within a program. AND works by only returning TRUE if both values being compared are TRUE.”

17
Q

OR

A

“A logical operator used within a program. OR works by returning TRUE as long as either value being compared is TRUE.”

18
Q

XOR

A

“A logical operator used within a program. XOR stands for exclusive OR. It will return TRUE if the two items being compared are different.”

19
Q

Character Sets

A

“The set of symbols that may be represented in a computer at a particular time. These symbols, called characters, can be letters, digits, spaces or punctuations marks, the set includes control characters.”

20
Q

ASCII

“America Standard Code for Information Interchange”

A

A character set devised for early telecommunication systems but proved to be ideal for computer systems. ASCII codes use 7-bits giving 32 control codes and 96 displayable characters (the 8th bit is often used for error checking).”

21
Q

UNICODE

A

“Standard character set that replaces the need for all the different character sets. It incorporates characters from almost all the world’s languages. It is a 16-bit extension of ASCII.”