Save
1.4.1 Data types
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Dami
Visit profile
Cards (144)
What are the primitive data types mentioned in the OCR Computer Science A Level
specification
?
Integer, Real /
floating point
, Character,
String
, Boolean
View source
Why is it essential to use the correct data type when writing a program?
To ensure that the right
operations
can be
performed
on the data
View source
What is an integer?
A whole number that cannot have a
fractional
part
View source
What are real numbers used for?
Measuring things
View source
What is a character in computer
science
?
A single symbol used
by
a computer
View source
What values can a Boolean data type take?
True
and
False
View source
How do computers represent positive integers?
Using
binary
View source
What is a
bit
in binary?
A single
binary
digit
View source
What is a
byte
?
A
combination
of
eight binary digits
View source
What is a nybble?
Half
a byte, which is
four
bits
View source
What does the least significant bit represent in a binary number?
The value of
1
View source
How do you convert the binary number
1101
to
decimal
?
By calculating \( (8 \times 1) + (4 \times 1) + (2 \times 0) + (1 \times 1) =
13
\)
View source
What is the first step in converting a decimal number to binary?
Find the
largest
power of
two smaller
than the number
View source
How would you represent the decimal number 47 in binary?
By writing it as \(
00101111
\)
View source
What are the four rules for binary addition?
0 + 0 =
0
, 0 + 1 = 1, 1 + 0 = 1, 1 + 1 =
10
View source
What is the result of adding the binary numbers 1011 and 1110?
11001
View source
What is sign magnitude representation in binary?
A method where a leading 1 indicates a
negative
number and a leading 0 indicates a
positive
number
View source
How do you convert a sign magnitude binary number to decimal?
By noting the
most significant
bit, remembering the sign, and converting the remaining bits to
decimal
View source
What is two's complement in binary?
A method that makes the most significant bit
negative
and simplifies binary arithmetic with
negative
numbers
View source
How do you convert a positive binary number to two's complement?
By
flipping
all bits and
adding one
View source
What is hexadecimal?
A
base 16 number system
that uses
digits 0-9
and letters A-F
View source
What does the hexadecimal number 4E7F represent in decimal?
20095
View source
What are the methods for representing negative numbers in binary?
Sign
Magnitude
Two's
Complement
View source
What are the key operations involved in floating point arithmetic?
Addition
and
subtraction
Handling
positive
and
negative
numbers
View source
What are the key operations in bitwise manipulation?
Shifts
Combining with
AND
, OR, and
XOR
View source
How are character sets used to represent
text
?
ASCII
Unicode
View source
What is the process for converting between binary, hexadecimal, and denary?
Represent the number in
binary
Convert binary to
hexadecimal
or
denary
as needed
Use
place
values for
conversion
View source
What is the representation and
normalization
of floating point numbers in
binary
?
Representation
involves storing the sign, exponent,
and mantissa
Normalization adjusts
the
mantissa
to fit within a specific range
View source
What are the steps for binary
subtraction
using two's complement?
Convert the number to be
subtracted
to two's
complement
Add the two's
complement
to the
original
number
Read
the
result
View source
What is the significance of leading zeros in binary representation?
Leading
zeros do not affect the value of the
number
They are used to represent a whole
number
of
bytes
View source
What is the process for converting hexadecimal to
decimal
?
Identify the
place
values in powers of
16
Multiply each
digit
by its place value
Sum the results to get the decimal equivalent
View source
What is the minimum number of bits required to represent -12 in two's complement?
Five
bits
View source
What is the result of adding the two's complement numbers for -12?
The result is
11100
View source
How can you verify the calculation of -16 + 8 + 4?
By checking that
-16
+
8
+ 4 equals -4
View source
What base is hexadecimal?
Base
16
View source
What characters are used in hexadecimal to represent values 10-15?
F
View source
What are the place values in hexadecimal?
Starts with
1
(16<sup>0</sup>)
Increases
in powers of 16
View source
What is the decimal equivalent of the hexadecimal number 4E7F?
20095
View source
How do you convert hexadecimal digits to decimal?
By
multiplying
each digit by its
place value
and summing the results
View source
What is the binary equivalent of the hexadecimal digit B?
1011
View source
See all 144 cards