wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Embedded C Quiz

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which of the following is a valid data type in Embedded C for Arduino?

a)

int

b)

float

c)

char

d)

All of the above

2.

What is the range of int data type on Arduino Uno (16-bit microcontroller)?

a)

-32,768 to 32,767

b)

0 to 255

c)

-128 to 127

d)

0 to 65,535

3.

Which keyword is used to declare a constant variable in Embedded C?

a)

static

b)

fixed

c)

const

d)

define

4.

What is the output of the expression 5 + 3 * 2 in C?

a)

16

b)

11

c)

13

d)

10

5.

Which operator is used to compare two values in an if-statement?

a)

=

b)

==

c)

:=

d)

!=

6.

Which of the following is not a loop control structure in C?

a)

for

b)

do-while

c)

loop-until

d)

while

7.

What is the correct syntax to declare a function in Embedded C?

a)

void myFunction();

b)

function void myFunction();

c)

def myFunction():

d)

func myFunction()

8.

What is the purpose of return statement in a function?

a)

To stop a loop

b)

To exit the program

c)

To return a value to the caller function

d)

To declare a variable

9.

Which function is used to configure pin modes in Arduino UNO programs?

a)

pinSetup()

b)

configPin()

c)

setMode()

d)

pinMode()

10.

What type of function is setup() in Arduino programming?

a)

Interrupt routine

b)

User-defined function

c)

Library function

d)

Predefined function that runs once at startup