Unix/Lunux MCQ Quiz Hub

Linux Mcqs Questions Set 10

Choose a topic to test your knowledge and improve your Unix/Lunux skills

1. The correct sequence of GCC compilation process is




2. The preprocessor removes the _______ from the source code.




3. The compiler converts




4. The assembly code is converted into the machine code by




5. What is the role of linker in the compilation process?




6. If sanfoundry.c is compiled with GCC, then the sanfoundry.s file will contain the




7. The object file contains the




8.  If we do not specify the executable file name at the compilation time in GCC, then in linux the compiler creates executable named as




9. The macros specifies in source code are expanded by




10. The preprocessor creates the file with extension




11. The a.out file is in the




12. Which one of the following command can be used to provide executable permissions for a file?




13. The lines in our code that begin with the “#” character are




14. Command line parameters are passed by the




15. In the preprocessing stage of compilation




16. Which compilation step makes sure that all the undefined symbols in the code are resolved.




17. Which one of the following is not true?




18. Preprocessed files are given the file extension _____ for c++ programs.




19. The assmebly code generated depends upon the




20. The COFF stands for




21. In Linux, the static library has the extension of




22. The library contains the




23. Libraries can be linked with ____ to create executables.




24. In Linux, the static libraries can be created by




25. If a program is linked against a static library then




26. To use the static library in the program




27. Which gcc option is used to specify the library?




28. In linux, the static libraries are mostly installed in




29. Which one of the following command can list the symbols defined in a library?




30. The archive(ar) utility in linux can




31. In linux shared libraries has the extension of




32. When a program is linked with a shared library




33. Shared libraries can be shared between




34. In linux, shared library is a




35. In GCC compiler, “-shared” option is given to create the shared library with




36. Which option of GCC compiler provides the linking with shared libraries?




37. After using the shared library, memory can be done free by calling




38. Shared libraries are linked with the program




39. For a shared library, version number is changed when




40. Which command can be used to update the shared library system?




41. For debugging with GDB, the file “sanfoundry” can be created with the command




42. For debugging with GDB, the compiled program can be run by the command




43. In GDB, breakpoints can be set by the command




44. GDB stands for




45. GDB can be used for




46. The command “gdb sanfoundy”




47. In debugging with GDB, break points can be set to




48. In GDB debugging, we can proceed to the next breakpoint with command




49. At the time of debugging with GDB, if we just press ENTER




50. To print the value of a variable while debugging with GDB, ______ command can be used.