AnswersFL-8207310-Digital Information Technology BFunctions, Procedures, Arguments and Parameters

Functions, Procedures, Arguments and Parameters — Unit test Answers

5 verified answers
21
Free Preview

Use the line of code below to choose the correct answer.while (count < 7): print ‘Great!’This code is an example of a(n)

A
infinite loop.
B
pass statement.
C
for loop.
D
single statement suite.
22
Free Preview

Kali, a Python programmer, is using the turtle module to write the word “hello.” Which code should she use to indicate the location to begin writing the word?

A
# Pick up the turtle and move it to its starting location.
B
penup(-100, 200) goto()pendown()
C
penup() goto(-100, 200) pendown()
D
# Pick up the turtle and move it to (-100, 200)
23

What is one characteristic of good reference material?

A
It is provided by an anonymous source.
B
It is provided by a reliable source.
C
It is fictional.
D
It is out-of-date.
24

A spreadsheet software program requires that users predefine each field’s data type. The software program is most likely programmed using a language that is

A
open.
B
predefined.
C
strongly typed.
D
weakly typed.
25

A function, writeamount, is defined:def writeamount ( name, amount = 0 ): print “Name : ”, name; print “Amount: ”, amount; return;When users do not enter the amount they paid, the system automatically assumes they paid nothing. This functionality is an example of a

A
default argument.
B
subroutine.
C
keyword argument.
D
return statement.

Did you find these answers helpful?