CIS 22A Ch. 2.15
We hope you never have to encounter anything like the following expression in a program, but consider it for a moment and indicate its value: ( /* 5 + 3 */ - 9 + 6/*8*//2 ) //*+4*/ -10
-6
Which of the following lines contains a valid, though not necessarily accurate, comment? - int twoPi = 3.14159; /* holds the value of two times pi */ - int twoPi = 2*3.14159; /* holds the value of two times pi //* - int twoPi = 2*3.14159; / / *holds the value of 6 //* - double twoPi = 2*3.14159; /* // holds the value of two time pi */ [comment] //
int twoPi = 3.14159; /* holds the value of two times pi */
Which comment below is the most helpful? - int volume; // declare an int - int volume; // declare volume - int volume; // declare volume to be an int variable - int volume; // size of trunk in cubic feet
int volume; // declare volume to be an int variable