• Home
  • Textbooks
  • Starting Out with Programming Logic and Design
  • Functions

Starting Out with Programming Logic and Design

Tony Gaddis

Chapter 6

Functions - all with Video Answers

Educators


Chapter Questions

02:34

Problem 1

How does a function differ from a module?

Ryan Yaiser
Ryan Yaiser
Numerade Educator
00:07

Problem 2

What is a library function?

Amy Jiang
Amy Jiang
Numerade Educator
02:32

Problem 3

Why are library functions like "black boxes"?

kj
Karl Jacob
Numerade Educator
02:58

Problem 4

In pseudocode, what does the following statement do?
Set $x=$ random (1,100)

Edward Downes
Edward Downes
Numerade Educator
00:20

Problem 5

In pseudocode, what does the following statement do?
Display random (1,20)

Ashley High
Ashley High
Numerade Educator
01:01

Problem 6

What is the purpose of the Return statement in a function?

Julie Silva
Julie Silva
Numerade Educator
00:43

Problem 7

Look at the following pseudocode function definition:
Function Integer dosomething( Integer number) Return number $* 2$ End Function
a. What is the name of the function?
b. What type of data does the function return?
c. Given the function definition, what will the following statement display?
Display dosomething (10)

Sheryl Ezze
Sheryl Ezze
Numerade Educator
00:07

Problem 8

What is a Boolean function?

Amy Jiang
Amy Jiang
Numerade Educator