I. For problem 1-10 enter the letter of the word that best matches the definition
1) _____ In the statement computerPick = “rock”, the = (equal sign) means a) number
2) ____ randint in Python is an example of a Python package function and requires an b) type
______ statement at the beginning of your program.
3) ____ The passed arguments in calling a function must match the parameters c) parenthesis
defined in the function in all 3 of these: position, type, and ____ of arguments
4) ____ An input validation loop prevents against ______ d) assignment
5) ____ A Case statement (switch) logic is not available in Python but Python can
create the same logic with _____ e) plus sign
6) ____ In a while <condition>loop this must change in the body of the loop to avoid an
infinite loop. f) import
7) ____ In Python, an assignment statement sets the ______ of a variable g) GIGO
8) ____ The book append function to put two strings together in Python is just a simple h) the condition
9) ____ The Python statement, letterGrade=getLetterGrade(numericGrade), the variable
letterGrade is assigned the ______ value from the getletterGrade function. i) if logic
10) ___ Order of operation in a formula or condition can be specified by j) return
1) assignment // "rock" is assigned to the variable
2) import //packages are imported using import keyword
3) number //number of arguments passed in a function must be same as defined
4) GIGO //This prevents the Garbage/Useless flow of data in Loop
5) if logic //if logic is equivalent to switch
6) the condition //condition is the only thing that prevents the while loop to be infinite, so it must change
7) type //in python we don't have to worry about type of variable, it is automatically assigned
8) plus sign //string can be appended with plus sign like simple adding
9) return // the return value of the function represents the value of the function when it called again
10) parenthesis //paranthesis can form an order by forming pairs of varibles
Get Answers For Free
Most questions answered within 1 hours.