NEW
Font size
S
M
L
XL
WorksheetsAQA GCSE 3.2.1 - Data types
Total questions: 20
Worksheet time: 7mins
Name
Class
Date
1.
1 What is the short form of "Integer"?
a)
INT
b)
CHAR
c)
STR
d)
BOOL
2.
2 What are the numerical values of the 2 boolean values?
a)
1 and 0
b)
-1 and 1
c)
1 and 2
d)
Any numbers
3.
3 How much memory is taken up by a Character?
a)
1 byte
b)
1 bit
c)
4 bits
d)
8 bits
4.
4 What's another name for a float?
a)
real
b)
Their isnt
c)
nibble
d)
byte
5.
5 Which one is a boolean?
a)
false
b)
While
c)
and
d)
if
6.
6 Which of these isn't an integer?
a)
66.6
b)
69
c)
0
d)
-999
7.
7 Which of these will take up more memory
a)
all numbers from 1 to 5
b)
10 boolean questions
c)
3.141
d)
the alphabet
8.
8 "Fred" is an example of which data type?
a)
String
b)
Char
c)
Boolean
d)
Float
9.
9 What is the purpose of datat types?
a)
To store data
b)
So that the compiler / interpreter knons the intention of the data
c)
Do display the data
d)
So that the user can see the difference
10.
10 Which is an example of a float?
a)
8.54
b)
"bruh"
c)
6
d)
true
11.
11 Can an integer and float be added together?
a)
Yes
b)
Under certain circumstances
c)
No
d)
If you convert one to the other
12.
12. What data type is [a = "23"]
a)
String
b)
Float
c)
character
d)
Integer
13.
13 A boolean True and a boolean False add up to what?
a)
true
b)
Syntax error
c)
false
d)
Nothing
14.
14 How could we convert to an integer in Python?
a)
You cannot
b)
Using a class
c)
You cannot
d)
Using addition
15.
15 What is a benefit of declaring a constant?
a)
Code is easier to read and edit because the constant's identifier will be used instead of some number
b)
It makes a constant point for all later coding to fit around.
c)
Easier to find the base level of code
d)
Makes a pathway so you can return to a constant point
16.
16 How are data types stored in Python?
a)
.int()
b)
Through variables
c)
Using the internet
d)
Using a function
17.
17 How would you store the string "YSG" in python?
a)
var1 = "YSG"
b)
dim variable1 to "YSG"
c)
python.vartiable(YSG)
d)
print("YSG")
18.
18 What data type stores music?
a)
.flac
b)
.mp4
c)
.pages
d)
.gokul
19.
19 What are the first three branches of the data type tree
a)
Numbers, Characters, Logical
b)
Boolean, Integers, Characters
c)
Characters, Boolean, Numbers
d)
Characters, Docs, Integers
20.
20 Which Data type can take up the most memory
a)
String
b)
Boolean
c)
Integer
d)
Float
Reset
