-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
|
||
# UNIVERSITY OF CALIFORNIA, BERKELEY | ||
Department of Electrical Engineering and Computer Sciences Computer Science Division | ||
|
||
## **CS10 Summer 2024** | ||
|
||
![The Beauty and Joy of Computing Logo](/assets/images/bjc-logo.png) | ||
|
||
# Discussion-1: Welcome to Snap! | ||
|
||
## **Instructions** | ||
|
||
- If you’re attending this section in-person, at the end of section, you’ll be given a secret phrase. Please enter it here: <ins>https://tinyurl.com/cs10su24</ins> | ||
- If you missed this discussion, fill out this entire worksheet, and upload it to the Gradescope assignment titled “Discussion-1” by next Discussion. | ||
- Please open up snap.berkeley.edu/run on your computer. | ||
- Ask the person to your right / left if they know how to whistle! | ||
|
||
|
||
## **Abstraction** | ||
|
||
**A.** What What are the two principles that comprise abstraction? | ||
|
||
1. | ||
<br/> | ||
<br/> | ||
<br/> | ||
|
||
2. | ||
<br/> | ||
<br/> | ||
<br/> | ||
|
||
**B.** When Rhoshandiatellyneshiaunneveshenk orders at cafes she often tells baristas that her name is “R” rather than“Rhoshandiatellyneshiaunneveshenk”. This is an example of: | ||
|
||
- A. Object-Orientated Programming | ||
- B. Generaliation | ||
- C. Mutability | ||
- D. Detail Removal | ||
- E. None of the Above | ||
|
||
**C.** In the movie Oppenheimer, Niels Bohr’s character said: (Paraphrased) “The important thing isn’t that you can read this music, it is that you can hear it.” | ||
|
||
|
||
The idea that one can appreciate music without knowing how to read musical notation is a good example of _______. | ||
|
||
A. Detail Removal | ||
B. Generalization | ||
|
||
|
||
## **Q2. Snap! Scavenger Hunt** | ||
|
||
**Part 1** | ||
1. How do you quickly change an add block to a subtract block? | ||
<br/> | ||
<br/> | ||
<br/> | ||
|
||
2. You’re running a program in Snap!, but it’s taking too long. How might you speed it up? | ||
<br/> | ||
<br/> | ||
<br/> | ||
|
||
3. Which symbol out of {!, @, #, $, %, ^, &, *, ~} helps you create a variable as you are typing the name of a custom block? | ||
<br/> | ||
<br/> | ||
<br/> | ||
|
||
4. To help your friend with their math homework, you want to find the tangent of 0. Which block in Snap! allows you to do that? (Hint: Look for a block that encompasses various mathematical operations.) | ||
<br/> | ||
<br/> | ||
<br/> | ||
|
||
5. You're happily drawing images in Snap! when your Sprite drifts off the stage and disappears! How do you get your Sprite back onto the stage? | ||
<br/> | ||
<br/> | ||
<br/> | ||
|
||
**Part 2** | ||
|
||
For each of the tasks listed below, find a Snap! block that accomplishes it. | ||
|
||
- Return the opposite of True or False. | ||
<br/> | ||
<br/> | ||
<br/> | ||
- Check if the value of a variable mystery is a text or a numerical data-type. | ||
<br/> | ||
<br/> | ||
<br/> | ||
- Ask a question in Snap! and automatically save the answer into a variable called answer. | ||
<br/> | ||
<br/> | ||
<br/> | ||
- Hide a Sprite from the stage (without deleting the Sprite entirely.) | ||
<br/> | ||
<br/> | ||
<br/> | ||
- Make an extraordinarily annoying sound. | ||
<br/> | ||
<br/> | ||
<br/> | ||
- Now make it stop (please.) | ||
<br/> | ||
<br/> | ||
<br/> | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.