LP Objective Bits
-
Upload
sree-kanth -
Category
Documents
-
view
213 -
download
0
Transcript of LP Objective Bits
-
8/15/2019 LP Objective Bits
1/5
Objective bits
MID -1
SET-11. What command is used to count the total number of lines, words, andcharacters contained in ale?[ ]a) countw b) wcount c) wc d) count p2. What command is used to sort the lines of data in a le in alphabeticalorder? [ ]a) sort – r b) st c) sh d) sort3. Which command is used to clear the screen? [ ]
a) clear b) clear c) clrscr d) either a or c!. "n shell script #$ tells [ ]a) total number of parameters passed to the shell scriptb) the rst parameter passed to the shell scriptc) last parameter to the shell scriptd) none%. "f command chec&s [ ]a) Eit status of a command b) 'alue of a commandc) (hec&s condition true or false d) all. [ *n strin+ ] chec&s for [ ]a) rue if len+th is -ero b) true is len!th is !reater than "ero
c) rue if the 'alue is -ero d) true if strin+ is not null strin+. he rst thin+ that is searched when a command references a le is its [ ]a) i*node b) inode number c) permission settin+ d) none/. 0ierences between sstem calls and librar function [ ]a) stem calls are part of 4 b) 5ibrar calls are adds*onc) librar functions in'o&e sstem calls d) all6. What command is used to remo'e the director? [ ]a) rdir b) remo'e c) rd d) rmdir17. Which character is used to match e8actl one character? [ ]a) 9 b) : c) ; d) #
SET-$
1. Which of the followin+ command is used to count number of lines in a le?
[ ]
a) ln b) nl c) wc d) all2. Which option of cut command is used to specif eld
-
8/15/2019 LP Objective Bits
2/5
a) – c b) % f c) – = d) – d3. he +rep command is used to [ ]
a) sorts the content of a le b) search a &le for presence of astrin! !. he >"0 of the lo+in shell is stored in 'ariable. [ ]
a) #: b) #$ c) #@ d) ''%. Which of the followin+ is not a shell command? [ ]a) !et b) e8it c) set d) test
. he sstem identies a le b its [ ]a) name b) absolute path c) le owner d) i-node number
. he default permission bits of a le when it is created for the rst time, iscontrolled b 'alue. [ ]a) chmod b) fmas& c) umas( d) perm
/. Which of the followin+ elds in the structure state, has information aboutthe permission settin+ of a le? [ ]a) st+id b) stmode c) stino d) stuid
6. Which of the followin+ feature is not supported b waitpid function? [ ]a) "t waits for one particular process b) "t supports Aob controlc) "t pro'ides a non*bloc&in+ d) It provides bloc(in!
17. he si+nal that can
-
8/15/2019 LP Objective Bits
3/5
17. metacharacter +i'es a shell choice of an one character e8ceptthose enclosed in the list. [ ]
a) [..] b) 2334 c) [?..] d)[:..]
MID % $
SET-1
1. Which is the fastest form of IPC [ ]Ha) hared memor Hb) emaphore Hc) ="=4 F >ipe Hd) Lessa+e Mueue
2. The maximum number of semaphore allowed per set is defined by [ ]
Ha) KLLC" Hb) KLLC Hc) KLL5 Hd) KL4>L
. ! process should ha"e this permission for semaphores too increase or decrease their "alues
[ ]Ha) Write Hb) Jead Hc) a or b Hd) Noth a and b
#. Which function is called to create a child process [ ]
Ha) >ipeH) Hb) createH) Hc) for&H) Hd) m&node
$. The return "alue of se%ment function on success [ ]Ha) 7 Hb) *1 Hc) positi'e inte+er Hd) ne+ati'e inte+er
&. Which one of the followin% is not a system call for connection less protocol [ ]Ha) NindH) Hb) soc&etH) Hc) connectH) Hd) send toH)
'. (oc)et type and address family are used to %et* [ ]
Ha) oc&et name Hb) soc&et descriptor Hc) soc&et address Hd) soc&et number
+. ! host with multiple IP address is called* [ ]
,a- ulti homed machine ,b- ulti IP machineHc) Lulti 'alued machine Hd) Lulti machine
/. Which P0(I!PI is to create a thread [ ]
Ha) >threade8it Hb) pthreadself Hc) pthreadcreate Hd) pthread&ill
1. 3ow many times can a mutex loc) be initiali4ed in a process5 [ ]
Ha) 2 Hb)1 Hc) ! Hd) 3
-
8/15/2019 LP Objective Bits
4/5
KEY : 1. A 2. C 3. A 4. C 5. C 6. C 7. B 8. A 9. C 10. B
SET-$
1. Pipe [ ]a- Character bein% passed from one process to another process b- one way communication channelc- Inputs at one end becomes output at other end d- all
2. ms%snd ,- [ ]a- To access the member of messa%e 6ueue b- To create messa%e 6ueue
c- To send messa%e to 6ueue d- To recei"e messa%e from 6ueue
. In binary semaphores "alue of semaphore 7 [ ]
a- resource is loc)ed b- resource is a"ailable c- resource is una"ailable d- none#. In shmctl,- the cmd IPC8(T!T specifies [ ]
a- to remo"e shared memory area b- to %et the shared memory structure shmid8dsc- to %et the status of shared memory from shmid8ds d- both b 9 c
$. :ach thread has a uni6ue [ ]
a- Thread I; b- set of re%isters c-stac) pointer d- all&. pthread8exit,- used to [ ]
a- :xplicitly exit a thread b- Closes all the threads c- both a 9 b d- none
7. What is the full form of 5 [ ]a-
-
8/15/2019 LP Objective Bits
5/5