Computer Science :: All Aptitude Test ::

1.Which of the following files will displayed by this command cat *ch*
A. patch
B. catch
C. .ch
D. patch

2.The Octal number to be given alogn with chmod command to make a file readable, writable and executable to the owner, readable and executable to group and others is:
A. 0
B. 755
C. 744
D. 0

3.If you are to use [Control-c] as the interrupt key instead of [Del], then you will have to use
A. tty ^c
B. stty intr ^c
C. stty echoe
D. tty ^c

4.Which of the following is not a communication command.
A. write
B. mesg
C. mail
D. write

5.Which of the following keys is used to move the cursor to the end of the paragraph.
A. }
B. {
C. |
D. }

6.The command which transcribes the standard input to the standard output and also makes a copy of the same in a file is
A. tee
B. tr
C. sort
D. tee

7.Which command is used to remove a file?
A. remove
B. rm
C. mv
D. remove

8.Which symbol is used to separate more than one command in the same command line?
A. $
B. #
C. :
D. $

9.The agency that sits between the user and the UNIX system is called the
A. logic
B. profile
C. shell
D. logic

10.Which of the following commands is used to update access and modification times of a file?
A. grep
B. wc
C. touch
D. grep

11.Which command is used to count just the number of characters in a file?
A. wc - 1
B. wc -c
C. wc -w
D. wc - 1

12.Which of the following commands is used to list contents of directories?
A. ls
B. lp
C. dir
D. ls

13.Which command is used to display a file contents in octal form?
A. cd
B. od
C. of
D. cd

14.Which command will be used with vi editor to insert text to left of cursor?
A. s
B. S
C. a
D. s

15.In vi editor, forward search is performed using the command.
A. :pat
B. ?pat
C. /pat
D. :pat

16.Which of the following special shell variables is used to process number of the last background job?
A. $!
B. $#
C. $0
D. $!

17.Which option will be used with ps command to show the entire command line of the process being run?
A. -4
B. -f
C. -1
D. -4

18.Which of the following command addresses all users who are currently hooked on?
A. write
B. mail
C. wall
D. write

19.Which option is used with rm command to make the command prompt the user with each filename and a ?, before acting on it
A. -r
B. -x
C. -i
D. -r

20.Which of the following directories contain all the Alias created by a user, including his login directory?
A. /tmp
B. /etc
C. /usr
D. /tmp

21.Which of the following commands is used to obtain a list of all files by modification time?
A. ls -1
B. ls -t
C. ls -i
D. ls -1

22.The % key allows you
A. to move the cursor to a matching delimiter, when a delimiters a parenthesis, a bracket, or a brace.
B. to move the cursor to the upperleft corner of the screen
C. to move the cursor backward to the beginning of a word
D. to move the cursor to a matching delimiter, when a delimiters a parenthesis, a bracket, or a brace.

23.Which command is used to display the characteristics of a process?
A. pid
B. du
C. ps
D. pid

24.Which of the following commands is used to identify the type of file by context?
A. ls
B. cat
C. file
D. ls

25.The field separator in cut command is specified with
A. -a option
B. -d option
C. -r option
D. -a option

26.Which of the following options will be used to display number of blocks used by a file?
A. -c
B. -i
C. -d
D. -c

27.Which option will be used with touch command to change the access time?
A. -a
B. -b
C. -t
D. -a

28.Which command is used to make all files and sub-directories in the directory (progs) executable by all users?
A. chmod -R a+x progs
B. chmod -R 222 progs
C. chmod -1 a+x progs
D. chmod -R a+x progs

29.Which command is used to display and create files?
A. cat
B. vi
C. ed
D. cat

30.The second set of the three permissions (r-) indicates that
A. group has read permission only
B. other has read permission only
C. owner has read permission only
D. group has read permission only


Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers