LX0-104 CompTIA Linux+ [Powered by LPI] Exam Set 1

Which of the following statements is true regarding the /etc/shadow file?


Options are :

  • All users have full read access to /etc/shadow.
  • /etc/shadow may not be readable or writable by user root.
  • All users have full read and write access to /etc/shadow.
  • Only root is allowed to read and write /etc/shadow. (Correct)

Answer : Only root is allowed to read and write /etc/shadow.

CV0-001 CompTIA Cloud+ Certification Practice Exam Set 4

What is the purpose of the sticky keys feature in X?


Options are :

  • To assist users who have difficulty holding down multiple keys at once. (Correct)
  • To ignore brief keystrokes according to a specified time limit.
  • To repeat the input of a single character.
  • To prevent repeated input of a single character if the key is held down.

Answer : To assist users who have difficulty holding down multiple keys at once.

When the command echo $? outputs 1, which of the following statements are true?


Options are :

  • It is the process ID of the echo command.
  • It is the process ID of the current shell.
  • It is the exit value of the command executed immediately before echo. (Correct)
  • It is the exit value of the echo command.

Answer : It is the exit value of the command executed immediately before echo.

Which of the following commands puts the output of the command date into the shell variable mydate?


Options are :

  • mydate="$((date))"
  • mydate="exec date"
  • mydate="$(date)" (Correct)
  • mydate="${date}"
  • mydate="date"

Answer : mydate="$(date)"

CompTIA Security+ (SY0-501) Practice Exams with Simulations Set 7

Which of the following commands shows the current color depth of the X Server?


Options are :

  • xcolordepth
  • xcd
  • cat /etc/X11
  • xwininfo (Correct)
  • xcdepth

Answer : xwininfo

What happens if the password of a user in the /etc/shadow file is prepended with the ! character?


Options are :

  • The password is inverted which allows the user to log in with any password other than the current password.
  • When logging in, the user automatically gets root privileges in addition to his regular privileges.
  • The user is disabled and all login methods, including but not limited to password based logins, are disabled.
  • Upon the next log in, the user is forced to change his password.
  • The password becomes invalid which disables password based logins although other login methods remain usable. (Correct)

Answer : The password becomes invalid which disables password based logins although other login methods remain usable.

Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)


Options are :

  • ~/.bash_etc
  • ~/.bashrc
  • ~/.bash_profile
  • ~/.bashconf
  • B,E (Correct)
  • ~/.bashdefaults

Answer : B,E

CompTIA JK0-017 E2C Project+ Certification Practice Exam Set 1

Which of the following actions prevents a specific user from scheduling tasks using at or batch?


Options are :

  • Add the specific user to the nojobs group.
  • Add the specific user to the [deny] section in the /etc/atd.conf file.
  • Run atd --deny followed by the name of the specific user.
  • Add the specific user to the /etc/at.deny file. (Correct)
  • Add the specific user to the /etc/at.allow file.

Answer : Add the specific user to the /etc/at.deny file.

What is the default name of the configuration file for the Xorg X11 server? (Specify the file name only without any path.)


Options are :

  • xorg.conf (Correct)
  • None

Answer : xorg.conf

Which of the following commands can modify or set the password expiration for a user? (Choose TWO correct answers.)


Options are :

  • A,D (Correct)
  • userconf
  • chage
  • chexpiration

Answer : A,D

CompTIA JK0-022 E2C Security+ Network Security Practice Exam Set 2

What output will the command seq 10 produce?


Options are :

  • The number 10 to standard output.
  • A continuous stream of numbers increasing in increments of 10 until stopped.
  • The numbers 0 through 9 with one number per line.
  • The numbers 1 through 10 with one number per line. (Correct)

Answer : The numbers 1 through 10 with one number per line.

What is the name of the simple graphical login manager that comes with a vanilla X11 installation? (Specify ONLY the command without any path or parameters.)


Options are :

  • xdm (Correct)
  • None

Answer : xdm

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


Options are :

  • result: 1 2 3 4 5 6
  • result: 6 5 4 3 2 1
  • result: 3 2 1
  • result: 3 4 5 6 2 1 (Correct)
  • result: 6 5 4

Answer : result: 3 4 5 6 2 1

CD0-001 CDIA+ Certification Practice Exam Set 2

Which command will set the local machine's timezone to UTC?


Options are :

  • mv /usr/timezone/UTC /etc
  • cat UTC > /etc/timezone
  • ln -s /usr/share/zoneinfo/UTC /etc/localtime (Correct)
  • date --timezone=UTC

