Intro to Borland Turbo C/C++ v4.5
Quiz
Which file extension should be used for all source code files in this course?
- .c
- .cpp
- Whatever the compiler defaults to.
- It doesn't matter, as long as it is less than three characters.
What compiler options should be selected to help ensure that your code is compilable by the Grader?
- Borland extensions.
- ANSI, unless the Borland extensions are needed.
- K & R.
- It doesn't matter provided the same extensions are used each time.
What are the two steps that are used to go from your source code to an executable program?
- Compiling and Executing.
- Linking and Executing.
- Writing and Compiling.
- Compiling and Linking.
Where should you NOT save your source code files?
- A floppy disk.
- The borland directories.
- The hard drive on a campus network machine.
- Any of the above.
Which version of the C Language Standard is imposed if you configure the compiler to be ANSI compliant?
- C77
- C89
- C99
- C2000
What types of comments can be used if you configure the compiler for ANSI compliance?
- Block type only.
- End-of-line only.
- Either block or end-of-line.
- None - comments are a non-ANSI language extension.
Which of the following libraries will not be usable if the compiler is configured for ANSI compliance?
- stdio.h
- stdlib.h
- conio.h
- math.h
What should be used as the starting point for the source code files you will submit for grading.
- The Sample Code that can be found through the Borland Help menu.
- The Example Code that is provided for each homework assignment.
- The C Source Code Template available from the course website.
- None - you are responsible for generating your own source code files from scratch.
What is the most likely cause for the message, "Could not create process" when you attempt to run your program?
- Another version of your program is still running.
- The active window in the IDE is something other than your source code window - such as the message window.
- Your program has syntax errors in it.
- The IDE environment has been corrupted.
What should you do if you get a Linker warning concerning a missing module definition file?
- Configure the IDE Link options to ignore this warning.
- Add the path to the module definition file to the IDE configuration.
- Modify the #include statement in the source code file to point to the right directory.
- Ignore the warning - the default definitions are what you want.