102-500 Exam Questions
228 real 102-500 exam questions with expert-verified answers and explanations. Page 4 of 5.
- Question #173
When the command echo $ outputs 1, which of the following statements is true?
- Question #174
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 #175
What output will the command seq 10 produce?
- Question #176
After issuing: function myfunction { echo $1 $2 ; } in Bash, which output does: myfunction A B C Produce?
- Question #177
Which of the following files, when existing, affect the behavior of the Bash shell? (Choose two correct answers.)
- Question #178
What is the difference between the commands test -e path and test -f path?
- Question #179
How can the existing environment variable FOOBAR be suppressed for the execution of the script./myscript only?
- Question #180
When the command echo $$ outputs 12942, what is the meaning of 12942?
- Question #181
What output will the following command produce? seq 1 5 20
- Question #182
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 #183
Which of the following commands preloads and manages keys that are used for automatic authentication while logging in to other machines using SSH?
- Question #184
Which of the following SQL queries counts the number of occurrences for each value of the field order_type in the table orders?
- Question #185
What is the purpose of the file /etc/profile?
- Question #186
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 #187
Which of the following SQL statements will select the fields name and address from the contacts table?
- Question #188
Which of the following configuration files should be modified to set default shell variables for all users?
- Question #189
Which of the following is the best way to list all defined shell variables?
- Question #190
Which command allows you to make a shell variable visible to subshells?
- Question #191
Which of the following words is used to restrict the records that are returned from a SELECT query based on a supplied criteria for the values in the records?
- Question #192
What benefit does an alias in bash provide?
- Question #193
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 #194
What keyword is missing from this code sample of a shell script? ____ i in *.txt; do echo $i done
- Question #195
Which file used by XDM specifies the default wallpaper?
- Question #196
The X11 configuration file xorg.conf is grouped into sections. How is the content of the section SectionName associated with that section?
- Question #197
How is a display manager started?
- Question #198
Which of the following commands shows the current color depth of the X Server?
- Question #199
For accessibility assistance, which of the following programs is an on-screen keyboard?
- Question #200
Which of the following are tasks handled by a display manager like XDM or KDM? (Choose two correct answers.)
- Question #201
X is running okay but you're concerned that you may not have the right color depth set. What single command will show you the running color depth while in X?
- Question #202
Your senior administrator asked you to change the default background of his machine, which uses XDM. Which file would you edit to achieve this?
- Question #203
What is the purpose of the Sticky Keys feature in X?
- Question #204
Why is the xhost program considered dangerous to use?
- Question #205
On a system running the KDE Display Manager, when is the /etc/kde4/kdm/Xreset script automatically executed?
- Question #206
Which of the following lines is an example of a correct setting for the DISPLAY environment variable?
- Question #207
Which of the following fields are available in both the global /etc/crontab file as well as in user- specific crontab files? (Select TWO correct answers)
- Question #208
Which command can be used to delete a group from a Linux system?
- Question #209
Which of the following commands can remove a user from a group?
- Question #210
Where are user specific crontabs stored?
- Question #211
Which file contains the date of the last change of a user's password?
- Question #212
Each entry in a crontab must end with what character?
- Question #213
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 #214
To prevent a specific user from scheduling tasks with at, what should the administrator do?
- Question #215
Which of the following crontab entries will execute myscript at 30 minutes past every hour on Sundays?
- Question #216
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 #217
Which commands can be used to change a user's account aging information? (Choose THREE correct answers.)
- Question #218
What is NOT contained in the locale setting of the operating system?
- Question #219
What is true regarding the command userdel --force --remove bob? (Choose two correct answers.)
- Question #220
Which of the following fields can be found in the /etc/group file? (Choose THREE correct answers.)
- Question #221
Which configuration file would be edited to change the default options for outbound SSH sessions?
- Question #222
Which of the following programs uses the hosts.allow file to perform its main task of checking for access control restrictions to system services?