Operating System

364. Which command makes all files executable in directory progs?
Directory progs में सभी files executable बनाने का command?
(UGC NET C.S. June-2018 (Paper-II))
A. chmod -R a+x progs
B. chmod -R 222 progs
C. chmod -X a+x progs
D. chmod -X 222 progs

Correct Answer: A

Explanation (EN): chmod -R a+x recursively gives execute permission.

Explanation (HI): यह command recursively execute permission देता है।

365. In Linux OS, which command prints a file?
Linux में file print करने का command?
(UGC NET C.S. December-2018 (Paper-II))
A. Print
B. Lpr
C. Pr
D. Ptr

Correct Answer: B

Explanation (EN): lpr command is used for printing files.

Explanation (HI): lpr command file print करता है।

366. Which statements are true about Windows XP?
Windows XP statements
(UGC NET C.S. December-2018 (Paper-II))
A. Only ii
B. None
C. Both
D. Only i

Correct Answer: C

Explanation (EN): Windows XP supports both network types and dynamic protocol loading.

Explanation (HI): Windows XP दोनों network types support करता है।

367. Largest file size using i-node with given configuration?
i-node maximum file size
(UGC NET C.S. June-2020 (Paper-II))
A. 513 KB
B. 513 MB
C. 537 MB
D. 537 KB

Correct Answer: B

Explanation (EN): Calculation yields approx 513 MB.

Explanation (HI): Calculation के अनुसार लगभग 513 MB।

368. Which pipe counts lines in .c and .h files?
कौन-सा pipe .c और .h files की lines count करता है?
(UGC NET C.S. Exam-24 June-2019 (Paper-II))
A. cat*ch|wc -l
B. cat*[c-h]|wc -l
C. cat*[ch]|ls -l
D. cat*[ch]|wc -l

Correct Answer: D

Explanation (EN): cat*[ch] selects .c and .h files and wc -l counts lines.

Explanation (HI): यह command .c और .h files की lines count करता है।

369. fork() returns ______ to child process.
fork() child process को क्या return करता है?
(RPSC C.S. 2016 (PAPER-I))
A. Parent PID
B. 0
C. 1
D. NULL

Correct Answer: B

Explanation (EN): Child gets 0, parent gets PID.

Explanation (HI): Child को 0 मिलता है।

370. Number of arguments in Unix is identified by?
Unix में arguments की संख्या कैसे पता करते हैं?
(RPSC C.S. 2016 (PAPER-I))
A. $$
B. $?
C. $*
D. $#

Correct Answer: D

Explanation (EN): $# gives number of arguments.

Explanation (HI): $# arguments की संख्या बताता है।

371. Which is not valid file open mode in Unix?
Unix में invalid file open mode कौन-सा है?
(RPSC C.S. 2016 (PAPER-I))
A. O_RDONLY
B. O_WRONLY
C. O_WRRK
D. O_RDWR

Correct Answer: C

Explanation (EN): O_WRRK is invalid.

Explanation (HI): O_WRRK valid mode नहीं है।

372. Return type of write system call in Unix?
Unix में write system call का return type क्या है?
(RPSC C.S. 2016 (PAPER-I))
A. size_t
B. ssize_t
C. int
D. char

Correct Answer: B

Explanation (EN): write returns ssize_t.

Explanation (HI): write का return type ssize_t होता है।

373. Default lines shown by head command?
head command default कितनी lines दिखाता है?
(RPSC C.S. 2016 (PAPER-I))
A. 3
B. 5
C. 10
D. 100

Correct Answer: C

Explanation (EN): Default is 10 lines.

Explanation (HI): Default 10 lines होती हैं।