Menu

[Solved]Question 47 Comments Written Describe Functions Functions Short Functions Long Functions C Q37294865

QUESTION 47 When should comments be written to describe functions? When the functions are short When the functions are long WQUESTION 47 When should comments be written to describe functions? When the functions are short When the functions are long When the functions are complicated Whenever you write a function QUESTION 48 For a program that reads city names repeatedly from the user and calculates the distance from Head Office, which of the following would be a good design based on stepwise refinement? Write one function that calculates distance randomly. Write one function that reads city name. Write one function that reads city name and calculates distance. Stepwise refinement cannot be applied to this problem. QUESTION 49 What is the difference between the float and double types in C++? There is no significant difference, and they can be used interchangeably. O double gives twice the accuracy and dynamic range of float. double usually takes twice as many bytes of memory storage as float. All of these are correct QUESTION 50 Which of the following statements is valid regarding end1? I. The end1 symbol denotes the end of line marker Il. When the end of line marker is sent out to cout, the cursor is moved to the first column in the next screen row Ill. endl is included inside double quotes if the cout contains a string. I only ll only and II ony Show transcribed image text QUESTION 47 When should comments be written to describe functions? When the functions are short When the functions are long When the functions are complicated Whenever you write a function QUESTION 48 For a program that reads city names repeatedly from the user and calculates the distance from Head Office, which of the following would be a good design based on stepwise refinement? Write one function that calculates distance randomly. Write one function that reads city name. Write one function that reads city name and calculates distance. Stepwise refinement cannot be applied to this problem. QUESTION 49 What is the difference between the float and double types in C++? There is no significant difference, and they can be used interchangeably. O double gives twice the accuracy and dynamic range of float. double usually takes twice as many bytes of memory storage as float. All of these are correct QUESTION 50 Which of the following statements is valid regarding end1? I. The end1 symbol denotes the end of line marker Il. When the end of line marker is sent out to cout, the cursor is moved to the first column in the next screen row Ill. endl is included inside double quotes if the cout contains a string. I only ll only and II ony

Expert Answer


Answer to QUESTION 47 When should comments be written to describe functions? When the functions are short When the functions are l… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *