0
0
Intro to Computingfundamentals~20 mins

Linux overview in Intro to Computing - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Linux Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What is the primary role of the Linux kernel?

Linux is made up of several parts. One important part is the kernel. What does the Linux kernel mainly do?

AIt stores user files and documents securely on the disk.
BIt manages hardware resources and allows software to communicate with hardware.
CIt is a software application used to browse the internet.
DIt provides a graphical user interface for users to interact with the system.
Attempts:
2 left
💡 Hint

Think about what part of the system controls the CPU, memory, and devices.

trace
intermediate
2:00remaining
Trace the output of a Linux command sequence

Consider the following Linux shell commands executed in order. What will be the output of the last command?

Intro to Computing
mkdir testdir
cd testdir
touch file1.txt
ls
Atestdir
BNo output
Cfile1.txt
DError: Directory not found
Attempts:
2 left
💡 Hint

Think about what each command does step-by-step and what ls shows.

identification
advanced
2:00remaining
Identify the Linux file permission representation

Given the file permission string -rwxr-x--x, which statement is true?

AThe owner can read, write, and execute; the group can read and execute; others can only execute.
BThe owner can read and write; the group can write and execute; others have no permissions.
CThe owner has no permissions; the group can read, write, and execute; others can read only.
DAll users have full read, write, and execute permissions.
Attempts:
2 left
💡 Hint

Break down the permission string into owner, group, and others sections.

Comparison
advanced
2:00remaining
Compare Linux distributions based on package management

Which statement correctly compares package management systems of popular Linux distributions?

ADebian-based distributions use <code>apt</code>, while Red Hat-based distributions use <code>yum</code> or <code>dnf</code>.
BAll Linux distributions use the same package manager called <code>pacman</code>.
CUbuntu uses <code>rpm</code> packages, and Fedora uses <code>deb</code> packages.
DLinux distributions do not use package managers; software must be installed manually.
Attempts:
2 left
💡 Hint

Think about the common package managers for Debian and Red Hat families.

🚀 Application
expert
2:00remaining
Determine the result of a Linux command pipeline

What is the output of this Linux command pipeline?

echo -e "apple\nbanana\napple\ncherry" | sort | uniq -c | sort -nr
AError: Invalid command syntax
B
  1 apple
  1 banana
  1 cherry
C
apple
banana
cherry
D
  2 apple
  1 banana
  1 cherry
Attempts:
2 left
💡 Hint

Break down the pipeline: echo outputs lines, sort orders them, uniq -c counts duplicates, final sort -nr sorts numerically in reverse.