Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Pls help asap EEL 2880 Page 3 File 1'O: binary 39)In Illustration 3-6 What statement would read 1. Create a FILE pointer myfunds 2. Open

image text in transcribedPls help asap
EEL 2880 Page 3 File 1'O: binary 39)In Illustration 3-6 What statement would read 1. Create a FILE pointer myfunds 2. Open a file for binary wrile 3. Binary write block of memory containing int savings 30 from "funds,val" file red freadi t. vaeft) 3,aving) 4. Close the file S. Open file for binary read 40)1n Ilustration 3-6 What value does nread get after reading int savings130; from "funds val" file containing savings lustration 3 nread freadisavings, sieoflint, 3, fpl A) 120 if successfut B) if successful 32) In Illustration 3-1When declaring a file pointer, FILE is used. What type of object is FILE? A) a predefined system operator B) a predefined system pointer C) a predefined system function D) a prodefined system structure File VO: Strings 1. Create string str initialned to alphabet 2. Create a FILE pointer My Txt 3. Open file "message.txt" for text write 33) In IIlustration 3-1 How would a file pointer named Write string to file 5. Close the file 6. Open fle for text read 7. Read string from file 8. Rewind to start of file 9. Read 5 characters from fle 10. Position to letterin file 11. Read 5 characters starting at j' in file myfunds be declared? A) FILE yfunds; C) FILE [eyfundsl: D) myfunds FILE .; 34)In Ilustration 3-2What statement would correctly open the file "funds.val and initialize the file pointer to write binary information? A) fopen("nyfunds, "ub 81 myfunds fopen( funds.vall D) myfunds fopen( funds.va 35)In Illustration 3-2What happens if fopen returns NULL? 4)In Illustration 4-1 What statement would create a string called str initialized to lower case alphabet? A) char str abcdefghijktanegarstuwxyz A) void, so no return argument used B) file is successfully opened C) file could not be opened D) continue to use NULL pointer 42)In Ilustration 4-2 What statement would create a file 36) In Illustration 3-3 What statement would write pointer MyTxt? MyTxt FTLE int money130; to "funds val" file? KILE Txt: D) HyTrt FILE B) furite money, 30, nyfunds) D) furiteleyfunds, sizeoftint). 30, meney) 43) In Ilustration 4-3 What statement would open the file message.txf" to write text with MyTxt? A) MyTrtfopen("nessage.txt. B) MyTxtfopen("sessage.tet". C) MyTxt fopes(""nessage.txt") D) MyTst fopen("nessage.txth 37) In Illustration 3-4 What statement would close A) fclose (nyfunds): B) fclose(noney) c) Fileclese (money, ayfunds): )FILE("close", syfunds ,soney): 44) In Ilustration 4-4 What statement would put str into message.txt" file? ) fputs(MyTt) D) fwritelstr, MyTxt): C) fpats(MyTst, str) D) fputs(str, MyTt) 38)In Illustration 3-5 What statement would open funds.val" file to read binary? A) myfunds fopen["funds. val", "rb) B) FILE fopen! funds.val", "r", syfunds) C) ayfunds fopen funds.val" "b": D) fopes(ayfunds, """funds.val")

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

Lab Manual For Database Development

Authors: Rachelle Reese

1st Custom Edition

1256741736, 978-1256741732

More Books

Students also viewed these Databases questions

Question

What does the start( ) method defined by Thread do?

Answered: 1 week ago