Daily Bell Ringer — Return Values, Scope (Local vs Global), & Code Reusability
Course 3: Introduction to Programming / Unit 5: Modular Programming & User-Defined Methods / Lesson 2: Return Values, Scope (Local vs Global), & Code Reusability
Before we begin
What happens if you try to print a variable inside main that was defined inside a function?
Record your initial thinking. Be ready to explain your reasoning and revisit your response after the lesson.
Discuss and submit in Google Classroom
Use this site to read, watch, and get shared learning materials. Keep completed work, questions, and comments in your class on Google Classroom.
Open Google ClassroomChoose your class and the assignment named by your teacher.
KDE student outcomes
Unit-level context for this lesson · Course 110201
View aligned outcomes (1)
- #8 Design and develop programs that implement user-defined methods and modular programming.
Alignment from Master Lesson Plans v3.5. These are instructional targets; completing a resource does not by itself establish mastery.