0
0
Raspberry Piprogramming~20 mins

Operating system setup (Raspberry Pi OS) - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Raspberry Pi OS Setup Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Predict Output
intermediate
1:30remaining
What is the output of this Raspberry Pi OS command?
You run the command ls /boot on your Raspberry Pi OS terminal. What will this command output?
Raspberry Pi
ls /boot
ADisplays the Raspberry Pi OS version
BLists all files and folders in the /boot directory
CShows the current directory path
DShows the disk usage of the /boot directory
Attempts:
2 left
💡 Hint
Think about what the 'ls' command does in Linux.
Predict Output
intermediate
1:30remaining
What is the output of this Python code on Raspberry Pi OS?
You run this Python code on your Raspberry Pi OS terminal. What is the output?
Raspberry Pi
import os
print(os.uname().sysname)
ALinux
BRaspberryPiOS
CWindows
DDarwin
Attempts:
2 left
💡 Hint
The os.uname() function returns system information.
🔧 Debug
advanced
2:00remaining
Why does this Raspberry Pi OS command fail?
You try to update your Raspberry Pi OS packages with this command but get an error. What is the cause?
Raspberry Pi
sudo apt-get update && sudo apt-get upgrade -y
AYour internet connection is down or DNS is not working
BYou need to run the command as root user without 'sudo'
CYou forgot to run 'sudo apt-get update' first
DThe command syntax is incorrect
Attempts:
2 left
💡 Hint
Check if your Raspberry Pi can access the internet.
📝 Syntax
advanced
1:30remaining
Which command correctly sets the Raspberry Pi OS hostname?
You want to change your Raspberry Pi's hostname to 'pi-zero'. Which command is correct?
Aset-hostname sudo pi-zero
Bhostnamectl sudo set-hostname pi-zero
Csudo set-hostname hostname pi-zero
Dsudo hostnamectl set-hostname pi-zero
Attempts:
2 left
💡 Hint
The hostnamectl command manages hostnames and requires sudo.
🚀 Application
expert
2:00remaining
How many files are in the Raspberry Pi OS /etc directory after a fresh install?
You freshly installed Raspberry Pi OS and run ls /etc | wc -l. What is the expected number of files and directories?
AAbout 1000
BAbout 10
CAbout 300
DAbout 50
Attempts:
2 left
💡 Hint
The /etc directory contains many configuration files and folders.