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

It includes the labels for “Visitor”, “Prospect”, “Customer”, “Buyer” and specif

ID: 3641257 • Letter: I

Question

It includes the labels for “Visitor”, “Prospect”, “Customer”, “Buyer” and specifies which carrier site they performed this activity.

11. For this next section, there are three statements below that perform some task using the commands above. Each has exactly one error that will cause them not to run. Identify these errors and briefly explain the problem and how it should be fixed. These files are NOT necessarily formatted like the files used in the previous two tasks.

A.

Gopen (filename1.dat, f1-handle)

Gunzip (filename2.gz, f2-handle)

Compare (f1-handle,f2-handle,2,3)

Save (f1-handle, filename-compare.gz)

B.

Gunzip (filename.dat,fn-handle)

Find (fn-handle,1,”Searchers”)

Save (fn-handle, filename-searchers.dat)

C.

Gunzip (filename1.gz, f1-handle)

Gunzip (filename2.gz, f2-handle)

Join (f1-handle,f2-handle,1,2,True)

Save (f1-handle,filename-join.dat)

Explanation / Answer

in (A)
Gopen (filename1.dat, f1-handle)

Gunzip (filename2.gz, f2-handle)

Compare (f1-handle,f2-handle,2,3)

Save (f1-handle, filename-compare.gz)

there is error at line 4 in the command Save (f1-handle, filename-compare.gz)

since save is used to save the files in umcompressed format so the command should be Save (f1-handle, filename-compare.dat)

in  (B).

Gunzip (filename.dat,fn-handle)

Find (fn-handle,1,”Searchers”)

Save (fn-handle, filename-searchers.dat)

there is error in line command Gunzip (filename.dat,fn-handle)

since Gunzip is used to create a normal file from the compressed file

so the correct command should be Gunzip (filename.zip,fn-handle)

C.

Gunzip (filename1.gz, f1-handle)

Gunzip (filename2.gz, f2-handle)

Join (f1-handle,f2-handle,1,2,True)

Save (f1-handle,filename-join.dat)

there is error in command Join (f1-handle,f2-handle,1,2,True)

since true should in double quotes do , the correct command is Join (f1-handle,f2-handle,1,2,"True")


Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote