Q1/ Choose the correct answer 1. First statement in a C++ code is: a) include statement b) import statement d) @data statement c) program statement 2. The position of the third element in an 1D array...


Q1/ Choose the correct answer<br>1. First statement in a C++ code is:<br>a) include statement<br>b) import statement<br>d) @data statement<br>c) program statement<br>2. The position of the third element in an 1D array called arr is:<br>a) arr[3]<br>c) arr[0]<br>b) arr[2]<br>d) arr[4]<br>3. To use the string functions in C++, we must include the library:<br>a) istream<br>b) string<br>c) math<br>d) conio<br>4. The loop statement (The odd numbers between 100 and 200 divided by 7) can be expressed<br>in C++ as:<br>a) for (i = 100:200:i+=7)<br>c) for (i=100; i<=200; i+=2)<br>b) for (i=101; i<200; i+=2)<br>d) for (i=101; i<=199; i++)<br>5. The mathematical expression ( z = 5x + Vx2 + y) is written in C++ as:<br>a)z= 5x +sqrt(x* x+y)<br>c) z=5*x +sqrt(pow(x,2)+y)<br>b) z=5*x + X*x+Y<br>d) z=5*x +sqrt(pow(x,2))+y<br>

Extracted text: Q1/ Choose the correct answer 1. First statement in a C++ code is: a) include statement b) import statement d) @data statement c) program statement 2. The position of the third element in an 1D array called arr is: a) arr[3] c) arr[0] b) arr[2] d) arr[4] 3. To use the string functions in C++, we must include the library: a) istream b) string c) math d) conio 4. The loop statement (The odd numbers between 100 and 200 divided by 7) can be expressed in C++ as: a) for (i = 100:200:i+=7) c) for (i=100; i<=200; i+="2)" b)="" for="" (i="101;"><200; i+="2)" d)="" for="" (i="101;"><=199; i++)="" 5.="" the="" mathematical="" expression="" (="" z="5x" +="" vx2="" +="" y)="" is="" written="" in="" c++="" as:="" a)z="5x" +sqrt(x*="" x+y)="" c)="" z="5*x" +sqrt(pow(x,2)+y)="" b)="" z="5*x" +="" x*x+y="" d)="" z="5*x">

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here