
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
8 questions
Some British Slang
Presentation
•
9th Grade
8 questions
Transformations of Exponentials And logarithms
Presentation
•
10th Grade
7 questions
Dasar Dasar Komputer
Presentation
•
10th Grade
8 questions
Semicolons
Presentation
•
10th Grade
6 questions
Vocabulary May 6
Presentation
•
5th Grade
3 questions
The Tempest, Act II Vocabulary
Presentation
•
10th Grade
6 questions
ELEMENTE DE VERSIFICAȚIE
Presentation
•
KG
6 questions
Writing a Report and Connectors of contrast
Presentation
•
10th Grade
Popular Resources on Wayground
20 questions
STAAR Review Quiz #3
Quiz
•
8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
6 questions
Marshmallow Farm Quiz
Quiz
•
2nd - 5th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
12 questions
What makes Nebraska's government unique?
Quiz
•
4th - 5th Grade
Discover more resources for Computers
50 questions
STAAR English 2 Review
Quiz
•
10th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade
20 questions
Grammar
Quiz
•
9th - 12th Grade
31 questions
Easter Trivia
Quiz
•
KG - 12th Grade
16 questions
Circles - Equations, Central & Inscribed Angles
Quiz
•
9th - 12th Grade
46 questions
Unit 4 Geosphere Test Review
Quiz
•
9th - 12th Grade
10 questions
Calculating Surface Area of a Triangular Prism
Interactive video
•
6th - 10th Grade
20 questions
Central Angles and Arc Measures 2
Quiz
•
10th Grade