Академический Документы
Профессиональный Документы
Культура Документы
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.
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
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
11. The _________ command always takes input from standard input
12. The files can be opened and closed in shell scripts 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.
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.
-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.
1. A process can obtain its effective user ID by calling the ______ system call. [ ]
A) getpid B) geteuid C) getpuid D) getuid
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
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.
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.
18. The _________ command always takes input from standard input
19. The files can be opened and closed in shell scripts 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.
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
Cont..2
Code No: 117EE :2: Set No. 3
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.
16. The _________ command always takes input from standard input
17. The files can be opened and closed in shell scripts 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.
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
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
11. The _______________ command is used in shell for evaluating a command twice before executing
it.
14. The _________ command always takes input from standard input
15. The files can be opened and closed in shell scripts 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.
20. If no file is specified in sed command then sed reads input from _________________
-oOo-