NEW
Font size
WorksheetsRevision2
Total questions: 10
Worksheet time: 4mins
What do you call a collection of pre-programmed commands and functions used in programs?
Widget
Functions
Library
Variable
What do you use the Pygame library for?
It is used to make graphics and sounds for video games.
It is used to create and manage data storage
It is used to make graphical user interfaces.
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.
What is the difference between a microcontroller and a mini-computer?
A mini-computer has less memory than a microcontroller.
A microcontroller is usually larger than a mini-computer.
A mini-computer has more advanced features than a microcontroller
A microcontroller has more advanced features than a mini-computer. A microcontroller has more advanced features than a mini-computer.
What code would you use to create the login button?
btn = Label (Window, text ="Login", bg='yellow', fg='purple')
btn = Button(Window, text ="enter", bg='red', fg='purple')
btn = Label(Window, text="Username:", bg='green', fg='white')
btn = Button(Window, text ="Login", bg='yellow', fg='black') btn = Button(Window, text ="Login", bg='yellow', fg='black')
This code will create a window with a button. What will happen when the user presses the button?
A message box will pup up saying "Press".
A message box will pup up with the error message "Error".
A message box will pup up saying "Goodbye".
A message box will pup up saying "Hello". A message box will pup up saying "Hello".
What do you call interactive shortcuts that perform an action?
Menus
Icons
Windows
Pointers
What is the name of the design drawings you need to use to represent your algorithms?
Sketches
Flowcharts
Instructions
Libraries
What component can you use to open windows?
A servomotor
An LED
A buzzer
An ambient light sensor An ambient light sensor
Which Python library can you use to communicate with a microcontroller?
Tkinter
PyCharm
IBSerial
Pygame
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?
digitalWrite(pinMode, High)
digitalRead(LED, HIGH)
digitalRead(LED, LOW)
digitalWrite(LED, HIGH)
