Linux World
Pages
Home
Programming
Computer Architecture
Tit Bits
Trouble Shoot
Kernel Related
Quizzes
Linux Tips
Follow @Linux_world
Search
Linux Scripting Quiz - 1
Basic Scripting Quiz
Basic Scripting Quiz
This is quiz covering the basics of shell scripting
#! is called as
shebang
hebang
hash prompt
begin
Which of the following is not a kind of shell
bash
ksh
csh
dsh
[ is eqvivalent to
test
for
while
then
The difference between printf and echo is
Echo adds a new line after printing, printf does not
printf adds a new line after printing, echo does not
Both are same
None of the above.
". " is used to match
Any one character
Any number of characters
Only " . "
Only special characters
Which of the following symbols is used as prefix to access the value of variables in scripting
#
$
^
&
The comparison operator " -eq " is used for
Numbers
Characters
Strings
Any kind of data
A comment line in a script begins with
#
$
^
&
Every line in a shell script ends with
;
:
>
There is no rule
Scripts are made executable using the command
chown
chmod
exe
run
Answers to the above quiz can be found at :
Answers to linux quiz-1
1 comment:
Rajani
June 6, 2023 at 2:54 AM
This comment has been removed by a blog administrator.
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
View mobile version
Subscribe to:
Post Comments (Atom)
This comment has been removed by a blog administrator.
ReplyDelete