Answer : ln -s /usr/share/zoneinfo/UTC /etc/localtime

Which of the following are tasks handled by a display manager like XDM or KDM? (Choose TWO correct answers.)


Options are :

  • Create an X11 configuration file for the current graphic devices and monitors.
  • Handle the login of a user.
  • Lock the screen when the user was inactive for a configurable amount of time.
  • A,C (Correct)
  • Start and prepare the desktop environment for the user.
  • Configure additional devices like new monitors or projectors when they are attached.

Answer : A,C

Which of the following commands prints the exit value of the most recently executed program in Bash?


Options are :

  • echo $status
  • echo $exit
  • echo $? (Correct)
  • echo $&
  • echo $#

Answer : echo $?

CAS-003 CompTIA Advanced Security Practitioner (CASP+) Exam Set 4

What word is missing from the following SQL statement?

__________ count(*) from tablename;

(Please specify the missing word using lower-case letters only.)


Options are :

  • select (Correct)
  • None

Answer : select

Which of the following commands will convert files from one character encoding to another?


Options are :

  • transcode
  • convert
  • enc2utf
  • iconv (Correct)

Answer : iconv

Which command makes the shell variable named VARIABLE visible to subshells?


Options are :

  • set VARIABLE
  • export VARIABLE (Correct)
  • export $VARIABLE
  • set $VARIABLE
  • env VARIABLE

Answer : export VARIABLE

SY0-401 CompTIA Security+ Certification Practice Exam Set 9

What is true regarding the statement beginning with #! that is found in the first line of a script?


Options are :

  • It is a comment that is ignored by the script.
  • It specifies the path and the arguments of the interpreter used to run the script. (Correct)
  • It prevents the script from being executed until the ! is removed.
  • It specifies the character encoding of the script.

Answer : It specifies the path and the arguments of the interpreter used to run the script.

Which Bash option prevents a user from accidentally overwriting a file with a ">"?


Options are :

  • set -o noglob
  • set -o safe
  • set -o noclobber (Correct)
  • set -o append
  • set -o nooverwrite

Answer : set -o noclobber

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


Options are :

  • ~/.bash_profile (Correct)
  • /etc/bashrc
  • /etc/.bashrc
  • /etc/profile

Answer : ~/.bash_profile

JK0-019 CompTIA E2C Network + Certification Exam Set 11

Each entry in a crontab must end with what character?


Options are :

  • Backslash
  • Tab
  • Space
  • Newline (Correct)

Answer : Newline

Which of the following commands are used to manage the environment and shell variables within a shell process? (Choose TWO correct answers.)


Options are :

  • tset
  • A,D (Correct)
  • reset
  • init
  • export
  • set

Answer : A,D

For accessibility assistance, which of the following programs is an on-screen keyboard?


Options are :

  • GOK (Correct)
  • xkb
  • atkb
  • xOSK

Answer : GOK

NEW! CompTIA A+ 2019 Cert. Core 2 (220-1002) Practice Tests Set 6

Which of the following files assigns a user to its primary group?


Options are :

  • /etc/group
  • /etc/pgroup
  • /etc/shadow
  • /etc/gshadow
  • /etc/passwd (Correct)

Answer : /etc/passwd

Which of the following commands creates a function in Bash that outputs the sum of two numbers?


Options are :

  • command sumitup { echo $1 + $2 ; }
  • command sumitup { echo $(($1 + $2)) ; }
  • function sumitup { echo $(($1 + $2)) ; } (Correct)
  • function sumitup { echo $1 + $2 ; }
  • method sumitup { echo $1 + $2 ; }

Answer : function sumitup { echo $(($1 + $2)) ; }

In which file, if present, must all users be listed that are allowed to use the cron scheduling system? (Specify the full name of the file, including path.)


Options are :

  • None
  • /etc/cron.allow (Correct)

Answer : /etc/cron.allow

JK0-017 CompTIA E2C Project+ Certification Practice Exam Set 14

Which commands can be used to change a user's account aging information? (Choose THREE correct answers.)


Options are :

  • chsh
  • chattr
  • usermod
  • A,B,D (Correct)
  • passwd
  • chage

Answer : A,B,D

What word is missing from the following SQL statement? update tablename ____ fieldname='value' where id=909;

(Please specify the missing word using lower\_case letters only.)


Options are :

  • set (Correct)

Answer : set

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions