102-500 Real Exam Dumps Questions and answers 21-30
Get Full Version of the Exam
http://www.EnsurePass.com/102-500.html
Question No.21
Which of the following configuration files should be modified to set default shell variables for all users?
-
/etc/bashrc
-
/etc/profile
-
~/.bash_profile
-
/etc/.bashrc
Correct Answer: B
Question No.22
What word is missing from the following SQL statement? insert into tablename (909, #39;text#39;);
(Please specify the missing word using lower-case letters only.)
Correct Answer: VALUES, values
Question No.23
Which of the following commands puts the output of the command date into the shell variable mydate?
-
mydate=quot;$(date)quot;
-
mydate=quot;exec datequot;
-
mydate=quot;$((date))quot;
-
mydate=quot;datequot;
-
mydate=quot;${date}quot;
Correct Answer: A
Question No.24
Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)
-
~/.bashconf
-
~/.bashrc
-
~/.bashdefaults
-
~/.bash_etc
-
~/.bash_profile
Correct Answer: BE
Question No.25
When the command echo $$ outputs 12942, what is the meaning of 12942?
-
It is the process ID of the echo command.
-
It is the process ID of the current shell.
-
It is the process ID of the last command executed.
-
It is the process ID of the last command which has been placed in the background.
Correct Answer: B
Question No.26
Which of the following SQL queries counts the number of occurrences for each value of the field order_type in the table orders?
-
SELECT order_type,COUNT(*) FROM orders WHERE order_type=order_type;
-
SELECT order_type,COUNT(*) FROM orders GROUP BY order_type;
-
COUNT(SELECT order_type FROM orders);
-
SELECT COUNT(*) FROM orders ORDER BY order_type;
-
SELECT AUTO_COUNT FROM orders COUNT order_type;
Correct Answer: B
Question No.27
What is the difference between the commands test -e path and test -f path?
-
They are equivalent options with the same behaviour.
-
The -f option tests for a regular file. The -e option tests for an empty file.
-
Both options check the existence of the path. The -f option also confirms that it is a regular file.
-
The -f option tests for a regular file. The -e option tests for an executable file.
Correct Answer: C
Question No.28
By default, the contents of which directory will be copied to a new user#39;s home directory when the account is created by passing the -m option to the useradd command? (Specify the full path to the directory.)
Correct Answer: /etc/skel
Question No.29
What is the purpose of the file /etc/profile?
-
It contains the welcome message that is displayed after login.
-
It contains security profiles defining which users are allowed to log in.
-
It contains environment variables that are set when a user logs in.
-
It contains default application profiles for users that run an application for the first time.
Correct Answer: C
Question No.30
Which of the following commands shows the current color depth of the X Server?
-
xcd
-
xcdepth
-
xwininfo
-
xcolordepth
-
cat /etc/X11
Correct Answer: C
Get Full Version of 102-500 Dumps