Search Header Logo
[AP CSP] JavaScript Programming Lesson 2025-2026

[AP CSP] JavaScript Programming Lesson 2025-2026

Assessment

Presentation

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Tommy Nguyen

Used 34+ times

FREE Resource

18 Slides • 24 Questions

1

media
media
media
media
media
media

2

media
media

👉 HTML creates the structure of a website

👉 JavaScript gives motion and logic to a website

👉 CSS gives style to the website

3

media

​Bookmark this Webpage for our JavaScript Learning Needs

media
media
media

6

Open Ended

Question image

Provide 1 - 2 Syntax Rules you noticed in JavaScript Code.

How does is it different/similar to Python Code?

7

media

8

media

9

media

10

media

11

media

13

Multiple Choice

Question image

Which JavaScript code correctly gets a user’s age, converts it to a number, and prints how old they will be next year?

1
2
3
4

14

Multiple Choice

Question image

Which JavaScript conditional statement correctly assigns a grade of "A" when score is 90 or higher?

1
2
3
4

15

Multiple Choice

Question image

Which JavaScript statement correctly adds a new item to the end of an array called items?

1
2
3
4

16

Multiple Choice

Question image

Which for loop correctly prompts the user for steps on Day 1 through Day 5?

1
2
3
4

17

Multiple Choice

Question image

Which line of code correctly calls the function and stores its returned value?

1
2
3
4

18

Multiple Choice

Question image

Which line of code correctly calls the function and stores its returned value?

Only ONE version below will run correctly without a scope error.

1
2
3
4

20


Analyze the code and predict its behavior.

media
media

✍️Annotate the code with comments 📝predicting each line’s role.

21

Multiple Choice

Question image

View the HTML & JavaScript code for the webpage.

Which line creates the input box for the web-page, what allows the user to type in the temperature?

1

Line 16

in the

HTML Script

2

Line 50

in the

HTML Script

3

Line 4

in the

JavaScript Code

4

Line 7

in the

JavaScript Code

22

Multiple Choice

Question image

View the HTML & JavaScript code for the webpage.



Which lines create the convert to: drop-down menu on the web-page for the 3 temperature options?

1

Lines 21 - 26

in the

HTML Script

2

Lines 29 - 34

in the

HTML Script

3

Lines 4 - 5

in the

JavaScript Code

4

Lines 9 - 20

in the

CSS Code

23

Multiple Choice

Question image

View the Image for JavaScript code for the webpage.

Which line of code Retrieves the value from the user input box in HTML, and stores the value into a Variable?

1

Line 7

2

Line 9

3

Line 11

4

Line 13

5

Line 4

24

Multiple Choice

Question image

View the JavaScript code for the webpage.

Which line of code Retrieves the value from the user Dropdown Selection (Convert From) in HTML, and stores the value into a Variable?

1

Line 2

2

Line 7

3

Line 9

4

Line 11

5

Line 13

25

Multiple Choice

Question image

View the JavaScript code for the webpage.

Which line of code Retrieves the value from the user Dropdown Selection (Convert To) in HTML, and stores the value into a Variable?

1

Line 4

2

Line 7

3

Line 9

4

Line 11

5

Line 38

26

Multiple Choice

Question image

View the JavaScript code for the webpage.

Which line executes the equation to convert from Fahrenheit to Kelvins?

1

Line 9

2

Line 21

3

Line 32

4

Line 15

27

Multiple Choice

Question image

View the JavaScript code for the webpage.

Which line of code displays the resulting converted temperature to the HTML Web Page?

1

Line 9

2

Line 11

3

Line 13

4

Line 36

5

Line 38

28

Multiple Choice

Question image

View the HTML & JavaScript code for the webpage.

Interact with webpage.

Which line contains the element where the output of emojis pictures display?

1

Line 46

in the

HTML Script

2

Line 47

in the

HTML Script

3

Line 37

in the

JavaScript Code

4

Line 39

in the

JavaScript Code

29

Multiple Choice

Question image

In Python, we use the function int() to convert a string data type to integer data type.

In JavaScript, we use the _____________ function to perform the same conversion.

1
parseInt()
2

getElementById()

3

convertINT()

4

Integer()

30

Dropdown

Question image
The HTML input box for the Temperature Converter App had an id = "temp".

Complete the JavaScript Code below that would obtain the value from the input box and store it in a variable.



temp_value = document.​
("temp")​
;

31

Dropdown

Question image
The Element in our HTML that will display the Temperature Output has an id = "result".

Complete the JavaScript Code below that would OUTPUT the convertedTemp onto the Webpage Element.



.​
(​
)​
= ​
+ "Degrees";

33

Choose 1 of these Conversion Apps to CREATE

media

​Currency Converter

Distance Converter

​Data Units Converter

  • Dollars (USD)

  • Euros (EUR)

  • Yens (JPY)

  • Meters (m)

  • Miles (mi)

  • Inches (in)

  • Bits (b)

  • MegaBytes (Mb)

  • ExoBytes (Eb)

media
media

34

Open Ended

Question image

Describe 1-2 Programming Challenges 🧐 we encountered while modifying the Conversion Application using HTML and JavaScript.

36

Open Ended

Question image

https://new-sandbox-program-3-13476603.codehs.me/index.html

☝️Click Link above to access the

Number Guessing Web Game.

List ALL the HTML Elements you see present on the webpage.

37

Multiple Select

Question image

https://new-sandbox-program-3-13476603.codehs.me/index.html

☝️Click Link above to access the

Number Guessing Web Game.

How does the user interact with the webpage to play the game?

1

Typing in the Text Boxes

2

Choosing an option in the Dropdown Menu

3

Clicking Buttons

4

Click Images on the Webpage

5

Pressing ENTER on the Keyboard

38

Open Ended

Question image

https://fuzwbrusdd-2302514603-sukjfypgvx-t.codehs.me/index.html

☝️Click Link above to access the

Rock Paper Scissors Lizard Spock Web Game.

List ALL the HTML Elements you see present on the webpage.

39

Multiple Choice

Question image

https://fuzwbrusdd-2302514603-sukjfypgvx-t.codehs.me/index.html

☝️Click Link above to access the

Rock Paper Scissors Lizard Spock Web Game.

How does the user interact with the webpage to play the game?

1

Clicking on Buttons

2

Click on the Images

3

Typing on the Keyboard

4

Click and Dragging Images

40

Multiple Select

Question image

https://fuzwbrusdd-2302514603-sukjfypgvx-t.codehs.me/index.html

☝️Click Link above to access the

Rock Paper Scissors Lizard Spock Web Game.

When the Rock Button is clicked, what happens on the webpage?

1

A SAME Image always shows on the LEFT cell above the word YOU

2

1 of 5 Random Image shows on the RIGHT Cell above the word CPU

3

The Text Box below the Image Updates with a NEW String

4

1 of 5 Random Image shows on the LEFT Cell above the word YOU

5

The Text Box for the SCORE Updates with a NEW String.

media
media
media
media
media
media

Show answer

Auto Play

Slide 1 / 42

SLIDE