You are on page 1of 8

Code No: 117EE Set No.

1
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
IV B.Tech. I Sem., I Mid-Term Examinations, September-2017
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. Which symbol will be used with grep command to match the pattern pat at the beginning of a
line? [ ]
A) $pat B) ^pat C) pat$ D) pat^

2. The Octal number to be given along with chmod command to make a file readable, writable and
executable to the owner, readable and executable to group and others is [ ]
A) 000 B) 754 C) 755 D) 675

3. Which System Call can be used to move the file offset pointer? [ ]
A) stat B) chmod C) lseek D) fstat

4. A process can obtain its effective user ID by calling the ______ system call. [ ]
A) getpid B) geteuid C) getpuid D) getuid

5. The format of export command is [ ]


A) export variable = list B) export variable_list
C) export variable = value D) import variable = list.

6. The field separator in sort command is specified with [ ]


A) -a option B) -d option C) l option D) f option

7. In shell, when a command is executed, it returns a value known as the __________


of the command [ ]
A) Stream descriptor B) exit status C) Ksh D) eval

8. Sed maintains the hold space (a buffer) to [ ]


A) copy the each line of input B) save the data for later retrieval
C) both A. and B. D) none of the mentioned

9. Which one of the following is used by awk to control the conversion of numbers to string [ ]
A) RS B) RSTART C) SUBSEP D) OFMT

10. Which option is used by sed to specify that the following string is an instruction or set of
instructions? [ ]
A) n B) e C) f D) -i

Cont..2
Code No: 117EE :2: Set No. 1

II Fill in the Blanks

11. The _________ command always takes input from standard input

12. The files can be opened and closed in shell scripts using _____________ command.

13. Soft link can be created using ___________command

14. The process with process ID 0 is a special process called the ____________ process.

15. The __________________ flag value of open system call needs third argument while working with
ordinary files.

16. ______________ is the syntax for sed on command line

17. If no file is specified in sed command then sed reads input from _________________

18. The _______________ command is used in shell for evaluating a command twice before executing
it.

19. _________________ is the position parameter which holds scripts name.

20. In awk, the built-in variable FS is ________________________

-oOo-
Code No: 117EE Set No. 2
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
IV B.Tech. I Sem., I Mid-Term Examinations, September-2017
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. A process can obtain its effective user ID by calling the ______ system call. [ ]
A) getpid B) geteuid C) getpuid D) getuid

2. The format of export command is [ ]


A) export variable = list B) export variable_list
C) export variable = value D) import variable = list.

3. The field separator in sort command is specified with [ ]


B) -a option B) -d option C) l option D) f option

4. In shell, when a command is executed, it returns a value known as the __________


of the command [ ]
A) Stream descriptor B) exit status C) Ksh D) eval

5. Sed maintains the hold space (a buffer) to [ ]


A) copy the each line of input B) save the data for later retrieval
C) both A. and B. D) none of the mentioned

6. Which one of the following is used by awk to control the conversion of numbers to string [ ]
A) RS B) RSTART C) SUBSEP D) OFMT

7. Which option is used by sed to specify that the following string is an instruction or set of
instructions? [ ]
A) n B) e C) f D) -i

8. Which symbol will be used with grep command to match the pattern pat at the beginning of a
line? [ ]
A) $pat B) ^pat C) pat$ D) pat^

9. The Octal number to be given along with chmod command to make a file readable, writable and
executable to the owner, readable and executable to group and others is [ ]
A) 000 B) 754 C) 755 D) 675

10. Which System Call can be used to move the file offset pointer? [ ]
A) stat B) chmod C) lseek D) fstat

Cont..2
Code No: 117EE :2: Set No. 2

II Fill in the Blanks

11. The process with process ID 0 is a special process called the ____________ process.

12. The __________________ flag value of open system call needs third argument while working with
ordinary files.

13. ______________ is the syntax for sed on command line

14. If no file is specified in sed command then sed reads input from _________________

15. The _______________ command is used in shell for evaluating a command twice before executing
it.

16. _________________ is the position parameter which holds scripts name.

17. In awk, the built-in variable FS is ________________________

18. The _________ command always takes input from standard input

19. The files can be opened and closed in shell scripts using _____________ command.

20. Soft link can be created using ___________command

