Part IV: Constructs
You can take this set of MCQs as many times as you like. No personal information is collected.

Which keyword allows us to communicate back the value calculated within a function?

*
5 points

Which Python feature allows us to create constructs?

*
5 points

You are writing a program to process lines from a file. The procedure for handling each line from the file may need to be carried out again. You are feeling lazy and would like to avoid repeating the process in later steps. Which python construct enables you to avoid this repetition?

*
5 points

Suppose that you have a list containing items that need several steps to be processed. You will need to examine all the items in the list. However, you might need to ignore some of the items. Which of the following will achieve this?

*
5 points

The following image shows a function having both positional and keyword arguments. Select from the options below all the acceptable ways of calling this function.

*
5 points
Captionless Image
Required

You would like to conditionally execute a block of code. Which is the best construct to achieve this?

*
5 points
Submit
Clear form
This form was created inside of Bacculus Informatix. Report Abuse