Deck 3: Unix Commands and Functions: Part B
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/25
العب
ملء الشاشة (f)
Deck 3: Unix Commands and Functions: Part B
1
On executing a statement set -3+1
A)$1 would be -3
B)$1 would be -
C)$1 would be set
D)this command would result into an error
A)$1 would be -3
B)$1 would be -
C)$1 would be set
D)this command would result into an error
this command would result into an error
2
On executing the command Shift $v
A)the positional parameters would be shifted by the value of the variable v
B)the positional parameters would be shifted by 1
C)the positional parameters would not be shifted at all
D)this command would result into an error
A)the positional parameters would be shifted by the value of the variable v
B)the positional parameters would be shifted by 1
C)the positional parameters would not be shifted at all
D)this command would result into an error
the positional parameters would be shifted by the value of the variable v
3
Which of the following shows the correct hierarchy of arithmetic operations in shell
A)(),**,* or /, + or -
B)(), **, *,/,+,-
C)(),**,/,*,+,-
D)(),/,% or *,- or +
A)(),**,* or /, + or -
B)(), **, *,/,+,-
C)(),**,/,*,+,-
D)(),/,% or *,- or +
(),/,% or *,- or +
4
Which of the following is allowed in an arithmetic statement involving exprinstruction
A)[]
B){}
C)()
D)none of the above
A)[]
B){}
C)()
D)none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
5
The statement z='expr 5/2' would store in z a value
A)2.5
B)3
C)2
D)0
A)2.5
B)3
C)2
D)0
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
6
The expression expr -7 % 2evaluates to
A)1
B)-1
C)-3.5
D)0
A)1
B)-1
C)-3.5
D)0
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
7
The expression expr -2 % 7 evaluates to
A)2
B)-2
C)0
D)0.285
A)2
B)-2
C)0
D)0.285
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
8
Hierarchy decides which operator
A)is most important
B)is used first
C)is fastest
D)operates on largest numbers
A)is most important
B)is used first
C)is fastest
D)operates on largest numbers
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
9
The break statement is used to exit from
A)an if statement
B)a for loop
C)a program
D)none of the above
A)an if statement
B)a for loop
C)a program
D)none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
10
An until loop ensures that the statement within the loop get executed
A)only once
B)atleast once
C)not even once
D)none of the above
A)only once
B)atleast once
C)not even once
D)none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
11
Which option will be used with sort command to start sorting after the nth column of the (m+1)th field
A)-m.n
B)+m.n
C)+n.m+1
D)+(m+1).n
A)-m.n
B)+m.n
C)+n.m+1
D)+(m+1).n
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
12
Which command is used to terminate a process
A)shutdown
B)haltsys
C)cancel
D)kill
A)shutdown
B)haltsys
C)cancel
D)kill
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
13
The command is used to compare the files is known as
A)comp
B)cmp
C)do
D)ccp
A)comp
B)cmp
C)do
D)ccp
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
14
The command which transcribes the standard input to the standard output and also makes a copy of the same in a file is
A)tee
B)tr
C)sort
D)grep
A)tee
B)tr
C)sort
D)grep
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
15
Which command is used to remove a directory
A)rd
B)rmdir
C)dldir
D)rdir
A)rd
B)rmdir
C)dldir
D)rdir
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
16
Which of the following keys is used to replace a dingle character with new text
A)s
B)s.
C)r
D)c
A)s
B)s.
C)r
D)c
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
17
Which command is used to extract a specific columns from the file
A)cat
B)cut
C)grep
D)paste
A)cat
B)cut
C)grep
D)paste
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
18
Which command sends the word count of the file infile to the newfile.
A)wcinfile>newfile
B)wcnewfile
C)wcinfile - newfile
D)wcinfile | newfile
A)wcinfile>newfile
B)wcnewfile
C)wcinfile - newfile
D)wcinfile | newfile
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
19
Which command is used to remove the read permission of the file 'note' from both the group and others?
A)chmodgo+r note
B)chmodgo+rw note
C)chmod go-x note
D)chmod go-r, 4-x note
A)chmodgo+r note
B)chmodgo+rw note
C)chmod go-x note
D)chmod go-r, 4-x note
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
20
Which command is used to concatenate all files beginning with the string 'emp' and followed by a non-numeric characters?
A)cat emp[!0-9]
B)more [emp][!0-9]
C)cat emp[x-z]
D)cat emp[a-z]
A)cat emp[!0-9]
B)more [emp][!0-9]
C)cat emp[x-z]
D)cat emp[a-z]
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
21
Which command will be used with vi editor to insert text to left of cursor?
A)s
B)S
C)a
D)i
A)s
B)S
C)a
D)i
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
22
In vi editor, forward search is performed using the command.
A):pat.
B):pat
C)/pat
D)all of the above
A):pat.
B):pat
C)/pat
D)all of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
23
Which of the following special shell variables is used to process number of the last background job?
A)$!
B)$#
C)$0
D)$*
A)$!
B)$#
C)$0
D)$*
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
24
Which option will be used with ps command to slow the entire command line of the process being run?
A)-4
B)-f
C)-1
D)-4.
A)-4
B)-f
C)-1
D)-4.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
25
Which of the following command addresses all users who are currently hooked on?
A)write
B)mail
C)wall
D)mesg
A)write
B)mail
C)wall
D)mesg
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck