HW5(2).pdf - Computing I Homework Packet 5 Name Section_10am 11am SHORT ANSWER Write the word or phrase that best completes each statement or answers

HW5(2).pdf - Computing I Homework Packet 5 Name...

This preview shows page 1 - 3 out of 6 pages.

Computing I - Homework Packet 5 Name___________________________________ Section ____________10am ___________ 11am __________ SHORT ANSWER. Write the word or phrase that best completes each statement or answers the question. 1) The function used to open a file and return a FILE pointer for that file is ________. 1) 2) When a file fails to open, fopen returns or evaluates as ________. 2) 3) The format specifier to display floating point numbers in scientific notation is the percent sign followed by the letter: ________ 3) 4) The format specifier that always shows the decimal point to display floating point numbers is the percent sign followed by the letter: ________ 4) 5) "\n" is a ________ and '\n' is a ________. 5) 6) Write the format specifier used to change the number of decimal places displayed in a floating point number to 3 decimal places. 6) 7) Which functions read one character even if that character is a blank space? 7) 8) The format specifier to display floating point numbers in the shortest notation is the percent sign followed by the letter: ________ 8) 9) When you are finished using a file you should close the file using the function ________. 9) 10) ________ is the safe function used to get a restricted length c - string from a file or the keyboard. 10) 11) The special character used to mark the end of a C - string is called the ________ character. 11) 12) All data is input and output as ________ data. 12) 13) scanf, fscanf and sscanf return ________ . 13) MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. 14)+ isaformatspeciferflagthat A) displaysa+ infrontofallnumbers.B) displaysa+ infrontofpositivenumbers.C) canbeusedtofindtheabsolutevalueofaninteger.D) alloftheabove 14) 15) Whichofthefollowingisnotusedwhenusingfilesforinputandoutput? 15) 1
Image of page 1
16) WhichofthefollowingfunctiondeclarationswillcorrectlypassaFILEpointertothefunction? 16) 17) Inordertoreaddatafromafilecorrectlyyou 17) 18) Whenistheexternalnameofthefileusedintheprogram? A) anytimeyoureadorwritetothefileB) neverC) onlywhenreadingfromthefileD) whenopeningthefile 18)
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 6 pages?

  • Fall '15

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors