Home
Current Affairs January 2024

What is the correct answer?

4

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

A. $

B. ?

C. _

D. +

Correct Answer :

B. ?


The question mark (?) is used to match exactly one character.

Related Questions

What is the correct answer?

4

Which of the following statements are the correct about XXXsed command?
a) The sed command is used to display modified data on the console screen, actual data in the file remain the same.
b) The sed command is used to modify the data of a file permanently.
c) The regular expressions are used to display modified data of a file in the sed command.
d) The sed command does not use regular expressions.
Options:

A. A and C

B. A and D

C. B and C

D. B and D

What is the correct answer?

4

Which exact command is used, when we want to search words in the file that can be ABC1, ABC5, and ABC8?

A. grep ABC[0-9]

B. grep ABC(0-9)

C. grep ABC(0-9)

D. grep ABC(0-9)

What is the correct answer?

4

Which of the following information can be displayed using the netstat command?
a) Information about programs related to open socket.
b) Information about routing tables.
c) Statistics about all ports
d) All of the above
Options:

A. A and B

B. B and C

C. A and C

D. D

What is the correct answer?

4

How can we see the compression ratio of a file?

A. Using -c option of gzip command

B. Using -r option of gzip command

C. Using -l option of gzip command

D. Using -cr option of gzip command

What is the correct answer?

4

Which file contains encrypted user's passwords?

A. /etc/passwords

B. /etc/shadow

C. /etc/pwd

D. /etc/pwds

What is the correct answer?

4

There are the following statements that are given below which of them are correct about the ss command in the Linux operating system?
a) The ss command is the replacement for the netstat command.
b) It is faster than the netstat command.
c) We can display all UDP and TCP socket connections using ss command.
d) The ss can display all TCP socket connections only.
Options:

A. A and B

B. A and C

C. A, B, and C

D. A, B, and D

What is the correct answer?

4

Which of the following command is used to save and quit from the vi editor?

A. :q

B. :Q

C. :wq

D. :q!

What is the correct answer?

4

Which of the following command is known as bang bang in the Linux operating system?

A. ##

B. ,

C. !!

D. @@

What is the correct answer?

4

There are the following statements are given below, which of them are the correct about the ps command in the Linux system?
a) This command is used to display information about processes running in the system.
b) This command displays the memory occupied by a system call.
c) This command displays the process id of the running processes.
d) This command displays the name of the running processes.
Options:

A. A and B

B. A, B, and C

C. A, C, and D

D. A, B, C, and D

What is the correct answer?

4

Which of the following Linux distribution does not follow the File Hierarchy System?
a) Ubuntu
b) GoboLinux
c) NixOS
d) Redhat
Options:

A. A and B

B. A and C

C. B and C

D. B and D

What is the correct answer?

4

In which year vi editor was developed?

A. 1976

B. 1980

C. 1982

D. 1988

What is the correct answer?

4

Which of the following option is used to mention delimiter in the cut command?

A. -del

B. -d

C. -delmiter

D. -delm

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 are non-standard directories?
a) /lost+found
b) /var
c) /run
d) /cdrom
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 command is used to create multiple directories in a single command?

A. md

B. mkdir

C. makedir

D. mkdirs

What is the correct answer?

4

Which of the following directory contains interrupts related files?

A. /proc

B. /dev

C. /var

D. /home

What is the correct answer?

4

There are the following statements that are given below, which of them are correct about Globbing?
a) The Globbing is used to recognize the wildcard characters and then expand them into path-name.
b) The Globbing is also known as path-name expansion.
c) The File Globbing is not supported by the Linux operating system.
d) All the above
Options:

A. A and B

B. A and C

C. A, B, and C

D. D

What is the correct answer?

4

Which of the following command is used to display the path of a command in the Linux File System?

A. pcmd

B. which

C. pathcmd

D. None of the above

What is the correct answer?

4

Which of the following command is used to move up in the vi editor?

A. I

B. h

C. j

D. k

What is the correct answer?

4

Which of the following command is used to rename the file names that contain text with txt in the current directory?

A. rename 'r/txt/text' *

B. rename 'e/text/txt' *

C. rename 's/txt/text' *

D. rename 's/text/txt' *

What is the correct answer?

4

Which of the following type of permissions are used for files and directories in the Linux Operating System?
a) Read
b) Write
c) Execute
d) All of the above
Options:

A. A and B

B. B and C

C. A and C

D. D

What is the correct answer?

4

Which of the following Linux command is used to set values in environment variables?

A. setval

B. setenv

C. export

D. env

What is the correct answer?

4

Which of the following command is used to print the number of lines that exist in the specified file?

A. awk 'END { print NL }'

B. awk 'END { print N }'

C. awk 'END { print NR }'

D. awk 'END { print NN }'

What is the correct answer?

4

Which of the following operator is used to store the exit code of a previous command?

A. $?

B. %$

C. ?&

D. ?@

What is the correct answer?

4

There are the following statements that are given below, which of them are correct system libraries in Linux operating system?
a) System libraries are a special program.
b) We can use kernel functionalities using system libraries.
c) System libraries are user programs.
d) System libraries used system calls.
Options:

A. A and B

B. B and C

C. A, B, and D

D. A, B, and C

What is the correct answer?

4

Which of the following are correct types of shells used in the Linux operating system?
a) Bourne shell
b) Korn shell
c) Bourne Again shell
d) POSIX shell
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 of the following command is used to switch two characters in vi editor?

A. sc

B. xp

C. xc

D. xx

What is the correct answer?

4

Which of the following command is used to search the file(s) within the specified directory?

A. search

B. find

C. fileseach

D. fsearch

What is the correct answer?

4

What is the full form of OFS in AWK?

A. Object Field Separator

B. Obsolete Field Separator

C. Officiated Field Separator

D. Output Field Separator

What is the correct answer?

4

Which exact command is used to assign all read, write and execute permission to all owners of a file?

A. chmod 7

B. chmod 777

C. chown 777

D. chgrp 777