Skip to content

Commit

Permalink
merging conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
jedi-force committed Aug 19, 2024
2 parents f20bd01 + d3e66e7 commit a088b57
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 0 deletions.
106 changes: 106 additions & 0 deletions CS10_FA24_DISC-1.md
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/>

Binary file added assets/images/bjc-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a088b57

Please sign in to comment.