![subject](/tpl/images/cats/ap.png)
Advanced Placement (AP), 17.12.2020 02:00 gonzalesalexiaouv1bg
AP Computer Science Principles QUESTIONS (MAX POINTS)
1. If the following program is supposed to put down seven tennis balls. Where is the error?
1 function start() {
2 placeSevenBalls();
3 }
4
5 function placeSevenBalls() {
6 for (var i = 0; i <= 7; i++) {
7 putBall();
8 }
9 }
Options:
Line 2
Line 5
Line 6
Line 7
2. What is the output of the following code segment?
var numResult = 12 + 17;
println(numResult);
var stringResult = 12 + "17";
println(stringResult);
Options:
29
29
29
1217
29
12
17
1217 1217
3. What is printed when the following code is run?
function tripleNumber(x){
return 3 * x;
}
function start(){
var y = 2;
var tripledY = tripleNumber(y);
var result = tripleNumber(tripledY);
print(result);
}
Options:
2
6
18
27
4. Consider the array below.
var characterList = ["Luke", "C3PO", "Han", "Leia", "Obi Wan"];
Which line of code will correctly change "C3PO" to "R2D2"?
Options:
characterList["C3PO"] = "R2D2";
characterList["R2D2"] = "C3PO";
characterList[2] = "R2D2";
characterList[1] = "R2D2";
5. What is the output of the following program?
function start(){
var arr = [2, 15, 12, 65, 17, 83];
var elem = arr. remove(2);
println(arr);
}
Options:
15, 12, 65, 17, 83
12, 65, 17, 83
2, 15, 12, 65
2, 15, 65, 17, 83
![ansver](/tpl/images/cats/User.png)
Answers: 2
Another question on Advanced Placement (AP)
![question](/tpl/images/cats/ap.png)
Advanced Placement (AP), 24.06.2019 02:30
Which group’s rights—human participants or nonhuman animals—are the most important to protect? why? not really a right or wrong answer, but give a detailed explanation
Answers: 1
![question](/tpl/images/cats/ap.png)
Advanced Placement (AP), 25.06.2019 09:00
This is a major archaeological site that was once a regional center to the mayan empire in ancient mesoamerica.
Answers: 1
![question](/tpl/images/cats/ap.png)
Advanced Placement (AP), 25.06.2019 15:00
Unlike plato, aristotle emphasized that knowledge is a product of
Answers: 1
![question](/tpl/images/cats/ap.png)
Advanced Placement (AP), 25.06.2019 20:00
Julian and morgan obtain a 30-year 4/1 arm at 3.9% with a 3/13 cap structure in the amount of $182,345.? what is the remaining balance on the mortgage after the first four years? $141,062.12 $168,476.64 $172,148.77 $173,946.01
Answers: 2
You know the right answer?
AP Computer Science Principles QUESTIONS (MAX POINTS)
1. If the following program is supposed to pu...
Questions
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 01.03.2021 09:00
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 01.03.2021 09:00
![question](/tpl/images/cats/biologiya.png)
Biology, 01.03.2021 09:00
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/fizika.png)
Physics, 01.03.2021 09:00
![question](/tpl/images/cats/mat.png)
Mathematics, 01.03.2021 09:00
![question](/tpl/images/cats/mat.png)
Mathematics, 01.03.2021 09:00
![question](/tpl/images/cats/health.png)
Health, 01.03.2021 09:00
![question](/tpl/images/cats/mat.png)
Mathematics, 01.03.2021 09:00
![question](/tpl/images/cats/mat.png)
Mathematics, 01.03.2021 09:00
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/es.png)
Spanish, 01.03.2021 09:00