DCOM 142 Final Exam Questions with
correct solutions
What command is used to display all hard drive partitions? - ANSWER>>fdisk -l
Which of the following tools is best suited to installing a software package and all of its
dependencies on a Debian computer? - ANSWER>>apt-get
What is the usual name of the first process that the Linux kernel runs, aside from itself? -
ANSWER>>init
Which of the following tools can you use to identify running processes? (choose two) -
ANSWER>>ps
top
Where do most log files reside on a Linux system? - ANSWER>>/var/log
Which of the following are package management commands for distributions with software
distributed in files ending in .rpm? (choose three) - ANSWER>>yumex
yum
rpm
You have created a new local network in one of the floors of tour office. All networking devices
and computers are physically connected to one another through cables. How will you verify the
logical connectivity among them? - ANSWER>>Executing the ping command
How many bits does an IPv4 address have? - ANSWER>>32
Which of the following number formats is used to represent an IPv6 address? -
ANSWER>>Hexadecimal
Which of the following options is used to uniquely identify a device over a network? -
ANSWER>>IP address
What term refers to the worldwide system of servers that translates between IP addresses and
hostnames? - ANSWER>>DNS
, Which of the following numbers denotes the root user? - ANSWER>>0
What is the effect of the following command, assuming it completes successfully?
$ groupadd ccbc - ANSWER>>It creates a new group called ccbc
Which of the following commands is used to switch from one user login to another in a Linux
computer? - ANSWER>>su
Which of the following utilities provides an efficient way to give specific users permission to use
specific system commands at the root level of a Linux computer? - ANSWER>>sudo
Which of the following commands provides a quick summary of every use logged into a
computer? - ANSWER>>w
Which of the following statements is included is a case statement to denote the end of a case
statement? - ANSWER>>esac
What key(s) will enable insert mode in "vi" editor? - ANSWER>>"i" key
What key will you use to delete a line in "vi" editor? - ANSWER>>"dd"
what key will you use to delete a line in "vi" editor? - ANSWER>>"dd"
After using a text editor to create a shell script, what step should you take before typing to use
the script by typing its name? - ANSWER>>Set one or more executable bits using chmod
Which of the following entries is maintained at the first line of the bash script? -
ANSWER>>#!/bin/bash
Which of the following extensions is used at the end of the script name? - ANSWER>>.sh
What is the effect of the following short script, ex1, if it's called as ex1 big.c big.cc? #!/bin/bash
cp $2 $1 - ANSWER>>it copies the contents of big.cc to big.c, eliminating the old big.c
Given the following script that is run through ./test.sh hello goodbye :
if [ -f $2 ]; then echo "I am here" fi - ANSWER>>if a file called "goodbye" exists in the current
directory the script will always print "I am here"
correct solutions
What command is used to display all hard drive partitions? - ANSWER>>fdisk -l
Which of the following tools is best suited to installing a software package and all of its
dependencies on a Debian computer? - ANSWER>>apt-get
What is the usual name of the first process that the Linux kernel runs, aside from itself? -
ANSWER>>init
Which of the following tools can you use to identify running processes? (choose two) -
ANSWER>>ps
top
Where do most log files reside on a Linux system? - ANSWER>>/var/log
Which of the following are package management commands for distributions with software
distributed in files ending in .rpm? (choose three) - ANSWER>>yumex
yum
rpm
You have created a new local network in one of the floors of tour office. All networking devices
and computers are physically connected to one another through cables. How will you verify the
logical connectivity among them? - ANSWER>>Executing the ping command
How many bits does an IPv4 address have? - ANSWER>>32
Which of the following number formats is used to represent an IPv6 address? -
ANSWER>>Hexadecimal
Which of the following options is used to uniquely identify a device over a network? -
ANSWER>>IP address
What term refers to the worldwide system of servers that translates between IP addresses and
hostnames? - ANSWER>>DNS
, Which of the following numbers denotes the root user? - ANSWER>>0
What is the effect of the following command, assuming it completes successfully?
$ groupadd ccbc - ANSWER>>It creates a new group called ccbc
Which of the following commands is used to switch from one user login to another in a Linux
computer? - ANSWER>>su
Which of the following utilities provides an efficient way to give specific users permission to use
specific system commands at the root level of a Linux computer? - ANSWER>>sudo
Which of the following commands provides a quick summary of every use logged into a
computer? - ANSWER>>w
Which of the following statements is included is a case statement to denote the end of a case
statement? - ANSWER>>esac
What key(s) will enable insert mode in "vi" editor? - ANSWER>>"i" key
What key will you use to delete a line in "vi" editor? - ANSWER>>"dd"
what key will you use to delete a line in "vi" editor? - ANSWER>>"dd"
After using a text editor to create a shell script, what step should you take before typing to use
the script by typing its name? - ANSWER>>Set one or more executable bits using chmod
Which of the following entries is maintained at the first line of the bash script? -
ANSWER>>#!/bin/bash
Which of the following extensions is used at the end of the script name? - ANSWER>>.sh
What is the effect of the following short script, ex1, if it's called as ex1 big.c big.cc? #!/bin/bash
cp $2 $1 - ANSWER>>it copies the contents of big.cc to big.c, eliminating the old big.c
Given the following script that is run through ./test.sh hello goodbye :
if [ -f $2 ]; then echo "I am here" fi - ANSWER>>if a file called "goodbye" exists in the current
directory the script will always print "I am here"