102-400 Exam Questions
158 real 102-400 exam questions with expert-verified answers and explanations. Page 2 of 4.
- Question #73
Which configuration file would be edited to change default options for the OpenSSH server?
- Question #74
Which of the following find commands will print out a list of files owned by root and with the SUID bit set in /usr?
- Question #77
Which command makes the shell variable named VARIABLE visible to subshells?
- Question #78
What output will the command seq 10 produce?
- Question #81
After issuing: function myfunction { echo $1 $2 ; } in Bash, which output does: myfunction A B C Produce?
- Question #82
Which of the following commands puts the output of the command date into the shell variable mydate?
- Question #83
Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)
- Question #84
What is the difference between the commands test -e path and test -f path?
- Question #85
How can the existing environment variable FOOBAR be suppressed for the execution of the script./myscript only?
- Question #86
To prevent a specific user from scheduling tasks with at, what should the administrator do?
- Question #87
Which of the following crontab entries will execute myscript at 30 minutes past every hour on Sundays?
- Question #88
Which of the following files assigns a user to its primary group?
- Question #89
Which of the following commands should be added to /etc/bash_profile in order to change the language of messages for an internationalized program to Portuguese (pt)?
- Question #91
Which commands can be used to change a user's account aging information? (Choose THREE correct answers.)
- Question #93
What is NOT contained in the locale setting of the operating system?
- Question #94
What is true about the file /etc/localtime?
- Question #95
What output will the following command produce? seq 1 5 20
- Question #96
Which of the following words is used to restrict the records that are returned from a SELECT SQL query based on a supplied criteria for the values in the records?
- Question #97
Which of the following commands lists all defined variables and functions within Bash?
- Question #98
Which of the following SQL queries counts the number of occurrences for each value of the field order_type in the table orders?
- Question #99
What is the purpose of the file /etc/profile?
- Question #101
Which of the following are requirements in order to run a shell script like a regular command from anywhere in the filesystem? (Choose THREE correct answers.)
- Question #102
Which file used by XDM specifies the default wallpaper?
- Question #104
The X11 configuration file xorg.conf is grouped into sections. How is the content of the section SectionName associated with that section?
- Question #107
Which of the following commands preloads and manages keys that are used for automatic authentication while logging in to other machines using SSH?
- Question #108
What is a purpose of an SSH host key?
- Question #109
Which of the following commands can be used to limit the amount of memory a user may use?
- Question #111
Which of the following commands connects to the remote host example.com which has OpenSSH listening on TCP port 2222? (Choose TWO correct answers.)
- Question #112
What output will the following command sequence produce? echo '1 2 3 4 5 6' | while read a b c; do echo result: $c $b $a; done
- Question #113
When the command echo $ outputs 1, which of the following statements is true?
- Question #116
Which of the following tasks can be accomplished using the command date? (Choose TWO correct answers.)
- Question #117
Which of the following are syslog facilities? (Choose TWO correct answers.)
- Question #118
What is the purpose of the command mailq?
- Question #119
Which file inside the CUPS configuration directory contains the definition of the printers?
- Question #120
What is true regarding the command sendmail?
- Question #121
You are looking into a new script you received from your senior administrator. In the very first line you notice a #! followed by a file path. This indicates that:
- Question #122
Which of the following is the best way to list all defined shell variables?
- Question #123
Which command will print the exit value of the previous command to the screen in bash?
- Question #124
Within smb. conf, which security setting will NOT require that a client connect using a valid usernarne and password before connecting to a shared resource?
- Question #125
Which of the following lines would you find in the file /etc/nsswitch.conf?
- Question #126
Which command is used to display user resource limits?
- Question #127
Your department decided to change the Gnome Display Manager's greeting. What configuration file should you edit?
- Question #128
You want to make the directory /home/tess available via NFS. Which option do you have to use to grant read permission for the root user on the NFS mounted file system?
- Question #129
Which command allows you to make a shell variable visible to subshells?
- Question #130
Which of the following SQL statements will select the fields name and address from the contacts table?
- Question #131
What benefit does an alias in bash provide?
- Question #132
What keyword is missing from this code sample of a shell script? ____ i in *.txt; do echo $i done
- Question #133
What is the purpose of the Sticky Keys feature in X?
- Question #134
On a system running the KDE Display Manager, when is the /etc/kde4/kdm/Xreset script automatically executed?
- Question #135
Why is the xhost program considered dangerous to use?