Save
Computer Science
CS 1.4
1.4.1
Save
Share
Learn
Content
Leaderboard
Learn
Created by
Salima Hassan
Visit profile
Cards (52)
What are the primitive data types listed in the OCR Computer Science A Level specification?
Integer
,
Real
,
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 values can a Boolean data type take?
True
and
False
View source
How do computers represent whole numbers?
Using
binary
View source
What is a bit?
A single
binary
digit
View source
How many bits are in a byte?
Eight
bits
View source
What does the least significant bit represent in a binary number?
The value of
1
View source
What is the first step to convert a decimal number to binary?
Find the largest
power of two
smaller than the number
View source
What are the four rules for binary addition?
0 + 0 = 0, 0 + 1 = 1, 1 + 0 = 1, 1 + 1 =
10
View source
How does two's complement simplify binary arithmetic?
It allows
subtraction
to be performed as addition of a
negative number
View source
How do you convert the binary number 0111 to two's complement?
Flip the bits and add one to get
1001
View source
What is hexadecimal?
A
base 16
number system
View source
What characters are used in hexadecimal to represent values 10 to 15?
A to F
View source
How do place values in hexadecimal work?
They start with \(
16
^0\) and go up in
powers of 16
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 from decimal to binary?
Find the largest
power of two
smaller than the number.
Write out
place values
in powers of two.
Place 1s and 0s to sum to the decimal number.
View source
What are the steps for converting from binary to decimal?
Identify the
place values
of each bit.
Multiply
each bit by its place value.
Sum
the results to get the decimal equivalent.
View source
What are the rules 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
as a binary number.
View source
What is the significance of leading zeros in binary representation?
They do not affect the value of the number.
They are used to represent a whole number of
bytes
.
View source
What is the process of normalizing floating point numbers in binary?
Adjust the binary number to fit the format.
Ensure the leading digit is 1.
Shift the
binary point
to the right.
View source
What are the operations that can be performed on floating point numbers?
Addition
Subtraction
Handling
positive and negative numbers
View source
What is bitwise manipulation?
Operations that directly manipulate bits.
Includes shifts and combining with
AND
,
OR
, and
XOR
.
View source
How are character sets used to represent text?
ASCII
: Represents characters using
7 bits
.
Unicode
: Supports a wider range of characters.
View source
What is the minimum number of bits required to represent -12 in two's complement?
Five
bits
View source
What base is hexadecimal?
Base 16
View source
Which 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 a binary nybble?
A nybble is four
bits
, or half a
byte
View source
What is one method to convert from hexadecimal to decimal?
Convert to
binary
first, then to decimal
View source
What are the two parts of floating point numbers in binary?
Mantissa
and
exponent
View source
What does the mantissa represent in floating point notation?
The
significant
digits of the number
View source
How is the binary point treated in the mantissa?
It is placed after the most
significant
bit
View source
How do you convert the exponent in floating point notation to decimal?
Using the
method
explained earlier
View source
What happens to the binary point when combining the mantissa and exponent?
It is moved according to the
exponent
value
View source
What is the purpose of normalisation in floating point numbers?
To provide maximum precision for a given number of
bits
View source
How do you normalise a floating point number?
Adjust the
mantissa
to start with 01 or 10
View source
What must be done before adding floating point binary numbers?
The
exponents
must be the same
View source
How do you perform floating point addition?
Add the
mantissas
after ensuring the
exponents
are the same
View source
See all 52 cards