102-500 Real Exam Dumps Questions and answers 21-30

Get Full Version of the Exam

Question No.21

Which of the following configuration files should be modified to set default shell variables for all users?

  1. /etc/bashrc

  2. /etc/profile

  3. ~/.bash_profile

  4. /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?

  1. mydate=quot;$(date)quot;

  2. mydate=quot;exec datequot;

  3. mydate=quot;$((date))quot;

  4. mydate=quot;datequot;

  5. 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.)

  1. ~/.bashconf

  2. ~/.bashrc

  3. ~/.bashdefaults

  4. ~/.bash_etc

  5. ~/.bash_profile

Correct Answer: BE

Question No.25

When the command echo $$ outputs 12942, what is the meaning of 12942?

  1. It is the process ID of the echo command.

  2. It is the process ID of the current shell.

  3. It is the process ID of the last command executed.

  4. 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?

  1. SELECT order_type,COUNT(*) FROM orders WHERE order_type=order_type;

  2. SELECT order_type,COUNT(*) FROM orders GROUP BY order_type;

  3. COUNT(SELECT order_type FROM orders);

  4. SELECT COUNT(*) FROM orders ORDER BY order_type;

  5. 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?

  1. They are equivalent options with the same behaviour.

  2. The -f option tests for a regular file. The -e option tests for an empty file.

  3. Both options check the existence of the path. The -f option also confirms that it is a regular file.

  4. 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?

  1. It contains the welcome message that is displayed after login.

  2. It contains security profiles defining which users are allowed to log in.

  3. It contains environment variables that are set when a user logs in.

  4. 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?

  1. xcd

  2. xcdepth

  3. xwininfo

  4. xcolordepth

  5. cat /etc/X11

Correct Answer: C

Get Full Version of 102-500 Dumps