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 slang for " #! " is

A. hash-bang
B. shboom
C. shebang
D. more than one of the above
Answer» E.
2.

Examples of repetitive tasks performed by system administrators

A. disk space inventories
B. security audits
C. system backups
D. all of the above
Answer» E.
3.

The name of the Unix scheduling utility is

A. sched
B. cron
C. sc
D. timer
Answer» C. sc
4.

What is default administrator username ?

A. administrator
B. admin
C. superuser
D. root
Answer» E.
5.

What are the files attributes for executing perl programs ?

A. 666
B. 755
C. 766
D. 777
Answer» C. 766
6.

Which of the following creates a file named file1 ?

A. cat file1
B. cat > file1
C. cat < file1
D. cat
Answer» C. cat < file1
7.

Which of the following display content of file1 ?

A. cat file1
B. cat > file1
C. cat >> file2
D. cat
Answer» B. cat > file1
8.

How do you find your own username ?

A. who
B. user
C. whoami
D. root
Answer» D. root
9.

How do you remove a file ?

A. del
B. rm
C. cd
D. rmdir
Answer» C. cd
10.

Which command is used to debug a shell script program ?

A. set
B. set -x
C. debug
D. db
Answer» C. debug
11.

Which variable contains current shell process id ?

A. $*
B. $?
C. $$
D. $!
Answer» D. $!
12.

How do you find current directory you are in ?

A. cd
B. pwd
C. chdir
D. mkdir
Answer» C. chdir
13.

What's the command to find out users on the system ?

A. who
B. whoami
C. user
D. pwd
Answer» B. whoami
14.

How do you find out what's your shell ?

A. echo $shell
B. echo $shell
C. echo $shell
D. echo shell
Answer» B. echo $shell
15.

Which of the following is not a valid data type in python ?

A. int
B. float
C. double
D. str
Answer» D. str
16.

Which of following language does not requires declarations ?

A. java
B. c++
C. python
D. vb.net
Answer» D. vb.net
17.

What is command to find out todays date ?

A. time
B. date
C. cal
D. cd
Answer» C. cal
18.

Which of the following language has an IF statement for making decision ?

A. perl chomp function will
B. c++
C. python
D. all of these
Answer» E.
19.

Which of the following procedure a true or false result ?

A. control structure
B. strong typing
C. data types
D. boolean express
Answer» E.
20.

which of the following translate and execute programe statements in sequence, instead of having separate translation and execution steps ?

A. procedure
B. interpreter
C. paradigm
D. compiler
Answer» C. paradigm
21.

In python, multi line string are given by

A. single quotes
B. double quotes
C. triple quotes
D. none of the above
Answer» D. none of the above
22.

python source code file has an extension of

A. pys
B. py
C. src
D. none of the above
Answer» C. src
23.

"**" in python is an

A. exponentiation
B. address of
C. value redirection
D. none of the above
Answer» B. address of
24.

"//" in pyhon is

A. floor division operator
B. comment
C. new line
D. none of the above
Answer» B. comment
25.

In python, the list L contains the following elements : ['A', 1,'1','George']. Which of the following ways of slicing would assign only the first two elements to the variable X ?

