Chapter 6 Fruitful Functions

Description

AS - Level Computer Science (CS 1101 Python) Flashcards on Chapter 6 Fruitful Functions, created by Troy Bowlin on 18/05/2016.
Troy Bowlin
Flashcards by Troy Bowlin, updated more than 1 year ago
Troy Bowlin
Created by Troy Bowlin over 8 years ago
5
0

Resource summary

Question Answer
Boolean Function A function that returns a Boolean value. The only possible values of the bool type are False and True.
Chatterbox Function A function which interacts with the user (using input or print) when it should not. Silent functions that just convert their input arguments into their output results are usually the most useful ones.
Composition (of functions) Calling one function from within the body of another, or using the return value of one function as an argument to the call of another.
Dead Code Part of a program that can never be executed, often because it appears after a return statement.
Fruitful Function A function that yields a return value of None.
Incremental Development A program development plan intended to simplify debugging by adding and testing only a small amount of code at a time.
None A special Python value. One use in Python is that it is returned by functions that do not execute a return statement with a return argument.
Return Value The value provided as the result of a function call.
Scaffolding Code that is used during program development to assist with development and debugging. The unit test code that we added in this chapter are examples of scaffolding.
Temporary Variable A variable used to store an intermediate value in a complex calculation.
Test Suite A collection of tests for some code you have written.
Unit Testing An automatic procedure used to validate that individual units of code are working properly. Having a test suite is extremely useful when somebody modifies or extends the code: it provides a safety net against going backwards by putting new bugs into previously working code. The term regression testing is often used to capture this idea that we don't want to go backwards.
Show full summary Hide full summary

Similar

Computing Hardware - CPU and Memory
ollietablet123
SFDC App Builder 2
Parker Webb-Mitchell
Intake7 BIM L1
Stanley Chia
Data Types
Jacob Sedore
Software Processes
Nurul Aiman Abdu
Design Patterns
Erica Solum
CCNA Answers – CCNA Exam
Abdul Demir
Abstraction
Shannon Anderson-Rush
Spyware
Sam2
HTTPS explained with Carrier Pigeons
Shannon Anderson-Rush
Data Analytics
anelvr