PYTHON PROGRAMMING QUIZ
Match the python programming term with its best description Q1 AND Q2
Q1
.1. parameter - A design that a programmers use to organize a solution into functions]
2.code - A------- receives a cop of the input sent to a function.
3.len - A function that returns the number of the items in a list.
4.top down design - A list is different from a tuple because it is ---------
5.mutable - A design/programming technique that help reduce duplicating lines of
code (and is one benefit of using functions).
Q2.
1.def - Exception thrown by Python when a user type in a letter for an int(input ())
2.ValueError – indicates an empty list
3.[] - Keyword used to define a function
4.immutable - This term refers to the in-order number for an item in a list
5.index - You cannot append a tuple because it is -----------
Q3. Python programmers start counting list items at number --------?
Q4. Given: lucky Numbers = [4,2,17,28,42,63,58]
What value is stored in lucky Numbers [2]?
Q5. Given: lucky Numbers = [4,2,17,28,42,63,58]
What value is stored in lucky Numbers [-1]?
Q6. Given: lucky Numbers = [4,2,17,28,42,63,58]
What will be shown on the screen from print (lucky numbers(1:4)
PYTHON PROGRAMMING QUIZ Match the python programming term with its best description Q1 AND Q2 Q1 .1. parameter - [ A design that a programmers use to organize a solution into functions] 2.code - [ A------- receives a cop of the input sent to a function.] 3.len - [ A function that returns the number of the items in a list.] 4.top down design - [ A list is different from a tuple because it is ---------] 5.mutable - [ A design/programming technique that help reduce duplicating lines of code (and is one benefit of using functions).] Q2. 1.def - [ Exception thrown by Python when a user type in a letter for an int(input ()) ] 2.ValueError – [ indicates an empty list] 3.[] - [ Keyword used to define a function] 4.immutable - [ This term refers to the in-order number for an item in a list] 5.index - [ You cannot append a tuple because it is -----------] Q3. Python programmers start counting list items at number --------? ]a Q4. Given: lucky Numbers = [4,2,17,28,42,63,58] What value is stored in lucky Numbers [2]? Q5. Given: lucky Numbers = [4,2,17,28,42,63,58] What value is stored in lucky Numbers [-1]? Q6. Given: lucky Numbers = [4,2,17,28,42,63,58] What will be shown on the screen from print (lucky numbers(1:4)