Podcast
Questions and Answers
What is a primary purpose of using procedures in programming?
What is a primary purpose of using procedures in programming?
- To iterate a set of statements
- To reduce repetition of code (correct)
- To make decisions in a program
- To calculate a single value
What is the main difference between a procedure and a function?
What is the main difference between a procedure and a function?
- A procedure is used to make decisions, whereas a function is used to iterate code
- A procedure calculates a value, whereas a function performs a task
- A procedure performs a task, whereas a function produces a calculated result (correct)
- A procedure iterates code, whereas a function is a decision point
What is the term used to describe the process of running a procedure or function?
What is the term used to describe the process of running a procedure or function?
- Iterate
- Perform
- Call (correct)
- Execute
What is the term used to describe the passing back of a calculated value in a function?
What is the term used to describe the passing back of a calculated value in a function?
Which of the following is an example of a function?
Which of the following is an example of a function?
Why is code indented in a procedure or function?
Why is code indented in a procedure or function?
What is a common characteristic of a procedure?
What is a common characteristic of a procedure?
What is the purpose of a function?
What is the purpose of a function?
What keyword is used to create a procedure or function?
What keyword is used to create a procedure or function?
What is the term given to running a procedure or function?
What is the term given to running a procedure or function?
What is returned by a function?
What is returned by a function?
Flashcards are hidden until you start studying