Summary

This is a sample programming exam with multiple-choice questions. The questions cover topics such as debugging, code fragments, and data types in C++.

Full Transcript

1. Locating and fixing errors in a program is called _______________ a. editing d. linking b. debugging e. output c. compiling 2. Both words in the following statement show up in Visual Studio and which of th...

1. Locating and fixing errors in a program is called _______________ a. editing d. linking b. debugging e. output c. compiling 2. Both words in the following statement show up in Visual Studio and which of the following would occur. int else; a. an error is generated b. an warning is generated, but the code still compiles c. no warning or error is generated d. both a and b e. an error is generated, but the code still compiles and executes 3. What is the result of the following code fragment assuming that all variables have been declared correctly and that the user enters 30 at the prompt (be very careful!)? int1 = 120; cout

Use Quizgecko on...
Browser
Browser