1. Engineering
  2. Computer Science
  3. using c programming please answer all and fast please they...

Question: using c programming please answer all and fast please they...

Question details
Using c++ programming

Please answer all and fast please


They are single choice question . Only answers it’s okay no problem if you don’t show the working
浙江工业大学考试命题纸 lowing C ←-expressions corresponds to the algebraic expression C Which of the B. x+2 /pow(z,2), g Which of following A. ifsteam inputfile D. (x12) pow(z,2), B. ifstream inpufile; C. ofstream inputfile the following statements open the file data.txt for reading? inputfile open(data.txe) - opendata.tuty c. ofstream inputfile inputfile openfdata.txt) the sine of an angle, which of the following head files should be included? inputfile opendata.Ety A sine C. iostream Whst is the B. cmath D. estdlib correct explanation of the following Cot expession:? II. x07y-t0:z-20 ten the condition (xc 0) is true, assigns 10 to y and 20 to z condition (x< 0) is true, assign 10 to y, otherwise assign 20 to z the condition (x< 0) is false, assign 10 to y and 20 to z; n when the condition (x o) is false, assign 10 to y, otherwise assign 20 to z. Which of the following correctly declares an array? A. float score; C. float score[10] Suppose we define a function with the header as: 12. B. float score(10) D. array score 10]: 13. float calculate_rectangel areal float x, float y) Which of the following statements about function prototype is not correct? A. function prototype should be put before the main B. function prototype be C. function prototype can be float calculate D. function prototype can be float calculate rectangel areal float rectangel areal float x, float y rectangel areal float, float e can be float calculate 14. Which of the following descriptions on the codes below is correcet? int var 10 int ptr- & (var +l): l statement int *ptr2-&var, statement 2 &var 40; /l statement 3 B.Statement 2 and 3 are wrong D. All the three are wrong A. statement 1 and 2 are wrong C. statement I and 3 are wrong. Which of the following statement concerning the while loop is not correct? A while loop is a pretest loop 15. of the loop is executed only when its following condition evaluates to be true C the loop of body will be executed at least once. D the condition followed from the key word while should be put in parenthesis
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution