Search Header Logo
Snap Review 1

Snap Review 1

Assessment

Presentation

Computers

7th - 9th Grade

Hard

Created by

Andrew Kang

Used 8+ times

FREE Resource

5 Slides • 3 Questions

1

Snap Review 1


Slide image

2

Multiple Choice

Question image

If the user answers "jenny" and "blue" for this program. What will the program say?

1

hello jenny, nice to meet you!

2

hello blue, nice to meet you!

3

nothing

4

I am computer.

3

Ask, Answer in Snap

  • Stores in a Snap variable labeled "answer".

  • A variable can only store one value at a time.

  • Good practice is to store "answer" into another variable that you create that has a descriptive name ("label") immediately after the ask block.

4

Slide image

Example of storing answer into custom well named variables

5

Multiple Choice

Question image

Are the outputs of these 2 programs the same or different?

1

same

2

different

6

Repeat until vs. forever-if with a stop-all

  • Output is the same for both programs, but why is the first program (with repeat until) better?

  • repeat until - code is more concise

  • repeat until - you can add more blocks at the end (forever loop, cannot add more blocks at the end)

7

Multiple Choice

Question image

What is the output of this program?

1

1_earth, 4_earth

2

nothing

3

1_earth, 3_earth, 4_earth

4

2_not_earth

8

Fun with booleans and conditionals

- and is true if both sides are true

- or is true if either side is true

- variables can be text, a number, or a true/false boolean.

- boolean variables do not need >,<,=,etc. operator

- The 3rd and 4th if statements are logically the same based on De Morgan's laws. That law is Not (A or B) is same as Not A and Not B

Slide image

Snap Review 1


Slide image

Show answer

Auto Play

Slide 1 / 8

SLIDE