NEW
Font size
WorksheetsEmbedded C Quiz
Total questions: 10
Worksheet time: 5mins
Which of the following is a valid data type in Embedded C for Arduino?
int
float
char
All of the above
What is the range of int data type on Arduino Uno (16-bit microcontroller)?
-32,768 to 32,767
0 to 255
-128 to 127
0 to 65,535
Which keyword is used to declare a constant variable in Embedded C?
static
fixed
const
define
What is the output of the expression 5 + 3 * 2 in C?
16
11
13
10
Which operator is used to compare two values in an if-statement?
=
==
:=
!=
Which of the following is not a loop control structure in C?
for
do-while
loop-until
while
What is the correct syntax to declare a function in Embedded C?
void myFunction();
function void myFunction();
def myFunction():
func myFunction()
What is the purpose of return statement in a function?
To stop a loop
To exit the program
To return a value to the caller function
To declare a variable
Which function is used to configure pin modes in Arduino UNO programs?
pinSetup()
configPin()
setMode()
pinMode()
What type of function is setup() in Arduino programming?
Interrupt routine
User-defined function
Library function
Predefined function that runs once at startup
