Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is the next step in using a file, after the file has been declared with the following? ofstream AnsFile; A. You use the file

image text in transcribed
What is the next step in using a file, after the file has been declared with the following? ofstream AnsFile; A. You use the file to input a variable. B. You use the file by outputting a value to it. C. You search for a file named AnsFile. D. You open the file, and associate it with a specific file name. Which of the following statements correctly opens the output file object AnsFile to store answers into file myanswers.txt? A. AnsFile.open("myanswers.txt"); B. open.AnsFile("myanswers.txt"); C. open.AnsFile(myanswers.txt); D. AnsFile.open(myanswers.txt): which statement will properly store the number from variable value into the output file object AnsFile? A. AnsFile > value; B. Myinput >> cin >> value; C. cin >> Myinput >> value; D. value = read.Myinput(); Which of the following statements will close the output file object AnsFile from the previous question(20)? A close.AnsFile; B. "myanswer.txt", close; C AnsFile.close(); D. AnsFile.close ("myanswer.txt"); Which repetition constructs will properly repeat the loop body while not at the end-of-file for input file object Datafile A. while (! Data file) B. while (! eof()) C. whle (! Datafile.eof()) D. while(! eof.DateFile()) The argument and parameters A. must agree m number, and identifier name B. must agree in data type and identifier name. C. must agree in number and order In the following function prototype: int fun 1|double& Num1, double& Num 2); A. Function fun1 can modify the arguments passed to both Num1 and Num2 B Function fun1 cannot modify the arguments passed to Num1 and Num2 C. Function fun1 can only modify the argument passed to Num1 D function fun1 can only modify the argument passed to Num2 Which library contains the function used to seed the random number generator? A Cstdlib B ctime C crandom D. cmath Which of the following statements property invokes the random number generator storing the resulting random number into myNumber A myNumber = lessthanorequalto rand(); B. myNumber = lessthanorequalto rand(time(0)); C. myNumber = rand(); D. None of the THESE

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

More Books

Students also viewed these Databases questions

Question

Identify conflict triggers in yourself and others

Answered: 1 week ago

Question

=+7 How has the COVID-19 pandemic impacted the operations of IHRM?

Answered: 1 week ago