Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1,The C++ iostream library function __________ establishes a connection between

ID: 3538805 • Letter: 1

Question

1,The C++ iostream library function __________ establishes a connection between the external file name and the name of the stream of characters by which the file will be known to the program.

2.Assume the following program declarations:

float x, y, z;
int m, n;
void w // function prototype
     (float&,
      float&,
      int);

Is the function call w (z*2, y, m); correct? If not, state why not.

3.


A. cin
B. input
C. intern
D. display E. get 4.  What is printed by the program that follows?

#include
using namespace std;
int main ()
{
     float bizarre;
     float x;
     x = 35.8;
     cout << bizarre(x);
     return 0;
}

float bizarre (float n)
{
     cout << n;
     return n;
} 5,Refer to the following declarations, how would one assign the value of num to the id component of variable emp2?

struct emprec
{
     string name;
     int id;
     float salary;
};

emprec emp1, emp2;
char ch1;
int num;
bool flag;


A. emprec.id = num;
B. emp2.num = id;
C. emp2.id = num;
D. &emp2.id = num; E. emprec.emp1.id = num; 6.A(n) ____________ file consists of a stream of character codes.

A. binary
B. executable
C. object
D. pointer E. data 7. Processing array elements in order from first to last is called____processing. When the order in which array elements are accessed is not predictable, one is using access.

Explanation / Answer

Easy 1.open() 2 incorrect reason:- it is incorrect because we have only declared the variable x,y,z in the statment float x y z, and we have not defined or initialized these variables with legal values.if we don't intialize or defined a variable, the compiler will not create memory space for it. Since no memory has created for variable x,y,z so we cannnot pass the reference of these variable in function call w(z*2,y,m) 3. A 4. 35.835.8 5.c 6. E 7.sequential