Answer the following statements true (T) or false (F)

1. Line comments begin with // and run for the rest of the line
2. The purpose of a comment is to help the compiler understand your program and create
efficient object code.
3. The math function sin will compute sine when given the angle in degrees
4. The setw manipulator is used to set the field width for all values that are printed until another
setw manipulator is encountered.
5. The preprocessor directive #include copies the file iostream into the program
before compilation, so that the program can use input and output objects and operators.

1. true
2. false
3. false
4. false
5. true

Computer Science & Information Technology

You might also like to view...

Write a class GraphicsInterperter that reads in a file of graphics commands. The class GraphicsInterpreter should have a method interpretCommands that takes a filename as input (a String), reads the graphics commands from the file, and then returns a Picture with the graphics commands executed on it. The method interpretCommands starts out by creating a 640x480 blank picture, then draws on that, and returns it.

There are two kinds of commands: “line 10 20 300 400” should draw a line from (10, 20) to (300, 400). You can assume that those are single spaces between the co-ordinates. “circle 100 200 10” draws a circle whose upper-left hand corner is (100, 200) with a diameter for 10.

Computer Science & Information Technology

Some B2C e-businesses employ customization by allowing customers to create individualized products designed specifically for them by indicating size, style, goals, or other preferences.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology