Search Header Logo
Computer Science Principles Unit 4 Review

Computer Science Principles Unit 4 Review

Assessment

Presentation

Computers

9th - 12th Grade

Medium

Created by

Cory Bougher

Used 139+ times

FREE Resource

9 Slides • 9 Questions

1

Computer Science Principles Unit 4 Review

Variables, conditionals, and functions

Slide image

2

"You win!" never displays. Why?

  • variable score is named twice (line 1 & line 3)

  • this creates an error

  • score can be called lots of times but var score only once

Slide image

3

Slide image

4

Multiple Choice

Question image

What number will be output by the console.log command on line 15?

1

5

2

12

3

10

4

120

5

Slide image

6

Multiple Choice

Question image

What number will be output by the console.log command on line 17?

1

5

2

6

3

8

4

11

7

Slide image

8

Multiple Choice

What number will be output by the console.log command on line 13?

1

30

2

40

3

35

4

50

9

Slide image

10

Multiple Choice

What text will be output by the program?

1

less than 5

2

less than 10

3

10 or more

11

Slide image

12

Multiple Choice

Question image

What text will be output by the program?

1

output A

2

output B

3

output C

13

Slide image

14

Multiple Choice

What will be the order of the letters printed to the console when this program ends?

1

r, s, t

2

r, s, t, s, t

3

r, s, t, r, s, t

15

Camel Case

  • no spaces

  • only 1st word is lower case

  • additional words are capitalized

Slide image

16

Fill in the Blank

Type answer...

17

Fill in the Blank

Type answer...

18

Open Ended

What is helpful about functions when programming?

Computer Science Principles Unit 4 Review

Variables, conditionals, and functions

Slide image

Show answer

Auto Play

Slide 1 / 18

SLIDE