1. The execution of the program in GDB can be affected by a) argumentsb) working directoryc) environmentd) all of the mentioned View Answer Answer: D Explanation: None 2. While debugging with GDB,…
Category: Linux MCQs
GDB Debugger 1 : Linux TOP MCQs With Answers
1. The execution of the program in GDB can be affected by a) argumentsb) working directoryc) environmentd) all of the mentioned View Answer Answer: D Explanation: None 2. While debugging with GDB,…
GDB Debugger : Linux TOP MCQs With Answers
1. Which one of the following is not true about GDB? a) quit command is used to exit the GDBb) kill command is used to stop execution in GDBc) if the execution…
GDB 1 : Linux TOP MCQs With Answers
1. Which GDB command prints the value of a variable in hex. a) print/xb) print/hc) print/ed) none of the mentioned View Answer Answer: A Explanation: None 2. Which GDB command interrupts the…
GDB : Linux TOP MCQs With Answers
1. For debugging with GDB, the file “sanfoundry” can be created with the command a) gcc -g -o sanfoundry sanfoundry.cb) gcc -g sanfoundry.cc) gdb sanfoundryd) none of the mentioned View Answer Answer:…
Shared Libraries : Linux TOP MCQs With Answers
1. In linux shared libraries has the extension of a) .sob) .sic) .sld) none of the mentioned View Answer Answer: A Explanation: None 2. When a program is linked with a shared…
Static Libraries : Linux TOP MCQs With Answers
1. In Linux, the static library has the extension of a) .ab) .bc) .cd) .d View Answer Answer: A Explanation: None 2. The library contains the a) pre-compiled object filesb) source filesc)…
various stages of compilation for gcc compiler 2 : Linux TOP MCQs With Answers
1. The a.out file is in the a) ELF formatb) EXE formatc) Both EXE and ELF formatd) None of the mentioned View Answer Answer: A Explanation: None 2. Which one of the…
various stages of compilation for gcc compiler : Linux TOP MCQs With Answers
1. The correct sequence of GCC compilation process is a) preprocessing -> compilation -> assemble -> linkingb) assemble -> preprocessing -> compilation -> linkingc) preprocessing -> assemble -> compilation -> linkingd) none…
Various Options 3 : Linux TOP MCQs With Answers
1. The command “cpp sanfoundry.c > sanfoundry.i” will a) create the expanded source code file sanfoudry.i for the source code file sanfoundry.cb) append the content of the sanfoundry.c into sanfoundry.ic) give an…
Various Options 2 : Linux TOP MCQs With Answers
1. What is the job of -Werror option in gcc? a) it avoids all the errors present in the source codeb) it makes all warnings into errorsc) it stores all the errors…
Various Options : Linux TOP MCQs With Answers
1. Which one of the following command creates the executable file a.out? a) gcc -o sanfoundry.cb) gcc sanfoundry.cc) gcc -o a.outd) gcc a.out View Answer Answer: B Explanation: None 2. If we…
Makefile 2 : Linux TOP MCQs With Answers
1. If we want to execute the makefile by just giving the “make” command, makefile should be named as a) Makefileb) makefilec) MAKEFILEd) None of the mentioned View Answer Answer: A Explanation: …
Makefile : Linux TOP MCQs With Answers
1. Which file is used primarily for diagnosing memory fragmentation issues ? a) makefile describes to the make command that how to compile the programb) makefile contains various statements related with the…
Linux Proc Filesystem 5 : Linux TOP MCQs With Answers
1. Which file is used primarily for diagnosing memory fragmentation issues ? a) /proc/buddyinfob) /proc/meminfoc) /proc/apmd) none of the mentioned View Answer Answer: A Explanation: None 2. Which file shows the parameter…