Save
Computer science OCR A Level
1.4.1 Data types
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Aanya Sinha
Visit profile
Cards (92)
What are the primitive data types listed?
Integer
,
Real
,
Character
,
String
,
Boolean
View source
How are positive integers represented in binary?
Using
base 2
with
bits
View source
What methods are used to represent negative numbers in binary?
Sign magnitude
and
Two’s complement
View source
What are the two methods for binary addition?
Binary addition and
Binary subtraction
View source
How are positive integers represented in hexadecimal?
Using
base 16
with
digits
and
letters
View source
What is the process to convert positive integers between binary, hexadecimal, and denary?
Use specific conversion methods for each
View source
How are floating point numbers represented in binary?
Using
representation
and
normalization
View source
What operations can be performed with floating point arithmetic?
Addition and subtraction of
numbers
View source
What are bitwise manipulation and masks used for?
Shifts and combining with
AND
,
OR
, XOR
View source
How are character sets used to represent text?
Using
ASCII
and
Unicode
standards
View source
What is an integer?
A whole number without a
fractional
part
View source
Why are integers useful?
For
counting
things
View source
What is a real number?
A number that can have a
fractional
part
View source
How are real numbers represented?
Using
floating point
representation
View source
What is a character in computing?
A
single
symbol
used by a
computer
View source
What values can a Boolean data type take?
True
and
False
View source
What is the least significant bit in binary?
The bit
furthest
to the right
View source
How do you convert binary to decimal?
Multiply each
bit
by its
place value
View source
What is the decimal equivalent of binary 1101?
13
View source
What is the first step to convert decimal to binary?
Find the largest
power of two
smaller
than the number
View source
How do you represent the decimal number 47 in binary?
As
00101111
View source
What are the rules for binary addition?
Four simple rules to remember
View source
What is the result of adding binary 1011 and 1110?
11001
View source
What is sign magnitude representation?
A method to represent
negative numbers
View source
How does two's complement work?
Flipping
bits
and adding one
View source
What is the two's complement of binary 00000111?
11111001
View source
How is subtraction performed using two's complement?
By adding a
negative
number
View source
What is the hexadecimal representation of decimal 20095?
4E7F
View source
What characters are used in hexadecimal?
0-9 and
A-F
View source
How do place values work in hexadecimal?
Start with 1 and go up in powers of
16
View source
What is the decimal equivalent of hexadecimal 4E7F?
20095
View source
What are the main data types in programming?
Primitive data types
:
Integer
Real / floating point
Character
String
Boolean
View source
What are the methods for representing negative numbers in binary?
Sign magnitude
Two’s complement
View source
What are the steps for converting between binary, hexadecimal, and denary?
Identify the
number system
Use appropriate
conversion methods
Verify the conversion
View source
What are the rules for binary addition?
0 + 0 + 0
= 0
0 + 0 + 1 = 1
0 + 1 + 1
=
10
1 + 1 + 1 =
11
View source
What is the process for converting decimal to binary?
Find the largest
power of two
smaller than the number
Write
place values
in
powers of two
Place 1s and 0s to sum to the decimal number
View source
What is the process for converting binary to decimal?
Identify the
least
and
most
significant bits
Multiply each bit by its
place value
Sum the results to get the decimal value
View source
What is the process for converting binary to hexadecimal?
Group
binary digits
into sets of four
Convert each group to its hexadecimal
equivalent
Combine the
hexadecimal digits
View source
What is the process for converting hexadecimal to binary?
Convert each hexadecimal
digit
to a 4-bit binary
equivalent
Combine the binary groups
View source
What is the process for converting hexadecimal to decimal?
Multiply each digit by its
place value
Sum the results to get the decimal value
View source
See all 92 cards