MCQOPTIONS
Saved Bookmarks
This section includes 657 Mcqs, each offering curated multiple-choice questions to sharpen your Testing Subject knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Assemble code of the program can be displayed in GDB by the command |
| A. | disassemble |
| B. | assemble |
| C. | assembly |
| D. | none of the mentioned |
| Answer» B. assemble | |
| 2. |
Which one of the following is not true about the GDB? |
| A. | info register is used to see that what is in the processor registers |
| B. | processor registers can not be accessed by GDB |
| C. | first 32 bits of the variable can not be examined |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |
| 3. |
Which GDB command is used to examine the memory? |
| A. | x |
| B. | y |
| C. | z |
| D. | none of the mentioned |
| Answer» B. y | |
| 4. |
In GDB breakpoints can be skipped by the command |
| A. | ignore |
| B. | reject |
| C. | skip |
| D. | none of the mentioned |
| Answer» B. reject | |
| 5. |
What is temporary breakpoint? |
| A. | it stops the program once |
| B. | it is removed after one execution of the program |
| C. | it stops the program once & removes after one execution of the program |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |
| 6. |
If we have multiple source files, then during the debugging with GDB |
| A. | breakpoint can not be set |
| B. | break point can be set by “break” command with a filename |
| C. | break point can be set only to makefile |
| D. | none of the mentioned |
| Answer» C. break point can be set only to makefile | |
| 7. |
The GDB command “info local” |
| A. | displays the list of local variables |
| B. | value of local values for the current stack frame |
| C. | displays the list of local variables & value of local values for the current stack frame |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |
| 8. |
GDB command “frame” is used |
| A. | to change the stack frames |
| B. | to check the stack frames only |
| C. | it is not a valid command |
| D. | none of the mentioned |
| Answer» B. to check the stack frames only | |
| 9. |
While debugging with GDB |
| A. | variables can be print |
| B. | variables can be modify |
| C. | variables can be print & modify |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |
| 10. |
Which one of the following is not true about GDB? |
| A. | quit command is used to exit the GDB |
| B. | kill command is used to stop execution in GDB |
| C. | if the execution is stopped by kill command then it can not be started again |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |