github

Made bySaurav Hathi

CSE - Mock Test - 16

Q1:

Which command allows to view the current jobs being handled by the shell?

Tags:
Section:
Linux
Options:
Q2:

What is the output of the following program?

b =

[ -n $b ]

echo $?

[ -z $b ]

echo $?

Tags:
Section:
Linux
Options:
Q3:

What is the output of the following program?

[ -n $HOME ]

echo $?

[ -z $HOME ]

echo $?

Tags:
Section:
Linux
Options:
Q4:

What is the output of the following program?

x = 3; y = 5; z = 10;

if [( $x -eq 3 ) -a ( $y -eq 5 -o  $z -eq 10 )]

then

echo $x

else

echo $y

fi

Tags:
Section:
Linux
Options:
Q5:

What is the return value ($?) of this code:

os = Unix

[$osName = UnixName] && exit 2

[${os}Name = UnixName] && exit 3

Tags:
Section:
Linux
Options:
Q6:

How do you print the lines between 5 and 10, both inclusive

Tags:
Section:
Linux
Options:
Q7:

Which file system has journaling capability?

Tags:
Section:
Linux
Options:
Q8:

Which of the following unmask settings allow execute permission to be set by default on regular files

Tags:
Section:
Linux
Options:
Q9:

Which of the following unmask settings doesn’t allow execute permission to be set by default on directory files

Tags:
Section:
Linux
Options:
Q10:

What does chmod +t do?

Tags:
Section:
Linux
Options:
Q11:

A user executes the following command successfully:

$ chmod +x file1.txt

Which of the following is true of the output of this command?

Tags:
Section:
Linux
Options:
Q12:

If you are a root user, how can you grand execute permission only for the owner of the file project1?

Tags:
Section:
Linux
Options:
Q13:

Create a new file “new.txt” that is a concatenation of “file1.txt” and “file2.txt”

Tags:
Section:
Linux
Options:
Q14:

Which option of rmdir command will remove all directories a, b, c if path is a/b/c

Tags:
Section:
Linux
Options:
Q15:

Which command is used to set limits on file size

Tags:
Section:
Linux
Options:
Q16:

Which command prints the directory stack?

Tags:
Section:
Linux
Options:
Q17:

The command ‘compgen -c’ shows

Tags:
Section:
Linux
Options:
Q18:

Which command sets up shorthand for command or command line?

Tags:
Section:
Linux
Options:
Q19:

When mv f1 f2 is executed which file’s inode is freed?

Tags:
Section:
Linux
Options:
Q20:

Which of the following statement is False ?

Tags:
Section:
Linux
Options: