NEW
Font size
WorksheetsKS3 Data Types
Total questions: 16
Worksheet time: 8mins
Which of the following represents labels that represent values in computer and that can be changed during program execution?
Variables
Constants
Data types
Which of the following is FALSE?
Variable declaration is done at the start of the program
Variable declaration is important to allocate required memory space
Not initialising a variable result in an error-free output
All of the above
What symbol is used to assign values in Python?
=
==
←
Which of the following is NOT an integer?
3
-3.2
-3
0
Which of the following is a real number?
3
3.5
-4
All of the above
Which of the following data types is used to store several characters?
Character
String
Boolean
All of the above
Complete this sentence: A ………………… data type represents only two values.
Character
Integer
Boolean
All of the above
Which of the following statements is used to typecast a variable that holds string data type?
Variable_name=input(“Enter string value: ”)
Variable_name=Str(input(“Enter string value: ”))
Variable_name=String(input(“Enter string value: ”))
Variable_name=Chr(input(“Enter string value: ”))
How much memory is allocated for a Boolean variable?
1 bit
1 byte
2 byte
No limits
How much memory is allocated for a character variable?
1 bit
1 byte
2 byte
No limits
How much memory is allocated for a string variable?
1 bit
1 byte
2 byte
No limits
What is the output of this code in Python?
num=float(45)
print("num= ",num)
num=45
num=45.0
num=45.00
num=45.000
What is the output of this code in Python?
num=float(45)
print("num= %.3f“ %num)
num=45
num=45.0
num=45.00
num=45.000
What symbol is used to add comments in Python?
#
%
//
!
What happens when this Python program is executed?
mark= 62.5
subject=‘Maths’
print(subject + mark)
‘Maths 62.5’ is printed
'Maths + 62.5’ is printed
Type error occurs
Which of the following statement is CORRECT about dim statement?
Dim statement declares a variable only
Dim statement declares multiple variables of same data type only
Dim statement declares multiple variables of different data types
