Home > Linux > Quizzes > Linux Basics Practice Test: GDB Debugger
Linux Basics Practice Test: GDB Debugger
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 92% Most missed: “If we want to print the value of a variable in hexadecimal, we have to use “prin…”
GNU Debugger (gdb) is an open-source tool for debugging source code in Linux programs. It's also used for commercial software development on UNIX platforms.  Here are some things you can do with gdb: Run: Starts a program execution Quit: Quits gdb Print expr: Prints an expression, where expr may be a variable name Next: Goes to the next line Set a breakpoint: Pauses a running program and lets you examine the variables, arguments, memory areas, stack, heap, and more Use breakpoints: Tells gdb to stop or pause the program execution at certain line, or function, or address Use... Show more
Linux Basics Practice Test: GDB Debugger
Time left 00:00
25 Questions

1. We can list all the breakpoint in GDB by the command
2. In GDB breakpoints can be skipped by the command
3. Which one of the following GDB command allows to move from one stack frame to another without printing the frame?
4. Assemble code of the program can be displayed in GDB by the command
5. The “step” command of GDB
6. In debugging with GDB, break points can be set to
7. The command “gdb sanfoundy”
8. GDB stands for
9. Which GDB command interrupts the program whenever the value of a variable is modified and prints the value old and new values of the variable?
10. The GDB text user interface uses the ____ library to show the source file.
11. The specific break point can be deleted by _____ command in GDB.
12. In GDB debugging, we can proceed to the next breakpoint with command
13. To put the breakpoint at the current line ____ command can be used?
14. Which GDB command produces a stack trace of the function calls that lead to a segmentation fault?
15. Inside GDB, a program may stop because of
16. The user can define a command for GDB with the command
17. In GDB which one of the following allows us to specify a variable in terms of the file or function where it is defined?
18. In GDB, breakpoints can be set by the command
19. In GDB hardware-dependent information about the floating point unit can be displayed by the command
20. At the time of debugging with GDB, if we just press ENTER
21. Which GDB command reloads the debugging information?
22. Which GDB command can be used to put a breakpoint at the beginning of the program?
23. In GDB, we can refer to machine register contents, in expressions, as variables with names starting with
24. While debugging with GDB
25. The GDB command “show output-radix”