
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
2 questions
Ice Breaking Game
Presentation
•
KG
7 questions
3a1.Prokaryote vs Eukaryote
Presentation
•
9th - 10th Grade
10 questions
Computer Science: Systems Architecture
Presentation
•
10th Grade
8 questions
NIOS_CH4_class10
Presentation
•
10th Grade
6 questions
Latin root splend
Presentation
•
10th Grade
6 questions
2-1 pg20 Identifying Spoken Sentences
Presentation
•
KG
6 questions
Mr. Bad
Presentation
•
KG
8 questions
Lesson 6: Direct Variation
Presentation
•
10th Grade
Popular Resources on Wayground
10 questions
HCS SCI 03 Summer School Assessment 1
Quiz
•
3rd Grade
15 questions
HCS SCI 05 Summer School Assessment 1 Review
Quiz
•
5th Grade
22 questions
Day 9 Equations and Inequalities Review
Quiz
•
9th Grade
10 questions
Writing and Identifying Ratios Practice
Quiz
•
5th - 6th Grade
7 questions
PYRAMID PERSPECTIVES part 1
Presentation
•
9th - 12th Grade
12 questions
Understanding the Fourth of July
Quiz
•
9th Grade
15 questions
Soccer World Cup Quiz Questions
Quiz
•
7th Grade