Home > LPIC > Examples of multiple choice & fill in the blank questions taken from LPIC-1 exam (Linux certification in a nutshell) – Exam 102

Examples of multiple choice & fill in the blank questions taken from LPIC-1 exam (Linux certification in a nutshell) – Exam 102

Sample questions from exam 102:

  • Consider the following C program:

#include <stdio.h>

main() {

printf (“Hello, world\n”);

}

and it’s compilation command:

gcc -o hw hw.c -static

assuming that the compilation is successful, what will result from the following command? select one.

ldd ./hw

  1. An error message indication that an option is required
  2. An error message indicating that hw is the wrong file type
  3. An error message indicating that hw is not dynamically linked
  4. A list of source and header files from which hw was compiled
  5. A list of shared libraries upon which hw is dependent
  • Consider the following trivial script called myscript
#!/bin/bash
echo “Hello”
echo $mvar
Also consider this command sequence and result:
set myvar=’World’
./myscript
Hello
The script ran without error but didn’t echo World. why not? select one.
  1. the syntax of the set command is incorrect
  2. The script executes in a new shell, and myvar wasn’t exported
  3. the #!/bin/bash syntax is incorrect
  4. THe $myvar syntax is incorrect
  5. The Script is sourced by the current shell, and myvar is available only to new shells.

  • How many hosts can exist on a subnet with mask 255.255.255.128? select one.
  1. 512
  2. 256
  3. 128
  4. 127
  5. 126

 

  • When running a text-mode FTP client, which commands retrieves multiple files? select one.
  1. get *.txt
  2. retreieve *.txt
  3. mget *.txt
  4. mretrieve *.txt
  5. get -m *.txt

  • What is the correct syntaxt o remove mypkg entirely from the Debian GNU Linux system , including configuration files? Select one.
  1. dpkg -r mypkg
  2. dpkg –remove mpykg
  3. dpkg –kill mypkg
  4. dpkg -R mypkg
  5. edpkg –purge mypkg
  • What are two interrupts usually associated with PC’s on board serial interface? ____

 

  • Which of the following commands will cause a kernel module to be included in the running kernel? Select all that apply.
  1. modinsert
  2. modprobe
  3. insmod
  4. prbmod
  5. rmmod

  • Which of the following is a valid entry in /etc/fstab for ar emote NFS mount from server fs1 ? select one.
  1. fs1:/proc /mnt/fs1 nfs defaults 9 9
  2. /mnt/fs1 fs1:/proc nfs defaults 0 0
  3. fs1:/home /mnt/fs1 nfs defaults 0 0
  4. /mnt/fs1 fs1:/home nfs defaults 0 0
  5. /home:fs1 /mnt/fs1 nfs defaults 0 0
Categories: LPIC Tags:
  1. No comments yet.
  1. No trackbacks yet.