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
Answers: 2
Advanced Placement (AP), 23.06.2019 08:20
Free 20 points + brainliest to whoever answers right! in the event of a crash, personal injury protection (pip) coverage pays toward the medical costs for a. any injuries you cause to others b. any injuries that are not your fault c. your injuries if you are not at fault d. your injuries, regardless of who's at fault
Answers: 2
Advanced Placement (AP), 23.06.2019 20:00
*giving 20 free points plus brainliest for this drivers ed question * ! which of the following is not the name of a dash gauge? a. speedometer b. gear meter c. odometer d. temperature gauge
Answers: 2
Advanced Placement (AP), 25.06.2019 22:30
The larger the investment you make, the easier it will be to: get money from other sources. guarantee cash flow. buy insurance. streamline your products.
Answers: 1
Advanced Placement (AP), 26.06.2019 18:00
Let r(t) represent the rate, in square feet per minute, at which a groundskeeper is mowing a lawn t minutes after 3 p.m. what expression represents the area, in square feet, of the lawn that is mowed between 3 p.m. and 5 p.m.?
Answers: 1
AP Computer Science Principles QUESTIONS (MAX POINTS)
1. If the following program is supposed to pu...
Mathematics, 24.12.2019 11:31
History, 24.12.2019 11:31
Biology, 24.12.2019 11:31
Mathematics, 24.12.2019 11:31
History, 24.12.2019 11:31
English, 24.12.2019 11:31
Mathematics, 24.12.2019 11:31
History, 24.12.2019 11:31
Mathematics, 24.12.2019 11:31
Mathematics, 24.12.2019 11:31
History, 24.12.2019 11:31
History, 24.12.2019 11:31
Biology, 24.12.2019 11:31
Mathematics, 24.12.2019 11:31