Where should return true; be written in the code?
AP CSP Unit 7 Review

Flashcard
•
Computers
•
11th Grade
•
Hard
Quizizz Content
Used 2+ times
FREE Resource
Student preview

21 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
OPTION C
2.
FLASHCARD QUESTION
Front
Which call of the function correctly follows the instructions laid out in the API? Options: moveElement("button1", 2, 23); moveElement("button1", "left", "thirty"); moveElement("button1", 30, "two"); moveElement("button1", "down", 25);
Back
moveElement("button1", "down", 25);
3.
FLASHCARD QUESTION
Front
Parameters are different than arguments
Back
True
4.
FLASHCARD QUESTION
Front
What will print to the console after running this code segment? Options: 15, 16, 21, 18
Back
16
5.
FLASHCARD QUESTION
Front
Which of the following procedures would be most useful as part of a program to determine whether a word appears in two different text files? Options: A procedure getWords, which takes a positive integer n and a text file as input and returns the first n words in the text file. A procedure textMatch, which takes two text files as input and returns true if the two text files are identical. A procedure isFound, which takes a word and a text file as input and returns true if the word appears in the text file A procedure sameSize, which takes two text files as input and returns true if the two text files contain the same number of words.
Back
A procedure isFound, which takes a word and a text file as input and returns true if the word appears in the text file.
6.
FLASHCARD QUESTION
Front
Which of the following is NOT a benefit of procedural abstraction?
- Making the code run faster
- Making the code more readable
- Providing more opportunities for code reuse
- Reducing the amount of duplicated code
Back
Making the code run faster
7.
FLASHCARD QUESTION
Front
What is displayed as a result of the procedure call
proc2("birthday", "to you")?
Back
to you happy birthday
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Aspire Vocab Review

Flashcard
•
KG
21 questions
AP CSP Unit 7 Review

Flashcard
•
11th Grade
20 questions
Code.org Express 1 - BLOCKLY

Flashcard
•
KG - University
13 questions
AP CSP Unit 7: Parameters, Returns, and Libraries

Flashcard
•
9th - 12th Grade
20 questions
AP CSP Unit 7: Parameters, Returns, and Libraries

Flashcard
•
9th - 12th Grade
20 questions
JavaScript - Karel

Flashcard
•
9th - 10th Grade
15 questions
Muscle Anatomy Flashcard

Flashcard
•
11th - 12th Grade
13 questions
Python If Else Statements

Flashcard
•
9th - 12th Grade
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
Discover more resources for Computers
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
14 questions
Attributes of Linear Functions

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University
50 questions
Biology Regents Review 2: Ecology

Quiz
•
9th - 12th Grade
20 questions
Investing

Quiz
•
9th - 12th Grade