Quiz
iptables, Bash scripting and cron basics
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (130)
1How to show all intables rules?
- Aintables -A
- Bintables -L
- Cintables -N
- Dintables -P
2The ACCEPT target the packet is handed over to the end application or the operating system for processing
- ATrue
- BFalse
3REJECT target works like the DROP target, but doesn't return an error message
- ATrue
- BFalse
4Select chains for filter table
- AINPUT
- BOUTPUT
- CFORWATD
- DPOSTROUTING
5Select chains for NAT table
- AINPUT
- BOUTPUT
- CPREROUTING
- DPOSTROUTONG
- EFORWARD
6Select chains for mangle table
- AINPUT
- BOUTPUT
- CFORWARD
- DPREROUTING
- EPOSTROUTING
7How many built-in rules do intables have?
- A3
- B4
- C2
- D1
8Choose the correct declaration(s)
- Afunction_name (){}
- Bfunction function_name {}
- Cfunction function_name (){}
- Dfunс function_name {}
- Efunction_name {}
9Choose the loop type for the following defenition : " perform a set of commands for each item in a list "
- Afor
- Bwhile
- Cdo until
- Duntil
- Edo while
10How many types of loops are there?
- A1
- B2
- C3
- D4
- E5
- F6
11It is possible to name a function as the same name as a command you would normally use pn the command line
- ATrue
- BFalse
12The break statement tells Bash to leave the loop iteration straight away whereas the continue statement tells Bash to stop running throught this loop
- ATrue
- BFalse
13Type the name of mechanism that allows to create a menu system
- Aselect var in <list>
do
<commands> - Bselect var in <list>
do
<commands>
don - Cselect var in <list>
do
<commands>
done - Dselect var in <list>
do
<commands>
do
- Aselect var in <list>
14Choose the loop type for following defenition: " perform a set of commands until a condition is true "
- Awhile
- Buntil
- Cdo until
- Dfor
- Edo while
15By default variable is local
- ATrue
- BFalse
16Choose the loop type for the following defenition : " perform a set of commands a while condition is true "
- Afor
- Buntil
- Cdo while
- Ddo until
- Ewhile
17By default, a regular expression is case sensitive
- ATrue
- BFalse
18Choose the equivalent of @yearly special word
- A0 0 * * 0
- B0 0 * * *
- C0 0 1 1 *
- D0 0 1 * *
- E0 * * * *
19What you should write in order to edit the list of cronjobs?
- Asudo crontab -e
- Bsudo crontab -l
20Which line execute the script check_status.sh on 10th June 08:30 AM?
- A30 08 10 06 * check_status.sh
- B08 30 10 06 * check_status.sh
- C10 06 30 08 * check_status.sh
- D30 08 06 10 * check_status.sh
21What should write in order to see crontabs are currently running on your system,:
- Asudo crontab –l
- Bsudo crontab –e
22Crontab is used to schedule commands to be executed only once
- ATrue
- BFalse
23How can we make regular expression case insensitive?
- ABy ending the pattern with "(?i)"
- BBy starting the pattern with "(!i)"
- CBy staring the pattern with "(?c)"
- DBy ending the pattern with "(?!)"
- EBy starting the pattern with "(?i)"
24Choose the equivalent of @weekly special word
- A0 0 1 1 *
- B0 0 1 * *
- C0 * * * *
- D0 0 * * 0
- E0 0 * * *
25We can group a sequence of characters using open and close brackets
- ATrue
- BFalse
26How many categories of Linux distributions are there?
- A1
- B2
- C3
- D4
27We should use chmod to set permission for newly created files
- ATrue
- BFalse
28Which signal is sent to a procces when its controlling terminal is closed?
- ASIGHUP
- BSIGSTP
- CSIGINT
- DSIGKILL
- ESIGBUS
29Which signal is sent to a procces by as controlling terminal when a user interrupts the process by pressing?
- ASIGKILL
- BSIGSTP
- CSIGQUIT
- DSIGINT
- ESIGIOT
30Which of the following distribution designed for advanced Linux users, containing only Linux source code?
- ADebian
- BSlackware
- CFedora
- DRed Hat
- EGentoo
31A comlete Linux system package is called a
- Apackage
- Bubuntu
- Cdistribution
- Doperating system
32Which signal is immediately terminates (kills) a process and the process will not perform any clean-up
operations?- ASIGINT
- BSIGKILL
- CSIGQUIT
- DSIGTERM
- ESIGHUP
33Linux is developed by
- ALinus Torvalds
- BBill Gates
- CMark Zuckerberg
- DAndrew Tannenbaum
34Which file contains passwords for your groups?
- A/etc/gshadow
- B/etc/passwd
- C/etc/gpasswd
- D/etc/shadow
35What are the numeric equivalents of the alphabet permissions?
- Ar = 5, w = 3, x = 1
- Br = 4, w = 2, x = 1
- Cr = 1, w = 2, x = 3
- Dr = 4, w = 1, x = 0
36How many parts make up a Linux?
- A3
- B2
- C1
- D4
37Which command enables you to change the password to the developers group?
- Agpasswd developers
- Bgpasswd -a developers
- Cgpasswd -r developers
- Dgpasswd -d developers
38When using expr we need to enclose the expression in quotes
- ATrue
- BFalse
39We use OR operation if we want to perform the action if one of several condition is met
- ATrue
- BFalse
40What will you write in order to check whether the variable "name" empty or not
- A-n $name
- B-z $name
- C-d $name
- D-s $name
41Which expression prints out the result of an expression?
- Aexpr with command subsitution
- Bexpr
- Cdouble parentheses
- Dlet
42How many basic ways in deal with arithmetic in Bash are there?
- A3
- B4
- C2
- D1
43What will you write in order to check whether the directory with name "quizzes" exists or not?
Format: option dirname- A-e $quizzes
- B-r $quizzes
- C-w $quizzes
- D-d quizzes
- E-d $quizzes
44Which is the defenition of the chain INPUT? (from filter table)
- AApplies to network packets that are targeted for the host.
- BApplies to locally-generated network packets
- CApplies to network packets routed through the host.
45Which is the defenition of the chain OUTPUT? (from filter table)
- AApplies to network packets that are targeted for the host.
- BApplies to locally-generated network packets.
- CApplies to network packets routed through the host.
46Which is the defenition of the chain FORWARD? (from filter table)
- AApplies to network packets that are targeted for the host.
- BApplies to locally-generated network packets.
- CApplies to network packets routed through the host.
47Which is the defenition of the filter table?
- AThe default table for handling network packets.
- BUsed to alter packets that create a new connection.
- CUsed for specific types of packet alteration.
48Which is the defenition of the mangle table?
- AThe default table for handling network packets.
- BUsed to alter packets that create a new connection.
- CUsed for specific types of packet alteration.
49Which is the defenition of the nat table?
- AThe default table for handling network packets.
- BUsed to alter packets that create a new connection.
- CUsed for specific types of packet alteration.
50What is the number equivalent of r-x--x--x permission?
- A511
- B311
- C431
- D441
- E611
51What is the number equivalent of -wxr-x-wx permission?
- A212
- B414
- C565
- D353
52What is the alternative of 361 permission?
- Arw-r-x-wx
- B-wxrw---x
- Crw-rw-r-x
- Drw-r-x-x
53What is alternative of 543 permission?
- Arw-r-x-wx
- Br-xr---wx
- Cr--w-x-x
- Dr-xrw-r
54Using which expression(s) we can write the result of an expression to variable?
- Adouble parentheses
- Bexpr with command substitution
- Clet
- Dexpr
55Which permission belongs to 260 umask?
- Ar-x--xrwx
- Br-x---rw-
- Cr-xr-xr-x
- Drw---xr-x
56When using command line arguments, what does $$ return?
- AName of running script
- BArray containing all parameters
- CWord containing all parameters
- DProcess ID of running script
- ENumber of passed parameters
57What is the PID of init process?
- A3
- B4
- C5
- D1
- E0
58What are the permission types a UNIX file can be assigned?
- ARead
- BWrite
- CExecute
- DUser
- EGroup
- FDeploy
59What is an Operating System?
- AA collection of software that manages computer hardware resources and provides common
- BIt acts as an intermediary beyween a user and the computer system
- CA hardware layer to abstract away and manage details of software resources
- DThe OS is a vital component of the system hardware in a computer system
60Open source is free software, software that the licensee can use without paying a license fee
- ATrue
- BFalse
61Which of these functions has security risks?
- Aexec()
- Bfork()
- CSystem()
62The parent process of all process in Linux called root
- ATrue
- BFalse
63Enter the name of the file that contains the user account information for your system
- A/etc/password
- B/etc/gpasswd
- C/etc/passwd
- D/etc/accounts/passwd
64If we want the variable to be available to the other scripts, which command do you need?
- Aexport
- Bimport
- Cdirect
65Command substitutions allows us to take the output of a command or program (what would normally be printed to the file)
- ATrue
- BFalse
66We can use both chown and chgrp to change the group ownership
- ATrue
- BFalse
67The user and group number of root is 0
- ATrue
- BFalse
68How can we list directories with hidden files?
- Als -a
- Bls -l
- Cls -d
- Dls -R
69Choose the property(s) of OS
- AProgramming
- BTimesharing
- CPortability
- DSpooling
70How can we list particular directories?
- Als -d
- Bls -a
- Cls -l
- Dls -R
71What are the levels of acces control on UNIX systems?
- ARoot
- BOther
- CUser
- DGroup
- EAdministrator
72Foreground processes doesn't expect user input
- ATrue
- BFalse
73What are the processes that are initialized and controlled throught a terminal session?
- Aforeground
- Bbackground
- Cinteractive
74How can list all available signals?
- Akill -l
- Bkill -a
- Ckill -all
- Dkill -d
75/etc/passwd contains password related information for accaunts
- ATrue
- BFalse
76What is the umask for the defenitions below?
-read, execute for owner
-read for group
-write, execute for others- A631
- B777
- C665
- D234
- E013
77Which of the following belongs to user benefits?
- APortability
- BProgramming simplicity
- CSafety
- DEffecienty
78What is the number equivalent of r--rwxrw- permission?
- A516
- B476
- C436
- D256
- E636
79Choose the defenitions for daemons
- Ais a background process
- Bstart at system startup
- Cthey are started by user
80Which signal is a program termination signal (kill will send this by default)?
- ASIGSTP
- BSIGQUIT
- CSIGINT
- DSIGOIT
- ESIGTERM
81When using command line arguments, what does $0 return?
- ANumber of passed parameters
- BUsername of user running script
- CWord containing all parameters
- DArray containing all parameters
- EName of running script
82What is the first program that is executed after system boot up?
- Ainit
- Bdaemon
- CPID
83When using command line arguments, what does $@ return?
- AArray containing all parameters
- BThe process ID of the current script.
- CA single word containing all the parameters
- DThe username of the user running the script
84Which utility is used to modify file /etc/sudoers?
- Avisudo
- Bsudo
- Cvisudoers
- Dsudoers
85Mint is one of the original Linux distributions sets, popular with Linux geeks
- ATrue
- BFalse
86Which of the following belong(s) to system level interface
- AShell
- BIcons, windows, buttons
- CApplications
- DInvoked from programs
87Which of the following belongs to application benefits?
- APortability
- BProgramming simplicity
- CEfficiency
- DSafety
88In which file the default parameters for new user are stored?
- A/etc/login.defaults
- B/etc/defaults
- C/etc/account.defaults
- D/etc/login.defs
- E/etc/defs
89One account has elevated privileges to issue any command, access any file, and peform every function
- ARoot, root, superuser, Superuser
- BRoot, root, superuser, root
- CRoot, superuser, Superuser
- DRoot, root, Superuser
90Which command would you use to set full permission for the owner and group and no permission to other users
- Achmod 440 /home/projects/os
- Bchmod 550 /home/projects/os
- Cchmod 660 /home/projects/os
- Dchmod 770 /home/projects/os
91Select the type(s) of OS
- ASingle user, Multi-tasking
- BSingle user, Single Task
- CMulty user, Single-task
- DReal time operating systems
- EMulti user, Multi-tasking
92How can you add read and execute permission to owner for file quiz.txt
- Achmod o=rx quiz.txt
- Bchmod u+rx quiz.txt
- Cchmod u-rx quiz.txt
- Dchmod o+rx quiz.txt
- Eumask o+rx quiz.txt
93What you should write in order to edit the list of cronjobs?
- Asudo crontab -e
- Bcrontab -e
- Ccrontab -a
- Dcrontab -d
94Select an(the) example(s) of free software
- AuTorrent Google Chrome
- BOpen Office, YAHOO
- CMozilla Firefox FreeBSD KDE
- DLinux, Google Chrome
95We can use both gzip -d and gunzip to decompress file
- ATrue
- BFalse
96What command is used to modify a file's owner?
- Achmod
- Btouch
- Cls -l
- Dchown
97How many categories has process management?
- A4
- B3
- C2
- D1
98Choose categories of process management
- AMultiprogramming
- BMultiprocessing
- CDistributed processing
- DDistributed programming
- EMultioperating
99Which of the defenition is multiprogramming
- Amultiple processes on a system with a single processor
- Bmultiple processes on a system with multiple processors
- Cmultiple processes on multiple systems
- Dmultiple processes on ordinary systems
100Which of the defenition is multiprocessing
- Amultiple processes on a system with a single processor
- Bmultiple processes on a system with multiple processors
- Cmultiple processes on multiple systems
- Dmultiple processes on a system processors
101Which of the defenition is distributed processing
- Amultiple processes on multiple systems
- Bmultiple processes on a system with a single processor
- Cmultiple processes on a system with multiple processors
- Dmultiple processes on a system
102Problems in concurrency
- Asharing global resources safely is difficult
- Boptimal allocation of resources is difficult
- Clocating programming errors can be difficult, because the contexts in which
errors occur cannot always be reproduced easily - Dit differs from parallelism, which offers genuine simultaneous execution
- Einterleaving of processes in time to give the appearance of simultaneous
execution
103Principles in concurrency
- Ainterleaving of processes in time to give the appearance of simultaneous
execution - Bit differs from parallelism, which offers genuine simultaneous execution
- Csharing global resources safely
- Dit differs from optimal allocation of resources
- Ainterleaving of processes in time to give the appearance of simultaneous
104Mutual Exclusion is the fundamental issue in concurrency
- ATrue
- BFalse
105Mutual Exclusion is the requirement that when a process P is accessing a shared resource R, other process should be able to access R until P has finished with R.
- ATrue
- BFalse
106Monitors are high-level language construct
- ATrue
- BFalse
107The most common messang passing combinations are
- ABlocking receive
- BNon-blocking send
- CNon-blocking receive
- DBlocking send
108Non-blocking send it is when a process sends a message, it continues executing without waiting for the receiving
process- ATrue
- BFalse
109What concerns to deadlock
- APermanent blocking of a set of processes that either compete for global resources or communicate with each other
- BOccurs when each process in the set is blocked awaiting an event that can be triggered only by another blocked process in the set
- COccurs when each process in the set is not blocked awaiting an event that
can be triggered only by another blocked process in the set - DPermanent blocking of a set of processes that either compete for non-global resources or communicate with each other
110How many policy conditions for deadlock to be possible
- A1
- B2
- C3
- D4
111Policy conditions for deadlock to be possible
- AMutual exclusion
- BHold and wait
- CNo preemption
- DPreemption
- EWait
112Which a fourth condition is required for deadlock to actually occur deadlock
- AOrdinary wait
- BPreemption
- CExclusion
- DCircular wait
113A closed chain of processes exists, such that each process is blocked waiting for a resource
held by another process in the set and it is curcilar wait- ATrue
- BFalse
114Deadlock Prevention policies:
- Aindirect policy
- Bdirect policy
- Cclosen policy
- Dopen door policy
115Dealing with deadlock there 3 approaches:
- ATrue
- BFalse
116Which is the definition of Prevention
- Aadopting a static policy that disallows one of the four conditions above.
- Binvolves making dynamic choices that guarantee prevention
- Cinvolves recognizing when deadlock has occurred, and trying to recover
- Dinvolves recognizing when deadlock has occurred
117Which is the definition of Avoidance
- Aadopting a static policy that disallows one of the four conditions above.
- Binvolves making dynamic choices that guarantee prevention
- Cinvolves recognizing when deadlock has occurred, and trying to recover
- Dinvolves making choices that guarantee prevention
118Which is the definition of Detection and recovery
- Aadopting a static policy that disallows one of the four conditions above.
- Binvolves making dynamic choices that guarantee prevention
- Cinvolves recognizing when deadlock has occurred, and trying to recover
- Dinvolves recognizing when deadlock doesn't have occurred, and trying to recover
119Dealing with deadlock, his approache(s):
- APrevention
- BAvoidance
- CDetection and recovery
- DDetection problems
- ERecovering
120indirect policy disallows one of the three necessary conditions
- ATrue
- BFalse
121TCP is higher layer
- ATrue
- BFalse
122When was TCP/IP developed?
- A1978
- B1977
- C1968
- D1987
123With whom TCP/IP was driven
- AKahn and Cerf
- BKahn and Linus
- CLinus and Cerf
- DKahn and Cir
124Any device in the network is called node or host
- ATrue
- BFalse
125 The speed with which data is moved from one host to another is called
- AData Transfer Rate
- BData Transfer Root
- CData Transfer Rage
- DData Transfer Role
126Types of Networks
- ALocal-area Network (LAN)
- BWide-area network (WAN)
- CMetropolitan-area network (MAN)
- DMultiproccessing-area network (MAN)
- EGlobal-area Network (GAN)
127A network that connects a relatively small number of machines in a relatively
close geographical area- ALAN
- BWAN
- CMAN
- DLAA
128Wide-area network (WAN)
- AA network that connects a relatively small number of machines in a relatively
close geographical area - BA network that connects two or more local-area networks over a potentially
large geographic distance - CThe communication infrastructures that have been developed in and around
large cities
- AA network that connects a relatively small number of machines in a relatively
129Metropolitan-area network (MAN) - The communication infrastructures that have been developed in and around
large cities- ATrue
- BFalse
130TCP stands for
- ATransmission Control Protocol
- BTransaction Control Protocol
- CTransmission Central Protocol
- DTransmission Control Promlem
Information
- Description
- Quiz on Untitled, created by Nassiba Zainullayeva on 11/12/2017.
- Author
- Nassiba Zainullayeva
- Language
- English
- Views
- 62
- Rating
- No ratings yet Rate this quiz