-oOo-
Code No: 117EE Set No. 3
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
IV B.Tech. I Sem., I Mid-Term Examinations, September-2017
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. The field separator in sort command is specified with [ ]


C) -a option B) -d option C) l option D) f option

2. In shell, when a command is executed, it returns a value known as the __________


of the command [ ]
A) Stream descriptor B) exit status C) Ksh D) eval

3. Sed maintains the hold space (a buffer) to [ ]


A) copy the each line of input B) save the data for later retrieval
C) both A. and B. D) none of the mentioned

4. Which one of the following is used by awk to control the conversion of numbers to string [ ]
A) RS B) RSTART C) SUBSEP D) OFMT

5. Which option is used by sed to specify that the following string is an instruction or set of
instructions? [ ]
A) n B) e C) f D) -i

6. Which symbol will be used with grep command to match the pattern pat at the beginning of a
line? [ ]
A) $pat B) ^pat C) pat$ D) pat^

7. The Octal number to be given along with chmod command to make a file readable, writable and
executable to the owner, readable and executable to group and others is [ ]
A) 000 B) 754 C) 755 D) 675

8. Which System Call can be used to move the file offset pointer? [ ]
A) stat B) chmod C) lseek D) fstat

9. A process can obtain its effective user ID by calling the ______ system call. [ ]
A) getpid B) geteuid C) getpuid D) getuid

10. The format of export command is [ ]


A) export variable = list B) export variable_list
C) export variable = value D) import variable = list.

Cont..2
Code No: 117EE :2: Set No. 3

II Fill in the Blanks

11. ______________ is the syntax for sed on command line

12. If no file is specified in sed command then sed reads input from _________________

13. The _______________ command is used in shell for evaluating a command twice before executing
it.

14. _________________ is the position parameter which holds scripts name.

15. In awk, the built-in variable FS is ________________________

16. The _________ command always takes input from standard input

17. The files can be opened and closed in shell scripts using _____________ command.

18. Soft link can be created using ___________command

19. The process with process ID 0 is a special process called the ____________ process.

20. The __________________ flag value of open system call needs third argument while working with
ordinary files.

-oOo-
Code No: 117EE Set No. 4
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
IV B.Tech. I Sem., I Mid-Term Examinations, September-2017
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. Sed maintains the hold space (a buffer) to [ ]


A) copy the each line of input B) save the data for later retrieval
C) both A. and B. D) none of the mentioned

2. Which one of the following is used by awk to control the conversion of numbers to string [ ]
A) RS B) RSTART C) SUBSEP D) OFMT

3. Which option is used by sed to specify that the following string is an instruction or set of
instructions? [ ]
A) n B) e C) f D) -i

4. Which symbol will be used with grep command to match the pattern pat at the beginning of a
line? [ ]
A) $pat B) ^pat C) pat$ D) pat^

5. The Octal number to be given along with chmod command to make a file readable, writable and
executable to the owner, readable and executable to group and others is [ ]
A) 000 B) 754 C) 755 D) 675

6. Which System Call can be used to move the file offset pointer? [ ]
B) stat B) chmod C) lseek D) fstat

7. A process can obtain its effective user ID by calling the ______ system call. [ ]
A) getpid B) geteuid C) getpuid D) getuid

8. The format of export command is [ ]


A) export variable = list B) export variable_list
C) export variable = value D) import variable = list.

9. The field separator in sort command is specified with [ ]


D) -a option B) -d option C) l option D) f option

10. In shell, when a command is executed, it returns a value known as the __________
of the command [ ]
A) Stream descriptor B) exit status C) Ksh D) eval

Cont..2
Code No: 117EE :2: Set No. 4

II Fill in the Blanks

11. The _______________ command is used in shell for evaluating a command twice before executing
it.

12. _________________ is the position parameter which holds scripts name.

13. In awk, the built-in variable FS is ________________________

14. The _________ command always takes input from standard input

15. The files can be opened and closed in shell scripts using _____________ command.

16. Soft link can be created using ___________command

17. The process with process ID 0 is a special process called the ____________ process.

18. The __________________ flag value of open system call needs third argument while working with
ordinary files.

19. ______________ is the syntax for sed on command line

20. If no file is specified in sed command then sed reads input from _________________

-oOo-

You might also like