0% found this document useful (0 votes)
9 views8 pages

mid1

The document contains multiple sets of objective exam questions for a Linux Programming course at Jawaharlal Nehru Technological University Hyderabad. Each set includes multiple-choice questions and fill-in-the-blank questions covering various Linux commands and concepts. The exam is designed for III B.Tech. I Sem. students, with a total duration of 20 minutes and a maximum score of 10 marks.

Uploaded by

Sachin Pukale
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views8 pages

mid1

The document contains multiple sets of objective exam questions for a Linux Programming course at Jawaharlal Nehru Technological University Hyderabad. Each set includes multiple-choice questions and fill-in-the-blank questions covering various Linux commands and concepts. The exam is designed for III B.Tech. I Sem. students, with a total duration of 20 minutes and a maximum score of 10 marks.

Uploaded by

Sachin Pukale
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Code No: 55050 Set No.

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.

I Choose the correct alternative:

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

3. Which command is used to clear the screen? [ ]


a) clear b) %clear c) %clrscr d) either a or c

4. In shell script $# tells [ ]


a) total number of parameters passed to the shell script
b) the first parameter passed to the shell script
c) last parameter to the shell script
d) none

5. If command checks [ ]
a) Exit status of a command b) value of a command
c) Checks condition true or false d) all

6. [ -n string ] checks for [ ]


a) True if length is zero b) true is length is greater than zero
c) True if the value is zero d) true if string is not null string

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

8. Differences between system calls and library function [ ]


a) System calls are part of OS b) Library calls are adds-on
c) library functions invoke system calls d) all

9. What command is used to remove the directory? [ ]


a) rdir b) remove c) rd d) rmdir

10. Which character is used to match exactly one character? [ ]


a) | b) * c) ^ d) ?
Cont……2
Code No: 55050 :2: Set No. 1

II Fill in the blanks


11. __________command is used to remove files

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 ___________.

14. In the if statement value for success is_____________.

15. Giving output of one command to another command is called as _____________.

16. Process is _______________.

17. File descriptors for standard output is _____________.

18. The basic function of ______________ is to search files for lines (or other units of text) that
contain a pattern.

19. ___________command changes the group id of a file.

20. $mount displays _________________.

-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.

I Choose the correct alternative:

1. In shell script $# tells [ ]


a) total number of parameters passed to the shell script
b) the first parameter passed to the shell script
c) last parameter to the shell script
d) none

2. If command checks [ ]
a) Exit status of a command b) value of a command
c) Checks condition true or false d) all

3. [ -n string ] checks for [ ]


a) True if length is zero b) true is length is greater than zero
c) True if the value is zero d) true if string is not null string

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

5. Differences between system calls and library function [ ]


a) System calls are part of OS b) Library calls are adds-on
c) library functions invoke system calls d) all

6. What command is used to remove the directory? [ ]


a) rdir b) remove c) rd d) rmdir

7. Which character is used to match exactly one character? [ ]


a) | b) * c) ^ d) ?

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

10. Which command is used to clear the screen? [ ]


a) clear b) %clear c) %clrscr d) either a or c

Cont……2
Code No: 55050 :2: Set No. 2

II Fill in the blanks

11. In the if statement value for success is_____________.

12. Giving output of one command to another command is called as _____________.

13. Process is _______________.

14. File descriptors for standard output is _____________.

15. The basic function of ______________ is to search files for lines (or other units of text) that
contain a pattern.

16. ___________command changes the group id of a file.

17. $mount displays _________________.

18. __________command is used to remove files

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.

I Choose the correct alternative:

1. [ -n string ] checks for [ ]


a) True if length is zero b) true is length is greater than zero
c) True if the value is zero d) true if string is not null string

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

3. Differences between system calls and library function [ ]


a) System calls are part of OS b) Library calls are adds-on
c) library functions invoke system calls d) all

4. What command is used to remove the directory? [ ]


a) rdir b) remove c) rd d) rmdir

5. Which character is used to match exactly one character? [ ]


a) | b) * c) ^ d) ?

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

8. Which command is used to clear the screen? [ ]


a) clear b) %clear c) %clrscr d) either a or c

9. In shell script $# tells [ ]


a) total number of parameters passed to the shell script
b) the first parameter passed to the shell script
c) last parameter to the shell script
d) none

10. If command checks [ ]


a) Exit status of a command b) value of a command
c) Checks condition true or false d) all

Cont……2
Code No: 55050 :2: Set No. 3

II Fill in the blanks


11. Process is _______________.

12. File descriptors for standard output is _____________.

13. The basic function of ______________ is to search files for lines (or other units of text) that
contain a pattern.

14. ___________command changes the group id of a file.

15. $mount displays _________________.

16. __________command is used to remove files

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 ___________.

19. In the if statement value for success is_____________.

20. Giving output of one command to another command is called as _____________.

-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.

I Choose the correct alternative:

1. Differences between system calls and library function [ ]


a) System calls are part of OS b) Library calls are adds-on
c) library functions invoke system calls d) all

2. What command is used to remove the directory? [ ]


a) rdir b) remove c) rd d) rmdir

3. Which character is used to match exactly one character? [ ]


a) | b) * c) ^ d) ?

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

6. Which command is used to clear the screen? [ ]


a) clear b) %clear c) %clrscr d) either a or c

7. In shell script $# tells [ ]


a) total number of parameters passed to the shell script
b) the first parameter passed to the shell script
c) last parameter to the shell script
d) none

8. If command checks [ ]
a) Exit status of a command b) value of a command
c) Checks condition true or false d) all

9. [ -n string ] checks for [ ]


a) True if length is zero b) true is length is greater than zero
c) True if the value is zero d) true if string is not null string

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

II Fill in the blanks

11. The basic function of ______________ is to search files for lines (or other units of text) that
contain a pattern.

12. ___________command changes the group id of a file.

13. $mount displays _________________.

14. __________command is used to remove files

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 ___________.

17. In the if statement value for success is_____________.

18. Giving output of one command to another command is called as _____________.

19. Process is _______________.

20. File descriptors for standard output is _____________.

-oOo-

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy