wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Arduino Coding

Total questions: 6

Worksheet time: 3mins

Name
Class
Date
1.

The type of the variable here is --------

char letter = 'a';

a)

Integer

b)

Float

c)

Character

d)

Boolean

2.

Mark the WRONG written codes.

a)

int X9=9;

b)

Int x9=9;

c)

serial.printLn(9600);

d)

void setup {

Serial.begin(9600);

}

3.

Which of the following is correct to write your name as a comment?

a)

/ Myname

b)

//Myname

c)

/*Myname

d)

<Myname>

4.

For the following code, which statement (s) will be executed? (Note: you can choose more than one)


int x=3;

int y=4;

if(x>y)

{ statement A;}

else {Statement B;}

Statement C;

a)

A

b)

B

c)

C

5.

for the following code, What is the right output?


for(int i=1;i<3;i++)

{Serial.begin(9600);

Serial.print("Hello");

}

a)

Hello

b)

HelloHello

c)

Hello

Hello

d)

Hello Hello

6.

Which function runs only once?

a)

setup

b)

loop