Home
Current Affairs January 2024

What is the correct answer?

4

Why the double ampersands are used in a regular expression?

A. The double ampersands (&&) are used in regular expression for deleting the specified string.

B. The double ampersands (&&) are used in regular expression for replacing the specified string.

C. The double ampersands (&&) are used in regular expression for searching the specified string.

D. None of the above

Correct Answer :

C. The double ampersands (&&) are used in regular expression for searching the specified string.


Related Questions

What is the correct answer?

4

What is the full form of GPL in Linux licensing?

A. Global Public License

B. General Private License

C. General Public License

D. Global Private License

What is the correct answer?

4

Which of the following commands are used to switch from command mode to insert mode in the vi editor?
a) i
b) a
c) o
d) O
Options

A. A and B

B. A and C

C. A, C, and D

D. A, B, C, and D

What is the correct answer?

4

Which of the following statements are the correct about XXXsort command?
a) This command is used to sort the content of a file in alphabetical order.
b) This command is used to sort the content of a file based on the column.
c) This command is used for numeric sorting bases on the column.
d) None of the Above.
Options:

A. A and B

B. A and C

C. A, B, and C

D. D

What is the correct answer?

4

The scope of an environment variable can be?

A. Local

B. Global

C. Both

D. None

What is the correct answer?

4

Which of the following types of arguments or operators are supported by expr command?
a) Plus '+' operator
b) Modulus operator
c) Regular expressions
d) Set of characters in the string
Options:

A. A and C

B. A and B

C. A, B, and C

D. A, B, C, and D

What is the correct answer?

4

Which of the following command is used to perform mathematical expression and print output on the terminal?

A. expr

B. exp

C. calexp

D. calexpr

What is the correct answer?

4

There are the following statements that are given below, which of them are correct about the /var directory in the Linux operating system?
a) This directory contains log files.
b) This directory contains cache files.
c) This directory contains spool files.
d) All the above
Options:

A. A and B

B. A and C

C. B and C

D. D

What is the correct answer?

4

What is the full form of MTU?

A. Maximum Transmission Unit

B. Minimum Transmission Unit

C. Multiple Transmission Unit

D. Minimum Transactional Unit

What is the correct answer?

4

Which of the following symbol is used to match the empty string at the beginning of a word?

A. \

B. %

C. $

D. (

What is the correct answer?

4

Which of the following symbol is used to match exactly one character?

A. $

B. ?

C. _

D. +

What is the correct answer?

4

Which exact command is used to set subnet mask in the Linux operating system?

A. ifconfig subnet

B. ifconfig subnet

C. ifconfig netmask

D. ifconfig netmask

What is the correct answer?

4

Which exact command is used, remove write, and execute permission from a file?

A. chmod w-x

B. chmod x-w

C. chmod we

D. chmod wx

What is the correct answer?

4

There are the following statements that are given below, which of them are correct about Linux shell?
a) Linux shell is a part of Linux kernel.
b) Linux shell provides an environment to execute commands.
c) Linux shell is used to execute scripts.
d) Linux shell is used to operate GPIO pins in the kernel.
Options:

A. A and B

B. B and C

C. A, B, and C

D. A, B, C, and D

What is the correct answer?

4

Which exact command is used to show information about specified interface?

A. ip show

B. ip a show

C. ip b show

D. ip show

What is the correct answer?

4

What is the extension of compressed file generated by bzip2 command?

A. .zip2

B. .bz2

C. .b2

D. .z2

What is the correct answer?

4

Which of the following commands are used to download files from a specified URL?
a) curl
b) wget
c) filedownload
d) All of the above
Options:

A. A and B

B. A and C

C. B and C

D. D

What is the correct answer?

4

Which of the following command is used to get brief information about Linux commands and functions?

A. info

B. incmd

C. whatis

D. cmddocs

What is the correct answer?

4

Which of the following is used to match any set of characters from the specified file in the grep command?

A. ()

B. {}

C. []

D. ##

What is the correct answer?

4

What is the range of UIDs is reserved for groups and system accounts?

A. 1-50

B. 51-100

C. 100-999

D. 1000-9999

What is the correct answer?

4

Which of the following Linux command is used to remove the value of an environment variable?

A. removeenv

B. remove

C. unset

D. delete

What is the correct answer?

4

How can we differentiate between file and directory from the output of ls command?

A. Directories are mentioned in capital letters in the output of ls command.

B. The d character is used before permissions in the output of ls command.

C. Both of the above

D. None of the above

What is the correct answer?

4

There are the following statements that are given below which of them are correct about piping in the Linux operating system?
a) The piping the process which is used to redirect the output of one command to another command as an input.
b) We use the pipe (|) operator to perform piping.
c) The piping is not supported in Linux; it works only in the UNIX operating system.
d) None of the above
Options:

A. Only A

B. Only B

C. A and B

D. A and C

What is the correct answer?

4

Which of the following commands is used to create a new user in the Linux operating system?

A. createuser

B. adduser

C. useradd

D. user

What is the correct answer?

4

Which of the following command is used to replace the current character in the vi editor?

A. R

B. rr

C. r

D. rc

What is the correct answer?

4

Which of the following characters are used for wildcards in the Linux operating system?
a) ?
b) *
c) []
d) <> 
Options:

A. A and B

B. A and C

C. A, B, and C

D. D

What is the correct answer?

4

Which command is used to execute a command based on the number assigned in the command history, here we denote command history number by N?

A. !N

B. #N

C. $N

D. !!N

What is the correct answer?

4

Why the double ampersands are used in a regular expression?

A. The double ampersands (&&) are used in regular expression for deleting the specified string.

B. The double ampersands (&&) are used in regular expression for replacing the specified string.

C. The double ampersands (&&) are used in regular expression for searching the specified string.

D. None of the above

What is the correct answer?

4

Which of the following character is used to identify the symbolic link file in the output of ls command?

A. s

B. c

C. l

D. _

What is the correct answer?

4

nslookup stands for?

A. Network System lookup

B. Network Server lookup

C. Name Server lookup

D. Next Server lookup

What is the correct answer?

4

What is the full form of AWK?

A. Active Working Kit

B. Active Well Kudos

C. Aho Weinberger Kernighan

D. Anderson Washington Kernighan