DCOM 142 Final (2025) Actual Exam
Questions and Answers A+ Graded
Which .of .the .following .statements .is .included .is .a .case .statement .to .denote .the
.end .of .a .case .statement? .- .esac
What .key(s) .will .enable .insert .mode .in ."vi" .editor? .- ."i" .key
What .key .will .you .use .to .delete .a .line .in ."vi" .editor? .- ."dd"
what .key .will .you .use .to .delete .a .line .in ."vi" .editor? .- ."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? .- .Set .one .or .more
.executable .bits .using .chmod
Which .of .the .following .entries .is .maintained .at .the .first .line .of .the .bash .script?
.- .#!/bin/bash
Which .of .the .following .extensions .is .used .at .the .end .of .the .script .name? .- ..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 .- .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 .- .if .a .file .called ."goodbye" .exists .in .the
.current .directory .the .script .will .always .print ."I .am .here"
True .or .False; .Valid .looping .statements .in .Bash .include .for, .while .and .if-elseif-
fi. .- .False
True .or .False: .A .user .types .myscript .laser.txt .to .run .a .script .called .myscript.
.within .myscript, .the .$0 .variable .holds .the .value .laser.txt .- .False
Which .of .the .following .is .a .physical .arrangement .in .a .computer .that .contains
.the .computer's .basic .hardware .and .components? .- .Motherboard
Which .of .the .following .is .the .valid .device .file .name .for .the .first .IDE .hard .drive
.on .the .system? .- ./dev/hda
, Which .of .the .following .are .valid .partitioning .types .(choose .two) .- .MBR .
GPT
Choose .all .of .the .following .statements .that .are .true .in .regard .to .virtual .RAM
.(choose .three) .- .Virtual .RAM .is .used .when .available .physical .RAM .is .low. .
Virtual .RAM .is .stored .on .a .hard .drive. .
Virtual .RAM .is .also .called .swap .space.
What .command .is .used .to .display .all .hard .drive .partitions? .- .fdisk .-l
Which .of .the .following .tools .is .best .suited .to .installing .a .software .package .and
.all .of .its .dependencies .on .a .Debian .computer? .- .apt-get
What .is .the .usual .name .of .the .first .process .that .the .Linux .kernel .runs, .aside
.from .itself? .- .init
Which .of .the .following .tools .can .you .use .to .identify .running .processes?
.(choose .two) .- .ps
top
Where .do .most .log .files .reside .on .a .Linux .system? .- ./var/log
Which .of .the .following .are .package .management .commands .for .distributions
.with .software .distributed .in .files .ending .in ..rpm? .(choose .three) .- .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? .-
.Executing .the .ping .command
How .many .bits .does .an .IPv4 .address .have? .- .32
Which .of .the .following .number .formats .is .used .to .represent .an .IPv6 .address? .-
.Hexadecimal
Which .of .the .following .options .is .used .to .uniquely .identify .a .device .over .a
.network? .- .IP .address
What .term .refers .to .the .worldwide .system .of .servers .that .translates .between .IP
.addresses .and .hostnames? .- .DNS
Which .of .the .following .numbers .denotes .the .root .user? .- .0
What .is .the .effect .of .the .following .command, .assuming .it .completes
.successfully? .
$ .groupadd .ccbc .- .It .creates .a .new .group .called .ccbc
Questions and Answers A+ Graded
Which .of .the .following .statements .is .included .is .a .case .statement .to .denote .the
.end .of .a .case .statement? .- .esac
What .key(s) .will .enable .insert .mode .in ."vi" .editor? .- ."i" .key
What .key .will .you .use .to .delete .a .line .in ."vi" .editor? .- ."dd"
what .key .will .you .use .to .delete .a .line .in ."vi" .editor? .- ."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? .- .Set .one .or .more
.executable .bits .using .chmod
Which .of .the .following .entries .is .maintained .at .the .first .line .of .the .bash .script?
.- .#!/bin/bash
Which .of .the .following .extensions .is .used .at .the .end .of .the .script .name? .- ..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 .- .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 .- .if .a .file .called ."goodbye" .exists .in .the
.current .directory .the .script .will .always .print ."I .am .here"
True .or .False; .Valid .looping .statements .in .Bash .include .for, .while .and .if-elseif-
fi. .- .False
True .or .False: .A .user .types .myscript .laser.txt .to .run .a .script .called .myscript.
.within .myscript, .the .$0 .variable .holds .the .value .laser.txt .- .False
Which .of .the .following .is .a .physical .arrangement .in .a .computer .that .contains
.the .computer's .basic .hardware .and .components? .- .Motherboard
Which .of .the .following .is .the .valid .device .file .name .for .the .first .IDE .hard .drive
.on .the .system? .- ./dev/hda
, Which .of .the .following .are .valid .partitioning .types .(choose .two) .- .MBR .
GPT
Choose .all .of .the .following .statements .that .are .true .in .regard .to .virtual .RAM
.(choose .three) .- .Virtual .RAM .is .used .when .available .physical .RAM .is .low. .
Virtual .RAM .is .stored .on .a .hard .drive. .
Virtual .RAM .is .also .called .swap .space.
What .command .is .used .to .display .all .hard .drive .partitions? .- .fdisk .-l
Which .of .the .following .tools .is .best .suited .to .installing .a .software .package .and
.all .of .its .dependencies .on .a .Debian .computer? .- .apt-get
What .is .the .usual .name .of .the .first .process .that .the .Linux .kernel .runs, .aside
.from .itself? .- .init
Which .of .the .following .tools .can .you .use .to .identify .running .processes?
.(choose .two) .- .ps
top
Where .do .most .log .files .reside .on .a .Linux .system? .- ./var/log
Which .of .the .following .are .package .management .commands .for .distributions
.with .software .distributed .in .files .ending .in ..rpm? .(choose .three) .- .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? .-
.Executing .the .ping .command
How .many .bits .does .an .IPv4 .address .have? .- .32
Which .of .the .following .number .formats .is .used .to .represent .an .IPv6 .address? .-
.Hexadecimal
Which .of .the .following .options .is .used .to .uniquely .identify .a .device .over .a
.network? .- .IP .address
What .term .refers .to .the .worldwide .system .of .servers .that .translates .between .IP
.addresses .and .hostnames? .- .DNS
Which .of .the .following .numbers .denotes .the .root .user? .- .0
What .is .the .effect .of .the .following .command, .assuming .it .completes
.successfully? .
$ .groupadd .ccbc .- .It .creates .a .new .group .called .ccbc