 
			 
			MCQOPTIONS
 Saved Bookmarks
				This section includes 30 Mcqs, each offering curated multiple-choice questions to sharpen your Matlab knowledge and support exam preparation. Choose a topic below to get started.
| 1. | The return command is similar to the dbcont command. | 
| A. | True | 
| B. | False | 
| Answer» B. False | |
| 2. | What are the contents of a and b after the following events? | 
| A. | Error in the function | 
| B. | a=4,b=5 | 
| C. | Enters debugging mode at b but a=4 | 
| D. | Outputs are suppressedView Answer | 
| Answer» C. Enters debugging mode at b but a=4 | |
| 3. | What are the contents of a after the following events? | 
| A. | Enters debugging mode | 
| B. | Error in the command window | 
| C. | Error in the function | 
| D. | 5View Answer | 
| Answer» B. Error in the command window | |
| 4. | The debug commands can be run in | 
| A. | functions | 
| B. | live scripts | 
| C. | command window | 
| D. | nowhere | 
| Answer» D. nowhere | |
| 5. | The dbstop command, for functions stored in the system memory, with a line mentioned will __________ | 
| A. | pause the evaluation of the function before the mentioned line | 
| B. | exit the evaluation of the function before the mentioned line | 
| C. | pause the evaluation of the function during the mentioned line | 
| D. | pause the evaluation of the function after the mentioned line | 
| Answer» B. exit the evaluation of the function before the mentioned line | |
| 6. | The dbcont command, if placed in an m.file, will __________ | 
| A. | not allow the function to be saved | 
| B. | give error when we enter dbcont in debug mode | 
| C. | will give an error during function call | 
| D. | dbcont does not exist | 
| Answer» C. will give an error during function call | |
| 7. | run > outfile command is used to _________ | 
| A. | direct output to the file outfile | 
| B. | jump to a file outfile | 
| C. | enter a file outfile | 
| D. | edit a file outfile | 
| Answer» B. jump to a file outfile | |
| 8. | Which is not involved in debugging? | 
| A. | Identifying | 
| B. | Isolating | 
| C. | Test | 
| D. | Fixing | 
| Answer» D. Fixing | |
| 9. | ‘set args ‘ without arguments can ___________ | 
| A. | initialize all the arguments | 
| B. | remove all the arguments | 
| C. | no change | 
| D. | show all the arguments | 
| Answer» C. no change | |
| 10. | Examination of the program step by step is called ______________ | 
| A. | Controlling | 
| B. | Tracing | 
| C. | Stepping | 
| D. | Testing | 
| Answer» D. Testing | |
| 11. | WHICH_IS_NOT_INVOLVED_IN_DEBUGGING??$ | 
| A. | Identifying | 
| B. | Isolating | 
| C. | Test | 
| D. | Fixing | 
| Answer» D. Fixing | |
| 12. | THE_DBSTOP_COMMAND,_FOR_FUNCTIONS_STORED_IN_THE_SYSTEM_MEMORY,_WITH_A_LINE_MENTIONED_WILL___________?$ | 
| A. | pause the evaluation of the function before the mentioned line | 
| B. | exit the evaluation of the function before the mentioned line | 
| C. | pause the evaluation of the function during the mentioned line | 
| D. | pause the evaluation of the function after the mentioned line | 
| Answer» B. exit the evaluation of the function before the mentioned line | |
| 13. | run_>_outfile_command_is_used_to__________$ | 
| A. | direct output to the file outfile | 
| B. | jump to a file outfile | 
| C. | enter a file outfile | 
| D. | edit a file outfile | 
| Answer» B. jump to a file outfile | |
| 14. | The_debug_commands_can_be_run_in$ | 
| A. | functions | 
| B. | live scripts | 
| C. | command window | 
| D. | nowhere | 
| Answer» D. nowhere | |
| 15. | Error in 2nd line of command window due to line no | 
| A. | Error in 2<sup>nd</sup> line of command window due to line missing function name | 
| B. | 5 | 
| C. | Enters the debugging mode | 
| Answer» C. Enters the debugging mode | |
| 16. | Enters_debugging_mode | 
| A. | Error in the command window | 
| B. | Error in the function | 
| C. | 5 | 
| Answer» C. 5 | |
| 17. | ‘set args ‘ without arguments can __________?# | 
| A. | initialize all the arguments | 
| B. | remove all the arguments | 
| C. | no change | 
| D. | show all the arguments | 
| Answer» C. no change | |
| 18. | Which of the following does not affects the execution of the program? | 
| A. | Arguments | 
| B. | Environment | 
| C. | Control | 
| D. | I/o | 
| Answer» D. I/o | |
| 19. | The dbquit command, if placed in an m.file, will __________ | 
| A. | never run the debugging mode | 
| B. | exit from the debugging mode | 
| C. | result in an error while running the function | 
| D. | dbquit does not exist | 
| Answer» D. dbquit does not exist | |
| 20. | ____________ creates an inferior process that runs your program. | 
| A. | run | 
| B. | exit | 
| C. | execute | 
| D. | e | 
| Answer» B. exit | |
| 21. | The dbstop command, for anonymous functions __________ | 
| A. | Pauses, for debugging, after the line which dbstop indicates | 
| B. | Pauses, for debugging, before the line which dbstop indicates | 
| C. | exits from the debugging mode after the line which dbstop indicates | 
| D. | exits from the debugging mode before the line which dbstop indicates | 
| Answer» B. Pauses, for debugging, before the line which dbstop indicates | |
| 22. | h command gives ___________ | 
| A. | A list of all the commands starting from h | 
| B. | Describes all the commands | 
| C. | Displays a short description of the command | 
| D. | Displays all the programs | 
| Answer» D. Displays all the programs | |
| 23. | What is dbstop command? | 
| A. | exits from the debugging mode | 
| B. | pauses for the debugging mode when a condition is reached only | 
| C. | exits the debugging mode at any point in the function | 
| D. | does not exist | 
| Answer» C. exits the debugging mode at any point in the function | |
| 24. | Which of the following is written for getting help in GDB? | 
| A. | he | 
| B. | h | 
| C. | assist | 
| D. | assistant | 
| Answer» C. assist | |
| 25. | Which of the following command would allow us to continue the evaluation of a function in the debugging mode? | 
| A. | dbcont | 
| B. | dbcontinue | 
| C. | continue | 
| D. | debugcont | 
| Answer» B. dbcontinue | |
| 26. | A freeware GNU Debugger is __________ | 
| A. | GDB | 
| B. | GNB | 
| C. | FDB | 
| D. | FNB | 
| Answer» B. GNB | |
| 27. | To end the debugging mode, we use the __________ | 
| A. | dbquit | 
| B. | dbend | 
| C. | debugend | 
| D. | No such function | 
| Answer» B. dbend | |
| 28. | The examination of changing values of variables is called stepping. | 
| A. | True | 
| B. | False | 
| Answer» C. | |
| 29. | To enter a value and change the course of working of a function while it is working, we use the __________ | 
| A. | dbstop | 
| B. | db | 
| C. | keyboard | 
| D. | enter | 
| Answer» D. enter | |
| 30. | Can we save a MATLAB program while in debugging mode? | 
| A. | True | 
| B. | False | 
| Answer» C. | |