This Quiz contains totally 25 Questions each carry 1 point for you.
1.What is Shell Scripting?
Writing code in HTML
Programming in Python
Writing commands in a text file to automate tasks
A web designing tool
Correct!
Wrong!
2.Which symbol is used to write a comment in shell scripting?
#
/
!
%
Correct!
Wrong!
3.What does the 'echo' command do in shell scripting?
It repeats a command
It prints the output to the terminal
It terminates a script
It starts a script
Correct!
Wrong!
4.Which command is used to assign a value to a variable in shell scripting?
var==value
var=value
var:=value
value=var
Correct!
Wrong!
5.What does the 'chmod' command do in shell scripting?
It changes the mode of a file
It changes the owner of a file
It changes the group of a file
It creates a new file
Correct!
Wrong!
6.What is a cron job?
A task that runs only once
A task that runs at fixed times, dates, or intervals
A task that runs only when the system boots
A task that runs only when a user logs in
Correct!
Wrong!
7.Which command is used to edit the crontab file?
crontab -e
crontab -r
crontab -l
crontab -a
Correct!
Wrong!
8.How can you list all your current cron jobs?
crontab -e
crontab -r
crontab -l
crontab -a
Correct!
Wrong!
9.Which character is used in a crontab entry to denote any value?
*
#
–
%
Correct!
Wrong!
10.If a cron job is scheduled for "0 0 * * *", when will it run?
Every minute
Every hour
Every day at midnight
Every week
Correct!
Wrong!
11.What is virtualization in computing?
Creating virtual resources such as servers and devices
Installing Ubuntu on a computer
Programming in Python
Setting up a cron job
Correct!
Wrong!
12.What is Docker in Ubuntu?
A text editor
A web browser
A virtualization software
A containerization platform
Correct!
Wrong!
13.How do containers differ from virtual machines?
Containers need a guest operating system while VMs don't
Containers virtualize the entire system while VMs virtualize only the hardware
Containers share the host system’s OS while VMs have their own OS
Containers and VMs are the same
Correct!
Wrong!
14.Which command is used to list all running Docker containers in Ubuntu?
docker ps
docker run
docker ls
docker start
Correct!
Wrong!
15.What does the 'docker pull' command do in Ubuntu?
It pushes a Docker image to Docker Hub
It removes a Docker container
It downloads a Docker image from Docker Hub
It builds a Docker image from a Dockerfile
Correct!
Wrong!
16.What command is used to change directories in shell scripting?
cd
mv
chdir
dd
Correct!
Wrong!
17.Which command is used to display the content of a file in shell scripting?
echo
show
print
cat
Correct!
Wrong!
18.How do you schedule a cron job to run every Monday at 5 PM?
0 17 * * 1
5 * * * 1
1 * * * 5
0 5 * * 1
Correct!
Wrong!
19.How do you remove a user's cron job?
crontab -r
crontab -l
crontab -e
crontab -d
Correct!
Wrong!
20.What does the 'docker run' command do in Ubuntu?
It starts a Docker container
It lists all Docker containers
It stops a Docker container
It downloads a Docker image
Correct!
Wrong!
21.What is the command to stop a running Docker container in Ubuntu?
docker stop
docker pause
docker kill
both a and c
Correct!
Wrong!
22.What is a Dockerfile in Ubuntu?
A file that contains instructions to build a Docker image
A file that contains the list of all Docker containers
A file that contains the list of all Docker images
A configuration file for Docker
Correct!
Wrong!
23.What is the command to build a Docker image from a Dockerfile in Ubuntu?
docker build
docker create
docker compile
docker make
Correct!
Wrong!
24.What is the purpose of a hypervisor in virtualization?
It serves as a platform for running containers
It manages the virtual machines and allocates system resources
It is a tool for managing Docker images
It is used for scheduling tasks
Correct!
Wrong!
25.What is Kubernetes in the context of Ubuntu?
A text editor
A container orchestration platform
A package manager
A cron job scheduler
Correct!
Wrong!
Share the quiz to show your results !
Subscribe to see your results
Ignore & go to results
Ubuntu Advanced – Quiz
You got %%score%% of %%total%% right
%%description%%
%%description%%
Loading...
