mid1
mid1
1
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
III B.Tech. I Sem., I Mid-Term Examinations, September – 2011
LINUX PROGRAMMING
Objective Exam
Name: ______________________________ Hall Ticket No. A
Answer All Questions. All Questions Carry Equal Marks.Time: 20 Min. Marks: 10.
1. What command is used to count the total number of lines, words, and characters contained in a
file? [ ]
a) countw b) wcount c) wc d) count p
2. What command is used to sort the lines of data in a file in alphabetical order? [ ]
a) sort – r b) st c) sh d) sort
5. If command checks [ ]
a) Exit status of a command b) value of a command
c) Checks condition true or false d) all
7. The first thing that is searched when a command references a file is its [ ]
a) i-node b) inode number c) permission setting d) none
12. __________ command is used to search files for specified words or patterns.
13. Total number of positional parameters that can be passed in shell script are ___________.
18. The basic function of ______________ is to search files for lines (or other units of text) that
contain a pattern.
-oOo-
Code No: 55050 Set No. 2
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
III B.Tech. I Sem., I Mid-Term Examinations, September – 2011
LINUX PROGRAMMING
Objective Exam
Name: ______________________________ Hall Ticket No. A
Answer All Questions. All Questions Carry Equal Marks.Time: 20 Min. Marks: 10.
2. If command checks [ ]
a) Exit status of a command b) value of a command
c) Checks condition true or false d) all
4. The first thing that is searched when a command references a file is its [ ]
a) i-node b) inode number c) permission setting d) none
8. What command is used to count the total number of lines, words, and characters contained in a
file? [ ]
a) countw b) wcount c) wc d) count p
9. What command is used to sort the lines of data in a file in alphabetical order? [ ]
a) sort – r b) st c) sh d) sort
Cont……2
Code No: 55050 :2: Set No. 2
15. The basic function of ______________ is to search files for lines (or other units of text) that
contain a pattern.
19. __________ command is used to search files for specified words or patterns.
20. Total number of positional parameters that can be passed in shell script are ___________.
-oOo-
Code No: 55050 Set No. 3
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
III B.Tech. I Sem., I Mid-Term Examinations, September – 2011
LINUX PROGRAMMING
Objective Exam
Name: ______________________________ Hall Ticket No. A
Answer All Questions. All Questions Carry Equal Marks.Time: 20 Min. Marks: 10.
2. The first thing that is searched when a command references a file is its [ ]
a) i-node b) inode number c) permission setting d) none
6. What command is used to count the total number of lines, words, and characters contained in a
file? [ ]
a) countw b) wcount c) wc d) count p
7. What command is used to sort the lines of data in a file in alphabetical order? [ ]
a) sort – r b) st c) sh d) sort
Cont……2
Code No: 55050 :2: Set No. 3
13. The basic function of ______________ is to search files for lines (or other units of text) that
contain a pattern.
17. __________ command is used to search files for specified words or patterns.
18. Total number of positional parameters that can be passed in shell script are ___________.
-oOo-
Code No: 55050 Set No. 4
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
III B.Tech. I Sem., I Mid-Term Examinations, September – 2011
LINUX PROGRAMMING
Objective Exam
Name: ______________________________ Hall Ticket No. A
Answer All Questions. All Questions Carry Equal Marks.Time: 20 Min. Marks: 10.
4. What command is used to count the total number of lines, words, and characters contained in a
file? [ ]
a) countw b) wcount c) wc d) count p
5. What command is used to sort the lines of data in a file in alphabetical order? [ ]
a) sort – r b) st c) sh d) sort
8. If command checks [ ]
a) Exit status of a command b) value of a command
c) Checks condition true or false d) all
10. The first thing that is searched when a command references a file is its [ ]
a) i-node b) inode number c) permission setting d) none
Cont……2
Code No: 55050 :2: Set No. 4
11. The basic function of ______________ is to search files for lines (or other units of text) that
contain a pattern.
15. __________ command is used to search files for specified words or patterns.
16. Total number of positional parameters that can be passed in shell script are ___________.
-oOo-