
APCSP Unit 5 Review
Presentation
•
Computers
•
10th Grade
•
Practice Problem
•
Hard
Rebecca Roemer
Used 13+ times
FREE Resource
6 Slides • 0 Questions
1
After running the code below, what values will the cities list print in the console.log?
2
Assume that your cities.length is 6 and your index begins at 0 and that cityLabel is design element on the screen. How does this piece of code work and what would be a hypothetical result of the program running?
3
How many times does this loop run? What does i++ do? Assume that each city label takes the form of city0, city1, city2, city3, city 4 and city5. Explain how the SetProperty block can create color inputs for each city design element.
4
In App Lab, create this program. What prints?
var word="supercalifragilisticexpialidocious"; console.log(word.substring(0, word.length)); console.log(word.substring(1, word.length-1)); console.log(word.substring(2,3)); console.log(word.substring(3,2));
5
In App Lab, See if the first letter is the same as the last letter in a word.
var word="racecar";
var first=word.substring(0,1);
var last=word.substring(word.length-1,word.length);
console.log(first == last);
6
In App Lab - just for fun.
Generate the first 10 numbers in the fibonacci sequence.
var fibonacci=[1,1];
var nextTerm=0; for (var i=3; i<=10; i++) { nextTerm=fibonacci[i-2]+fibonacci[i-3]; insertItem(fibonacci, i, nextTerm); } console.log(fibonacci);
After running the code below, what values will the cities list print in the console.log?
Show answer
Auto Play
Slide 1 / 6
SLIDE
Similar Resources on Wayground
3 questions
Série Fibonacci 1A_NEM
Presentation
•
10th Grade
6 questions
komponen komputer
Presentation
•
10th Grade
1 questions
June 3 - cryptic
Presentation
•
10th Grade
7 questions
Unit 2, Day 13
Presentation
•
10th Grade
6 questions
Blah blah
Presentation
•
10th Grade
7 questions
Night Chapter 1, pg 12-17
Presentation
•
10th Grade
5 questions
CER Burning Log
Presentation
•
10th Grade
7 questions
Presentasi interaktif Descriptive text
Presentation
•
10th Grade
Popular Resources on Wayground
10 questions
Safety Day 2026 – Student Review
Quiz
•
9th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
15 questions
Rounding Decimals
Quiz
•
5th Grade