wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Q3 Quiz Review

Total questions: 35

Worksheet time: 22mins

Name
Class
Date
1.

What is a string in C++?

a)

A sqeuence of numbers

b)

a keyword used to define a function

c)

a type of look used for iteration

2.

We can use sleep() to create

a)

a delay for out output

b)

a delay for our input

3.

What is the purpose of using cin in C++?

a)

To output data to the console

b)

To input data from the console

4.

What is the purpose of using 'break' in a loop in C++?

a)

To skip the current iteration and move to the next one

b)

To terminate the loop and exit its execution

5.

What does the 'endl' manipulator do in C++?

a)

Ends the program execution

b)

Ends the line and flushes the output buffer

6.

What does the '>>' operator do in C++?

a)

Performs bitwise AND operation

b)

Extracts input from the stream

7.

How many sides does a 7 Segment Display have?

a)

8

b)

6

c)

5

d)

7

8.

A seven-segment display can be used to display numbers only.

a)

True

b)

False

9.

Which electronic component is needed for the 7 segment display to work?

a)

resistors

b)

LEDs

c)

AND gates

d)

NOT gates

10.

Which component is used to restrict the flow of Current in the Circuit?

a)

LED

b)

Battery

c)

Resistor

d)

Jumper Wires

11.

Which of the following is a function?

a)

Sign in TinkerCAD account.

b)

c)

d)

e)

12.

What are the segments that we need to code as HIGH to display number 2?

a)

A,C,B,G,F

b)

B,C,G,F,G

c)

A,B, D,E,G

d)

A,B,C,D,E

13.

What is the correct function to display number 3 to the 7 Segment display?

a)

b)

c)

d)

14.

Debug the program. Explain what is wrong to the code.

4 lines
15.

Which of the following is the correct alphabet setup in 7 segment display

a)

b)

c)

d)

16.

What is seven Segment display

a)

Seven segment display is an electronic device which consists of 7 Light Emitting Diodes

b)

Seven segment display is an electronic device which consists of 14 LED that can be used to display infinite number of patterns

17.
What is an electrical circuit?
a)
lets you turn the energy on and off
b)
a closed path where where electricity flows
c)
stop electricity from flowing through
18.
A complete circuit has .......
a)
a motor in it
b)
a switch in it
c)
two bulbs in it
d)
no breaks in it
19.

(a)   is a sensor used to sense motion?

20.

PIR Sensor

a)

b)

c)

d)

21.

PIR sensors cannot sense motion.

a)

True

b)

False

22.

Look at the image. The sensor depicted is:

a)

An ultrasonic sensor

b)

A passive infrared sensor

c)

A LDR sensor

d)

A temperature sensor

23.

Look at the image. The output is:

a)

Ultrasonic sensor

b)

Passive infrared sensor

c)

LDR

d)

LED

e)

Arduino

24.

Look at the image. The input is:

a)

Ultrasonic sensor

b)

Passive infrared sensor

c)

LDR

d)

LED

e)

Arduino

25.

1 second equals to _____________.

a)

1000 millisecond

b)

1000 microsecond

26.

Identify the component name in the picture shown above

a)

Buzzer

b)

Sensor

c)

Servo Motor

d)

Photo Resistor

27.

Identify the component name in the picture shown above

a)

LCD Display

b)

Bread Board

c)

Potentiometer

d)

Remote

28.

Identify the component name in the picture shown above

a)

Photoresistor

b)

Diode

c)

Resistor

d)

Capacitor

29.

Identify the component name in the picture shown above

a)

Potentiometer

b)

Push Button Switch

c)

Stepper Motor

d)

Tilt Ball Switch

30.

The following piece of code tells me that...

a)

I have introduced a 2 in the variable led

b)

I have connected the LED component in the analog pin 2

c)

I have connected the LED component in the digital pin 2

d)

None is correct

31.

In which function do we indicate the initial instructions and if the components are INPUTS or OUTPUTS?

a)

Variables section

b)

void setup() function

c)

void loop (function)

d)

Comments

32.

In this project we have built a...

a)

Digital flute

b)

Traffic light

c)

Solar alarm

d)

Digital piano

33.

This piece of code...

a)

Moves a servo 90º

b)

Turn on a LED 90º

c)

indicates that the servo is in the digital pin 90

d)

None is correct

34.

delay(2000) means...

a)

wait 2000 seconds

b)

wait 2 seconds

c)

wait 2000 years

d)

turn on the Arduino 2000 seconds

35.

The buzzer is going to sound if...

a)

The distance detected by the ultrasonic sensor is equal 10cm

b)

The distance detected by the ultrasonic sensor is 9 cm

c)

The distance detected by the ultrasonic sensor is 11cm

d)

None is correct