NEW 1.4.1 Data Types

Quiz
•
Computers
•
1st Grade
•
Medium
Matt Hunt
Used 8+ times
FREE Resource
67 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
In floating point representation what is the purpose of the mantissa?
Stores the actual value
Tells you if the number is using two's complement or sign and magnitude
Stores the position of the binary point
Tells you know if the number is negative or positive
Answer explanation
In floating point binary representation the mantissa is the bits representing the number. The larger the number of bits used for the mantissa the greater the precision of the number that can be stored.
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
How would you store the base-10 denary number -55 using two's complement in 8-bits?
0101 0111
0011 0111
1100 1001
1010 0100
Answer explanation
Two's complement is a method in computing of being able to store positive and negative numbers. The most significant bit (left-most bit) represents the negative value of the place. E.g. If there are 4 bits, each bit place is: -8 4 2 1. If there are 5 bits, each bit place is: -16 8 4 2 1.
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is the hexadecimal number 20 in binary?
0000 0010
0010 0000
0001 0000
0001 0100
Answer explanation
To convert a two digit hexadecimal number into binary, take each digit in turn and convert it into a 4 bit nibble. E.g. 20 = 0010 (2) 0000 (0). The number is 0010 0000. Remember in hexadecimal, 10 = A, 11 = B, 12 = C, 13 = D, 14 = E, 15 = F.
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is the number 6 in binary?
0000 0110
0000 1010
0011 1111
0000 0111
Answer explanation
The number 6 in binary is represented as 0*8 + 1*4 + 1*2 + 0*1, or 0110.
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
In this line of code: FOR counter = 1 to 10, what data type should counter be declared as?
Integer
String
Boolean
Real
Answer explanation
Integers are whole numbers. E.g. 6 is an integer. Integers use less memory than storing numbers with decimal places so a programmer should use an integer if a variable or constant will always be a whole number.
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is the binary number 0011 0100 in hexadecimal?
34
24
38
52
Answer explanation
To convert a binary number into hexadecimal, split the number into two nibbles, starting from the right. Change each nibble into the denary equivalent, e.g. 0011 = 3. 0100 = 4. Change each digit into hexadecimal. Remember in hexadecimal, 10 = A, 11 = B, 12 = C, 13 = D, 14 = E, 15 = F.
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is the result of binary left shifting 0100 0010 one digit?
0010 0010
1000 0100
0010 0001
0100 0001
Answer explanation
Binary shift operations are used in system programming when doing manipulations to either access registers, or write a particular bit which has a specific use. Using a left shift also has the effect of multiplying a number by multiples of 2.
Create a free account and access millions of resources
Similar Resources on Wayground
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
addition

Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences

Quiz
•
1st - 3rd Grade
20 questions
Addition and Subtraction facts

Quiz
•
1st - 3rd Grade
20 questions
Place Value

Quiz
•
KG - 3rd Grade
10 questions
Exploring Properties of Matter

Interactive video
•
1st - 5th Grade
10 questions
Odd and even numbers

Quiz
•
1st - 2nd Grade
10 questions
Exploring the 5 Regions of the United States

Interactive video
•
1st - 5th Grade
7 questions
Parts of Speech

Lesson
•
1st - 12th Grade