Site icon T4Tutorials.com

Operating Systems Specialist MCQs 

1. : We can skip some initial bytes from both the files to be compared by using ______

(A) -b option


(B) -i option


(C) -l option


(D) -n option



2. : For displaying the differences between files, what command do we use?

(A) comm


(B) cmp


(C) diff


(D) differ



3. : For producing multi-columnar output in diff command, what option do we use?

(A) -s


(B) -v


(C) -y


(D) -e



4. : What command can we use if we are interested in knowing whether the two files are identical or not?

(A) cmp


(B) diff


(C) comm


(D) differ



5. : If we want to suppress column 1 and column 2 in the output of comm command, what command will we use?

(A) comm -1,-2


(B) comm -1-2


(C) comm -3


(D) comm -12



6. : What will be the output of diff command when two files are identical?

(A) Returns prompt


(B) Files are identical


(C) No output


(D) Throws an error



7. : For comparing two files, what command do we use?

(A) diff


(B) comp


(C) cmp


(D) comm



8. : If both the files are identical, the exit status of cmp command is ______

(A) 1


(B) 0


(C) 2


(D) Undefined



9. : For displaying a detailed list of mismatches, which option do we use with cmp command?

(A) -l


(B) -b


(C) -f


(D) -a



10. : Two sorted files line by line are compared by ______

(A) cmp


(B) comm


(C) diff


(D) sort



11. : For limiting the number of bytes to be compared, which option do we use with cmp command?

(A) -f


(B) -l


(C) -n


(D) -b



Exit mobile version