wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Data Types

Total questions: 25

Worksheet time: 41mins

Name
Class
Date
1.

Which one is the correct way to spell for variable integer ?

a)

int

b)

Int

2.

Which data type suitable to use for "My name is Alia"

a)

float

b)

char

c)

double

d)

String

3.

Which one is the correct way to spell for the string data type?

a)

String

b)

string

4.

Which data type suitable for variable which have an information of 'A'?

a)

char

b)

float

c)

int

d)

string

5.

Which one is the correct way to spell double?

a)

douBle

b)

double

6.

What data type suit for "1500"?

a)

float

b)

int

c)

double

d)

char

7.

Which one is the correct way to spell for the float in the programming?

a)

float

b)

Float

8.

Choose correct data type to use for 1.9879

a)

float

b)

char

c)

double

d)

int

9.

Choose the correct way to write integer data types in Arduino Program

a)

integer

b)

int

10.

What data type suitable to use for 4.7634855700085538913945795021947592?

(a)  

11.

Choose the correct way to initialized character data types

a)

char

b)

character

12.

Choose the variables without any values

a)

int number =3;

b)

float shoes;

c)

float pi=3.142;

d)

douple pi;

e)

char alphabets;

13.

Choose variables with values

a)

string class = "6 Newton";

b)

double = 4.567901305;

c)

int x;

d)

char class = 'Z';

e)

float mass;

14.

What is the function of ( ) symbols ?

a)

Like the container to hold information

b)

Like a storage to keep data

c)

As the opening and closing for complete instructions

d)

To pause or separate instruction

15.

"Top separate instructions or pause the program"

Which symbols has the function as stated in the above statement?

a)

Bracket

b)

Curly bracket

c)

Semicolon

d)

Dot

16.

Which statement explain about the block-based coding?

a)

create a program by writing using the respective command available in programming language

b)

create a program by dragging and dropping blocks

17.

What is the advantages of code-based programming ?

a)

Prevents syntax errors

b)

No need to memorize any syntax

c)

Can create a complicated program with more functions

d)

Can control sensors

18.

Which are the two main structures in Arduino software?

a)

void setup ()

b)

void repeat ()

c)

void loop ()

d)

void main ()

19.

What type of programming language does Arduino® use?

a)

Python

b)

C++

c)

JavaScript

d)

HTML

20.

Which of these is NOT an Arduino® data type?

a)

boolchar

b)

int

c)

string

d)

double

21.

Which variable stores a number with decimals?

a)

myInt = 10

b)

myFloat = 3.14

c)

myString = "Hello"

d)

myChar = 'A'

22.

What is the purpose of declaring variables in an Arduino® program?

a)

To avoid using functions

b)

To store data that can be used in the program

c)

To make the program run faster

d)

To skip using loops

23.

Which of the following is true about "constants" in Arduino®?

a)

Constants can change their value during the program

b)

Constants are not allowed in Arduino®

c)

Constants are declared using the keyword "const"

d)

Constants are not allowed in Arduino®

24.

Which data type would you use to store the text "Arduino"?

(a)  

25.

Do these structure are compulsory to have in your program ?

a)

True

b)

False