Presentation is loading. Please wait.

Presentation is loading. Please wait.

CS50 Section: Problem Set 2 Jordan Jozwiak.

Similar presentations


Presentation on theme: "CS50 Section: Problem Set 2 Jordan Jozwiak."— Presentation transcript:

1 CS50 Section: Problem Set 2 Jordan Jozwiak

2 Ohai! Welcome to CS50 Section! Who am I?

3 Ways that I DIDN’T start section…
Pretend to be a student who decides to teach the class when the TF doesn’t show up on time Talk about my relationship issues Forget how many ‘f’s are in professor… act professional, act casual, act tough Trust falls Complain about relationship issues Be weird or do something to make a fool of myself

4 Introductions “Important stuff” Actually important stuff Name Year
House Concentration Actually important stuff Favorite TV show Favorite band Favorite flavor of ice cream Best and/or worst rumor you’ve heard about CS50

5 This Week Pset0 and Pset1 Any questions about topics so far Scope
Global vs. Local variables Function arguments and return values “Section of Questions” on pset2 Using Spaces What does it mean for a variable to have "scope?" If I create a variable inside a loop, can I access it outside the loop? Why or why not? If I create a variable outside a loop, can I access it inside the loop? Why or why not? Rob told me the other day that he makes all of his variables global so he doesn't have to remember where he can access them. Is this a good idea or a bad idea? Why? What does it mean for a function to "return" something? What does it mean to pass an "argument" to a function?

6 Pset0 & Pset1 Pset1 will be returned by Tuesday
Pset0 will be returned by Monday Questions on pset0 or pset1?

7 Review of topics Scope Global vs. Local variables
Function arguments and return values Other questions?

8 “Section of Questions”
Spec for pset2 How does a while loop differ from do-while loop? When is the latter particularly useful? What does undeclared identifier usually indicate if outputted by clang? Why is the Caesar Cipher not very secure? What is a function? Why bother writing when you can just copy and paste code as needed?

9 Coding time!!! Use CS50 Spaces Our section’s website
Our section’s website Download Work with partners (but actually)!

10 On your way out… Check out cheat sheets online! Feedback
How comfortable are you with the material? How is the pace of section? Any other questions, suggestions or concerns?


Download ppt "CS50 Section: Problem Set 2 Jordan Jozwiak."

Similar presentations


Ads by Google