wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

PIF-Quiz 3

Total questions: 15

Worksheet time: 5mins

Name
Class
Date
1.
What is an algorithm?
a)
A type of programming language
b)
A set of rules for writing code
c)
A step-by-step procedure for solving a problem
d)
A visual representation of a program
2.
Which of the following is NOT a basic flowchart symbol?
a)
Process
b)
Decision
c)
Variable
d)
Start/End
3.
What is the purpose of the printf function in C programming?
a)
To read input from the user
b)
To display output on the console
c)
To perform calculations
d)
To declare variables
4.
What is the correct way to declare an integer variable named "count" in C?
a)
variable int count;
b)
int count;
c)
integer count;
d)
count = int;
5.
Which data type is used to store a single character in C?
a)
int
b)
float
c)
char
d)
string
6.
What is the result of the expression 10 % 3 in C?
a)
3
b)
1
c)
0
d)
10
7.
Which operator is used to compare if two values are equal in C?
a)
=
b)
==
c)
!=
d)
>
8.
What is the purpose of the if statement in C?
a)
To repeat a block of code
b)
To execute code based on a condition
c)
To declare variables
d)
To define functions
9.
What is Arduino?
a)
A programming language
b)
A type of microcontroller
c)
An open-source electronics platform
d)
A software development tool
10.
Which of the following is NOT a common type of Arduino board?
a)
Arduino Uno
b)
Arduino Nano
c)
Arduino Python
d)
Arduino Mega
11.
What is the purpose of the Arduino IDE?
a)
To design electronic circuits
b)
To create 3D models
c)
To write and upload code to Arduino boards
d)
To analyze data from sensors
12.
What is the function of the pinMode function in Arduino?
a)
To read the value of a pin
b)
To write a value to a pin
c)
To configure a pin as input or output
d)
To delay the execution of a program
13.
Which function is used to turn an LED on in Arduino?
a)
ledOn
b)
turnOn
c)
outputHigh
d)
digitalWrite
14.
What is a breadboard used for in electronics?
a)
To cut wires
b)
To solder components
c)
To create temporary circuits without soldering
d)
To store electronic components
15.
What is the purpose of a resistor when connecting an LED to an Arduino?
a)
To amplify the signal
b)
To filter out noise
c)
To limit the current flowing through the LED
d)
To increase the voltage