wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Revision2

Total questions: 10

Worksheet time: 4mins

Name
Class
Date
1.

What do you call a collection of pre-programmed commands and functions used in programs?

a)

Widget

b)

Functions

c)

Library

d)

Variable

2.

What do you use the Pygame library for?

a)

It is used to make graphics and sounds for video games.

b)

It is used to create and manage data storage

c)

It is used to make graphical user interfaces.

d)

It is used to control a turtle that can draw on the screen. It is used to control a turtle that can draw on the screen.

3.

What is the difference between a microcontroller and a mini-computer?

a)

A mini-computer has less memory than a microcontroller.

b)

A microcontroller is usually larger than a mini-computer.

c)

A mini-computer has more advanced features than a microcontroller

d)

A microcontroller has more advanced features than a mini-computer. A microcontroller has more advanced features than a mini-computer.

4.

What code would you use to create the login button?

a)

btn = Label (Window, text ="Login", bg='yellow', fg='purple')

b)

btn = Button(Window, text ="enter", bg='red', fg='purple')

c)

btn = Label(Window, text="Username:", bg='green', fg='white')

d)

btn = Button(Window, text ="Login", bg='yellow', fg='black') btn = Button(Window, text ="Login", bg='yellow', fg='black')

5.

This code will create a window with a button. What will happen when the user presses the button?

a)

A message box will pup up saying "Press".

b)

A message box will pup up with the error message "Error".

c)

A message box will pup up saying "Goodbye".

d)

A message box will pup up saying "Hello". A message box will pup up saying "Hello".

6.

What do you call interactive shortcuts that perform an action?

a)

Menus

b)

Icons

c)

Windows

d)

Pointers

7.

What is the name of the design drawings you need to use to represent your algorithms?

a)

Sketches

b)

Flowcharts

c)

Instructions

d)

Libraries

8.

What component can you use to open windows?

a)

A servomotor

b)

An LED

c)

A buzzer

d)

An ambient light sensor An ambient light sensor

9.

Which Python library can you use to communicate with a microcontroller?

a)

Tkinter

b)

PyCharm

c)

IBSerial

d)

Pygame

10.

You connected an LED to pin 13 of your microcontroller and wrote the code below. What code should you use to turn the LED on?

a)

digitalWrite(pinMode, High)

b)

digitalRead(LED, HIGH)

c)

digitalRead(LED, LOW)

d)

digitalWrite(LED, HIGH)