Explore topic-wise MCQs in Testing Subject.

This section includes 657 Mcqs, each offering curated multiple-choice questions to sharpen your Testing Subject knowledge and support exam preparation. Choose a topic below to get started.

1.

The Unix command used to find out the number of characters in a file is

A. nc
B. wc
C. chcnt
D. c
Answer» C. chcnt
2.

Which of the following commands is used for an automatic remainder service?

A. write
B. calender
C. mail
D. mesg
Answer» C. mail
3.

The cc command makes a total of

A. 1 pass
B. 2 pass
C. 4 pass
D. 5 pass
Answer» E.
4.

Which of the following commands is used to count the total number of lines,words and characters contained in a file?

A. count p
B. wcount
C. wc
D. count w
Answer» D. count w
5.

Which command is used to display a file contents in octal form?

A. cd
B. of
C. od
D. oct
Answer» D. oct
6.

Which of the following commands is used to rename a file?

A. rename
B. mv
C. remove
D. ren
Answer» C. remove
7.

Which command is used with vi editor to delete a single character?

A. z
B. y
C. a
D. x
Answer» E.
8.

The tar command in UNIX

A. used to create compressed archives of directories and files
B. used to extract directories and files from an archives
C. both a and b
D. none of the above
Answer» D. none of the above
9.

Which command is used to sort the lines of data in a file in reverse order

A. sort
B. sh
C. st
D. sort -r
Answer» E.
10.

Which of the following changes permission to deny write permission to group and others?

A. chmod go-w filex
B. chmod go w filex
C. chmod go=w file
D. none of the above
Answer» B. chmod go w filex
11.

Which command is used with vi editor to move the cursor to the left?

A. i
B. k
C. j
D. h
Answer» E.
12.

Which command is used to create a directory?

A. crdir
B. mkdir
C. md
D. cr
Answer» C. md
13.

Which of the following is not a communication command?

A. write
B. mail
C. mesg
D. grep
Answer» E.
14.

Which command is used to extract specific columns from the file?

A. cut
B. grep
C. past
D. cat
Answer» B. grep
15.

Which command allows you to view your file 24 lines at a time ?

A. more
B. cat
C. pg
D. none of the above
Answer» B. cat
16.

Which command is used to display the device name of the terminal you are using?

A. who
B. ls
C. tty
D. stty
Answer» D. stty
17.

Which command will be used with vi editor to append text at end of line?

A. a
B. i
C. a
D. l
Answer» B. i
18.

Which of the following command the file names in multiple columns?

A. is–x
B. is
C. is–1
D. is–f–x
Answer» C. is–1
19.

Which command is used to remove a file ……

A. rename
B. mv
C. rm
D. del
Answer» D. del
20.

The tail command in UNIX……

A. can be used to look at the tail or bottom of the file
B. can be used to display the list of last 10 files in the current directory
C. can be used to display the list of last 15 in the current directory
D. none of the above
Answer» B. can be used to display the list of last 10 files in the current directory
21.

Which command is used to remove a directory?

A. rd
B. rmdir
C. dldir
D. rdir
Answer» C. dldir
22.

The sort command in UNIX ….

A. used to sort a file
B. used to sort the list of files in a directory
C. both a and b
D. none of the above
Answer» B. used to sort the list of files in a directory
23.

The command that can be used to restrict incoming messages to a user is………..

A. mesg
B. halt
C. grep
D. sleep
Answer» B. halt
24.

Which of the following file names can be found in more than one directory?

A. passwd
B. bin
C. date
D. none of the above
Answer» B. bin
25.

Which of the following system calls transforms an executable binary file into a process?

A. fork
B. exec
C. ioct1
D. longjmp
Answer» C. ioct1
26.

The child process invoke …….to execute program copy .

A. fork
B. execl
C. wait
D. printf
Answer» C. wait
27.

When a process makes a system call ,its mode changes from………

A. user to kernel
B. kernel to user
C. restricted to unrestricted
D. unrestricted to restricted
Answer» B. kernel to user
28.

The new process called, child process gets a ………... return value from fork.

A. -1
B. 0
C. 2
D. 1
Answer» C. 2
29.

The read system calls return 0 when ………..

A. it reaches middle of file
B. it reaches end of the file
C. file is empty
D. none of these
Answer» C. file is empty
30.

File discriptor programs uses………………...

A. to delete file
B. to save file
C. for subsequent references for file
D. none of these
Answer» D. none of these
31.

All system calls return ……..if open or create call fails

A. -2
B. 0
C. 1
D. -1
Answer» E.
32.

The open and create system calls returns an integer called a ……….

A. file number
B. file discriptor
C. file variable
D. none of these
Answer» C. file variable
33.

Permission mode 0666(octal) means…………

A. allowing all users acess to file for writing
B. allowing all users acess to file for reading
C. restrict to read and write
D. allowing all users access to file for reading writing
Answer» E.
34.

Permission mode on newly created file will be……

A. 0666(octal)
B. 0666(hexadecimal)
C. 0999(octal)
D. 0798(hex)
Answer» B. 0666(hexadecimal)
35.

Unix system treats devices as a ……..

A. hardware
B. file
C. byte
D. none of these
Answer» C. byte
36.

The Newly created files are ………….. of the file system directory structure.

A. main nodes
B. root nodes
C. leaf nodes
D. middle nodes
Answer» D. middle nodes
37.

Access permission can be set to …………

A. the file owner
B. a file group
C. everyone else
D. all of these
Answer» E.
38.

what is use of ls command ?

A. to list names and attribute of files
B. to list size of files
C. to list length of files
D. none of these
Answer» B. to list size of files
39.

System treats the data in a directory as a ……………..

A. byte stream
B. bit stream
C. stream
D. none of these
Answer» B. bit stream
40.

System accounting program acctcom find ……….

A. variable length record
B. fixed length record
C. no record
D. none of these
Answer» C. no record
41.

Text formatting program troff find …………. character at the end of each line

A. newline
B. slash
C. dot
D. none of these
Answer» B. slash
42.

Full path name starts with …..

A. dot
B. slash
C. double slash
D. non of these
Answer» C. double slash
43.

Directories are …….

A. fixed files
B. regular files
C. variable files
D. none of these
Answer» C. variable files
44.

Non leaf node of the file system structure is …………..

A. leaf node of file
B. directory of file
C. regular file
D. path name
Answer» C. regular file
45.

How many system calls in system V

A. 32
B. 64
C. 128
D. 16
Answer» C. 128
46.

what is a.out ?

A. system user program
B. private user program
C. local program
D. none of these
Answer» C. local program
47.

…………responsible for exchanging data between kernel and programs

A. system calls
B. thread
C. process
D. none of these
Answer» B. thread
48.

Out of 64 system calls in system V how many are frequently used…

A. 64
B. 32
C. 16
D. 128
Answer» C. 16
49.

Program such as Shell and editors interact with kernel by invoking ……….

A. process
B. thread
C. system calls
D. none of these
Answer» D. none of these
50.

Operating System is also called as ……….

A. system kernel
B. kernel
C. both a and b
D. none of these
Answer» D. none of these