CIS 22A Ch. 2.15

Ace your homework & exams now with Quizwiz!

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


Related study sets

Child Abuse and Neglect Presentation

View Set

EAQ - Chapter 19: Care of Patients With Cardiac Disorders

View Set

UF PHA6936 Final Exam Prep - Edited by T. Dickson

View Set

Factorial Analysis vs. Principal Component Analysis (PCA)

View Set