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

Raptor/Python 1.) The following is an example of a method used to get data from

ID: 3909060 • Letter: R

Question

Raptor/Python

1.)

The following is an example of a method used to get data from a line.

line.getTheLine

False

2.)

The data "10/24/2012" is an example of a ______________ type.

float

int

BOOLEAN

str

3.)

The write method(function) in Python such as outFile.write("UNSORTED LIST ") is used to:

save results permanently in RAM memory

display results on the screen/monitor

write results inside the source code

write results to a designated text data file

4.)

Input (infile) and Output (outfile) Files must be closed using the following python method / function:

terminate()

halt()

close()

end()

5.)

How are statements associated with a function / procedure?

all statements before the def statement make up the body of the function / procedure

all statements indented after the def statement make up the body of the function / procedure

only the print and format statements following the def statement make up the body of the function / procedure

only those statements that start with # after the def statement make up the body of the function / procedure.

True

False

2.)

The data "10/24/2012" is an example of a ______________ type.

float

int

BOOLEAN

str

3.)

The write method(function) in Python such as outFile.write("UNSORTED LIST ") is used to:

save results permanently in RAM memory

display results on the screen/monitor

write results inside the source code

write results to a designated text data file

4.)

Input (infile) and Output (outfile) Files must be closed using the following python method / function:

terminate()

halt()

close()

end()

5.)

How are statements associated with a function / procedure?

all statements before the def statement make up the body of the function / procedure

all statements indented after the def statement make up the body of the function / procedure

only the print and format statements following the def statement make up the body of the function / procedure

only those statements that start with # after the def statement make up the body of the function / procedure.

Explanation / Answer

1) False 2) str 3) write results to a designated text data file 4) close() 5) all statements indented after the def statement make up the body of the function / procedure