LX0-104 CompTIA Linux+ Powered by LPI 2
QUESTION 1
Which of the following commands puts the output of the command date into the shell
variable mydate?
A. mydate=”$(date)”
B. mydate=”exec date”
C. mydate=”$((date))”
D. mydate=”date”
E. mydate=”${date}”
Answer: A
QUESTION 2
What is the purpose of the file /etc/profile?
A. It contains the welcome message that is displayed after login.
B. It contains security profiles defining which users are allowed to log in.
C. It contains environment variables that are set when a user logs in.
D. It contains default application profiles for users that run an application for the first time.
Answer: C
QUESTION 3
When the command echo $$ outputs 12942, what is the meaning of 12942?
A. It is the process ID of the echo command.
B. It is the process ID of the current shell.
C. It is the process ID of the last command executed.
D. It is the process ID of the last command which has been placed in the background.
Answer: B
QUESTION 4
What output will the following command produce?
seq 1 5 20
A. 1
6
6
B. 1
5
15
C. 1
2
3
D. 2
3
5
E. 5
15
20
Answer: A
QUESTION 5
Which of the following SQL queries counts the number of occurrences for each value of the
field order_type in the table orders?
A. SELECT order_type,COUNT(*) FROM orders WHERE order_type=order_type;
B. SELECT order_type,COUNT(*) FROM orders GROUP BY order_type;
C. COUNT(SELECT order_type FROM orders);
D. SELECT COUNT(*) FROM orders ORDER BY order_type;
E. SELECT AUTO_COUNT FROM orders COUNT order_type;
Answer: B
Click here to view complete Q&A of LX0-104 exam
Best Comptia LX0-104 Certification, Comptia LX0-104 Training at certkingdom.com
Comments |0|
Tagged with: LX0-104 ebooks, LX0-104 online training, LX0-104 Q&A, LX0-104 study guide, LX0-104 testing engine, LX0-104 videos