When compiling source code into a binary program which command does the GNU C compile use?

20 Questions  |  By Ajeff | Last updated: Mar 20, 2022 | Total Attempts: 535

Settings

Feedback

During the Quiz End of Quiz

Difficulty

Sequential Easy First Hard First

Linux+ Networking Chapter 12

  • 1. 

    Most source code is available on the Internet in tarball format. True or False?

    • A. 

      True

    • B. 

      False

  • 2. 

    Which dump level indicates a full backup?

    • A. 

      0

    • B. 

      9

    • C. 

      1

    • D. 

      F

  • 3. 

    Which filename extension indicates a tarball?

    • A. 

      .tar.gz

    • B. 

      .gz

    • C. 

      .dump

    • D. 

      .tar

  • 4. 

    Files that have been compressed using the compress utility typically have the ________ extension.

    • A. 

      .tar.gz

    • B. 

      .gz

    • C. 

      .Z

    • D. 

      .bz2

  • 5. 

    The bzip2 and gzip utilities use similar compression algorithms. True or False?

    • A. 

      True

    • B. 

      False

  • 6. 

    When compiling source code into a binary program, which command does the compiling using the GNU C Compiler?

    • A. 

      Tar

    • B. 

      ./configure

    • C. 

      Make

    • D. 

      Make install

  • 7. 

    The -9 option to the gzip utility results in a higher compression ratio. True or False?

    • A. 

      True

    • B. 

      False

  • 8. 

    You have created a full backup and four incremental backups. In which order must you restore these backups?

    • A. 

      0, 1, 2, 3, 4

    • B. 

      0, 4, 3, 2, 1

    • C. 

      4, 3, 2, 1, 0

    • D. 

      1, 2, 3, 4, 0

  • 9. 

    Which of the following commands extracts an archive?

    • A. 

      Cpio –vocBL /dev/fd0

    • B. 

      Cpio –vicdu –I /dev/fd0

    • C. 

      Cpio –vicdu –O /dev/fd0

    • D. 

      Cpio –vti –I /dev/fd0

  • 10. 

    Source code is commonly obtained in Red Hat Package Manager format. True or False?

    • A. 

      True

    • B. 

      False

  • 11. 

    Which of the following commands can be used to list the files contained within an installed RPM package?

    • A. 

      Rpm –qa packagename

    • B. 

      Rpm –qi packagename

    • C. 

      Rpm –ql packagename

    • D. 

      Rpm –q packagename

  • 12. 

    When compiling source code into a binary program, which command copies compiled binary files to the correct location on the filesystem?

    • A. 

      Tar

    • B. 

      ./configure

    • C. 

      Make

    • D. 

      Make install

  • 13. 

    Compiling and installing software from source code updates a central database that can then be used to query and remove the software at a later time. True or False?

    • A. 

      True

    • B. 

      False

  • 14. 

    Which file contains full and incremental back-up information for use with the dump/restore utility?

    • A. 

      /etc/dumps

    • B. 

      /etc/dumpdates

    • C. 

      /etc/dumpfile

    • D. 

      /etc/dump.conf

  • 15. 

    Which of the following represents the first nonrewinding SCSI tape device on a system?

    • A. 

      /dev/st0

    • B. 

      /dev/ht0

    • C. 

      /dev/nht0

    • D. 

      /dev/nst0

  • 16. 

    What is the most common method for obtaining Linux software?

    • A. 

      CD-ROM

    • B. 

      Floppy disk

    • C. 

      Internet download

    • D. 

      E-mail

  • 17. 

    Which option to the rpm command can be used to remove a package from the system?

    • A. 

      R

    • B. 

      E

    • C. 

      U

    • D. 

      U

  • 18. 

    Which of the following commands creates an archive?

    • A. 

      Tar –cvf /dev/fd0

    • B. 

      Tar –xvf /dev/fd0

    • C. 

      Tar –tvf /dev/fd0

    • D. 

      Tar –zcvf /dev/fd0 *

  • 19. 

    When compiling source code into a binary program, which command performs a system check and creates the Makefile?

    • A. 

      Tar

    • B. 

      ./configure

    • C. 

      Make

    • D. 

      Make install

  • 20. 

    Which of the following commands can be used to list detailed information about a package such as its installation date and license?

    • A. 

      Rpm –qa packagename

    • B. 

      Rpm –qi packagename

    • C. 

      Rpm –ql packagename

    • D. 

      Rpm –q packagename

Linux+ Networking Chapter 1

Questions: 18  |  Attempts: 1578   |  Last updated: Mar 22, 2022

  • Sample Question

    The operating system software is necessary for a computer to function. True or False?

    True

    False

Linux+ Networking Chapter 6

Questions: 18  |  Attempts: 1059   |  Last updated: Mar 21, 2022

  • Sample Question

    You want to see the filesystems that are presently in use on the system. What command could you use?

    Cat /etc/fstab

    Ls -l /etc/fstab

    Cat /etc/mtab

    Ls -l /etc/fstab

Linux+ Networking Chapter 5

Questions: 19  |  Attempts: 1027   |  Last updated: Mar 21, 2022

  • Sample Question

    A symbolic link is also known as a soft link and is depicted by an @ appearing at the beginning of the filename when viewed using the ls –l command. True or False?

    True

    False

More Linux Plus Networking Quizzes

  • A Plus Certification Quizzes

Back to top

Which command is compile c using gcc compiler?

Type gcc c –o [program_name].exe [program_name]. c and press ↵ Enter . Replace "[program_name]" with the name of your source code and application. Once the program is compiled, you'll return to the command prompt without errors.

What is the command to compile in c?

The Unix command for compiling C code is gcc. This is a compiler from Gnu for Linux. If you are using a Unix machine like Solaris you may need to use the command cc.) When you compile your program the compiler produces a file containing binary code which is directly readable by the machine you are on.

Which is used to compile Gnu package?

GCC is a key component of the GNU toolchain and the standard compiler for most projects related to GNU and the Linux kernel.

What command are used to compile the C program in Linux?

GCC stands for GNU Compiler Collections which is used to compile mainly C and C++ language. It can also be used to compile Objective C and Objective C++.

Chủ đề