wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Raspberry Quiz 2

Total questions: 12

Worksheet time: 4mins

Name
Class
Date
1.

How many 3.3V Power supply , 5V power supply GPIO pins does the Raspberry pi have

a)

2 , 2

b)

1 , 2

c)

3 , 3

d)

1 , 1

2.

GPIO pins are ______ and have _____ states

a)

analog , three

b)

digital , two

c)

digital, three

d)

analog , two

3.

The Python library imported to control GPIO pins is

a)

RPI.GPo

b)

RPi.GPIO

c)

RP.GPIo

d)

RPi.GPIN

4.

Why is a WHILE Loop used for LED Blinking?

a)

To repeat HIGH state

b)

To repeat LOW state

c)

To repeat both states

5.

Command to create a new directory:

a)

mkdir

b)

makedir 

c)

crdir

d)

newdir

6.

Choose the correct options(s)

a)

cd - change directory

b)

cd - command prompt

c)

ls - list contents

d)

rmdir - remove directory

e)

rmdir - remake directory

7.

sleep() function is used to

a)

 to suspend the given task for a particular time

b)

to terminate the compiler

c)

to set the raspberry pi in a low power state

d)

to suspend the currently executing python script for a specified time

8.

Pick a Linux terminal command that does not exist :

a)

nano

b)

clear

c)

sudo

d)

su

e)

suii

9.

What does GPIO.setup( ) do

a)

 allocates the pin as input or output

b)

does a setup check on the state of the pin

c)

counts the number of pins

10.

Duration of sleep(2) :

a)

2 seconds

b)

2 milliseconds

c)

2 minutes

d)

 2 lightyears

11.

Command to power down the raspberry Pi immediately

a)

sudo poweroff -h now

b)

power down

c)

sudo shutdown

d)

sudo shutdown -h now

12.

What does su in sudo stand for

a)

super-user

b)

sub-query

c)

substitute

d)

sub-user