GAT Subject :: All Aptitude Test ::

Hassan
1.Which of the following is a valid format for mounting a CD-ROM drive?
A. mount -t iso9660 /dev/cdrom / mnt/cdrom
B. mount /dev/cdrom
C. mount /mnt/cdrom
D. mount -t iso9660 /dev/cdrom / mnt/cdrom

2.What command do you use to create Linux file systems?
A. fdisk
B. mkfs
C. fsck
D. fdisk

3.Which of the following command can you execute to count the number of lines in a file?
A. lc
B. wc - l
C. cl
D. lc

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

5.What command is used to display the characteristics of a process?
A. au
B. ps
C. du
D. au

6.What command is not used to list the files chap01, chap02 and chap04?
A. ls chap*
B. ls chap[124]
C. ls - x chap0[124]
D. ls chap*

7.What command is used with vi editor to replace text from cursor to right
A. S
B. s
C. R
D. S

8.What sign is used to back up over typing errors in vi?
A. !
B. $
C. #
D. !

9.What sign is used to erase or kill an entire line you have typed and start you are on a new line (but not display a new prompt)?
A. !
B. $
C. #
D. !

10.What command is used to sort the lines of data in a file in alphabetical order?
A. sort - r
B. st
C. sh
D. sort - r

11.What command is used with vi editor to save file and remain in the editing mode?
A. x
B. q!
C. :w
D. x

12.What command is used with vi editor to move back to the beginning of a word?
A. w
B. e
C. a
D. w

13.What command is used with vi editor to search a pattern in the forward direction?
A. ??
B. //
C. ?
D. ??

14.What command is used to add printing jobs to the queue?
A. lpd
B. lpr
C. lpq
D. lpd

15.What protocol(s) is(are) allowed a user to retrieve her/his mail from the mail server to her/his mail reader?
A. POP3
B. FTP
C. MAP
D. POP3

16.What project is currently developing X server support?
A. XFree86 Project, Inc.
B. RHAD Labs
C. GNOME Project
D. XFree86 Project, Inc.

17.What X-based tool is available for configuring the X Window system?
A. XConfigurator
B. XF86Setup
C. xf86config
D. XConfigurator

18.Which of the following server is used with the BIND package?
A. httpd
B. shttp
C. dns
D. httpd

19.What port does squid listen, by default?
A. 4322
B. 2314
C. 7334
D. 4322

20.Which of the following is the main Apache configuration file?
A. /etc/apache.conf
B. /etc/httpd/config.ini
C. /etc/httpd/conf/httpd.conf
D. /etc/apache.conf

21.Which of the following command is used to access an SMB share on a Linux system?
A. NFS
B. SMD
C. smbclient
D. NFS

22.Which of the following command is used to see the services running in NFS server?
A. rpcinfo
B. serverinfo
C. NFSinfo
D. rpcinfo

23.In which tcp_wrappers file can you specify to allow all connections from all hosts?
A. /etc/hosts.allow
B. /etc/hosts.deny
C. /etc/hosts
D. /etc/hosts.allow

24.What command is used to list contents of directories?
A. tar
B. dir
C. lp
D. tar

25.What command is used with vi editor to append text at end of line?
A. I
B. i
C. a
D. I

26.What command is used to copy directory structures in and out?
A. copy
B. cp - p
C. cpio
D. copy

27.In OSI network architecture, the dialogue control and token management are responsible of
A. data link layer
B. transport layer
C. network layer
D. data link layer

28.Layer one of the OSI model is
A. network layer
B. transport layer
C. link layer
D. network layer

29.What layer of OSI determines the interface of the system with the user?
A. Session
B. Data-link
C. Application
D. Session

30.What command is used to remove jobs from the print queue?
A. lpq
B. lpr
C. lprm
D. lpq


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