GUIDE 2026 OBJECTIVE ASSESSMENT OA
PRACTICE QUESTIONS AND CORRECT
ANSWERS WITH DETAILED RATIONALES
COMPREHENSIVE EXAM REVIEW
The file script.sh in the current directory contains the following
content:#!/bin/bashecho $MYVARThe following commands are used to
execute this script:MYVAR=value -./script.shThe result is an empty line
instead of the content of the variable MYVAR. How should MYVAR be set
in order to make script.sh display the content of MYVAR?
A. !MYVAR=value
B. env MYVAR=value
C. MYVAR=value
D. $MYVAR=value
E. export MYVAR=value - CORRECT ANSWER -E
What is the return value of a shell script after successful execution?
A. 1
B. 0
C. -1
D. -255
E. 255 - CORRECT ANSWER -B
,Which of the following commands creates the ZIP archive poems.zip
containing all files in the current directory whose names end in .txt?
A. zip *.txt > poems.zip
B. zcat *.txt poems.zip
C. zip poems.zip *.txt
D. zip cfz poems.zip *.txt
E. cat *.txt | zip poems.zip - CORRECT ANSWER -C
Which of the following statements are true regarding a typical shell script?
(Choose two.)
A. It has the executable permission bit set.
B. It starts with the two character sequence #!.
C. It is located in /usr/local/scripts/.
D. It is located in /etc/bash/scripts/.
E. It is compiled into a binary file compatible with the current machine
architecture. - CORRECT ANSWER -AB
Which of the following commands extracts the contents of the compressed
archive file1.tar.gz?
A. tar -czf file1.tar.gz
B. ztar file1.tar.gz
C. tar -xzf file1.tar.gz
D. tar --extract file1.tar.gz
E. detar file1.tar.gz - CORRECT ANSWER -C
, Which of the following commands finds all lines in the file operating-
systems.txt which contain the term linux, regardless of the case?
A. igrep linux operating-systems.txt
B. less -i linux operating-systems.txt
C. grep -i linux operating-systems.txt
D. cut linux operating-systems.txt
E. cut [Ll] [Ii] [Nn] [Uu] [Xx] operating-systems.txt - CORRECT ANSWER -
C
Which one of the following statements concerning Linux passwords is true?
A. All passwords can be decrypted using the system administrator's master
password.
B. Passwords may never start with a non-letter.
C. Users cannot change their password once it has been set.
D. Passwords are only stored in hashed form.
E. Passwords may be at most six characters long. - CORRECT ANSWER -D
Which of the following Linux Distributions is derived from Red Hat
Enterprise Linux?
A. Raspbian
B. openSUSE
C. Debian
D. Ubuntu
E. CentOS - CORRECT ANSWER -E