A. l[1:2]
B. x=l[0:1]
C. x=[l[0:2]
D. none of the above
Answer» D. none of the above
26.

What is python ?

A. it is object oriented programming language
B. it is software package
C. it is intrpreter
D. it is assembly language
Answer» B. it is software package
27.

Default file accessed through a print statement in perl is

A. stdin
B. stdout
C. stderr
D. all of these
Answer» C. stderr
28.

Which of the following statements is NOT TRUE statements ?

A. perl chomp function will not remove all whitespace characters by default
B. perl chomp function returns the number of characters removed
C. perl chomp function checks whether the last character matches the input line separator and only then it deletes it.
D. it deletes the last ending varibale character regardless of whatever it is.
Answer» E.
29.

Perl uses this operator for

A. equal
B. comparision
C. less than or equal
D. greater than and equal
Answer» C. less than or equal
30.

The logical operator op1 && op2 means

A. performs a logical not of the operand
B. performs a logical or of the two operands
C. performs a logical and of the two operands
D. performs alogical and then or of the two operands
Answer» D. performs alogical and then or of the two operands
31.

An array, in perl, is an

A. un-ordered list of scalar data
B. ordered list of scalar data
C. ordered list of numbers
D. none of the above
Answer» C. ordered list of numbers
32.

comments are placed inside a perl program file using the character

A. @
B. %
C. $
D. #
Answer» E.
33.

which is escape character in perl ?

A. //
B. !
C. \\
D. |
Answer» D. |
34.

What is the extension of the perl file ?

A. .p
B. .pl
C. .perl
D. .pe
Answer» C. .perl
35.

Perl is scripting language which is based on

A. inerpreter
B. compiler
C. assembler
D. all of the above
Answer» B. compiler
36.

Perl define scalar variable by

A. @
B. %
C. $
D. #
Answer» D. #
37.

Which of the following expression operators increments a varibale by one ?

A. ..
B. .
C. **
D. *
Answer» C. **
38.

Scalar variables

A. include string exclusively
B. are defied two discrete values
C. are the building blocks of more complicated data structure
D. always operate in the same manner as variable in algebric function
Answer» D. always operate in the same manner as variable in algebric function
39.

STDIN, or standard in, is a mechanism for

A. performing type conversion automatically
B. retrieving data from the user while a script is executing
C. prompting the user for specific information
D. outputting a string to standard out
Answer» C. prompting the user for specific information
40.

Which of the following is true of all Perl scripts ?

A. meta characters are always preceded by a forward slash
B. perl statements are always followed by a period
C. parameters must always followed by period
D. perl statements are always followed by a semicolon
Answer» E.
41.

What is the first line in every perl script that contains special instructions to the operating system ?

A. the perl interpreter line
B. the shebang line the perl statement
C. the standard out line
D. the perl statement
Answer» C. the standard out line
42.

perl

A. is an effective multi tasking langugae that requires a great deal of development time.
B. is easy to learn and use, but awkward when dealing with compex tasks.
C. is available in all major operating system, but is quite expensive
D. can handle a variety of tasks involving large amounts of data with ease
Answer» E.
43.

The print function

A. retrives data from the user while a script is executing
B. prompts the user for specific information
C. modifies a string
D. outputs a string to standard out
Answer» E.
44.

Perl stands for

A. practical extraction and report language
B. practical extraction and ready language
C. post expression and report language
D. none of the above
Answer» B. practical extraction and ready language
45.

You want to add files to a previously created tar file. You want to replace existing files with newer files, how can you do this ?

A. use the append command
B. use the tar command with the - t switch
C. use the add command
D. use the tar command with the -u switch
Answer» E.
46.

You want to view a listing of previously enetered commands. What command would you use ?

A. hist
B. histfile
C. showbuff
D. history
Answer» E.
47.

What is output of following perl program ? My $val='x'; print ref($val);

A. scalar
B. empty value
C. string
D. "not a reference"
Answer» C. string
48.

You want to install lilo. Which of the following would you do to accomplish this ?

A. lilo -u
B. remove lilo
C. uninstall lilo
D. lilo -r
Answer» B. remove lilo
49.

You want there to be 3 grace days after a password expires before an account becomes disabled. How would you do this ?

A. use the useradd command with the -f switch
B. check the delay option in user admin
C. edit the user\s user.config file
D. use the useradd command with the -d switch
Answer» B. check the delay option in user admin
50.

What option can be used with shutdown command to send a warning message alerting users that the system will be shutdown ?

A. shutdown -k
B. shutdown -w
C. shutdown -a
D. shutdown -c
Answer» B. shutdown -w