subject

APCSP 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
Answers: 2

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 23.06.2019 00:00
Which of the following credit scores will most likely get you the least expensive interest rate on a car loan
Answers: 1
question
Advanced Placement (AP), 23.06.2019 05:20
On a certain portion of an experiment, a statistical test result yielded a p-value of 0.18. what can you conclude? 2(0.18) = 0.36 < 0.5; the test is not statistically significant. if the null hypothesis is true, one could expect to get a test statistic at least as extreme as that observed 18% of the time, so the test is not statistically significant. if the null hypothesis is true, one could expect to get a test statistic at least as extreme as that observed 82% of the time, so the test is not statistically significant. 0.18 > 0.05; the test is statistically significant. p = 1 - 0.18 = 0.82 > 0.05; the test is statistically significant.
Answers: 2
question
Advanced Placement (AP), 23.06.2019 12:30
Jacob’s four-month-old infant is crying continuously. while jacob’s wife suggests that he pick up the baby, jacob’s mother thinks that picking up the baby each time she cries is bad for the baby. why is jacob’s wife right? a. babies sleep better when carried. b. babies learn to cry whenever they want someone to hold them. c. babies may choke if crying while lying on their back. d. babies develop a sense of trust that someone is there to provide care.
Answers: 1
question
Advanced Placement (AP), 25.06.2019 09:10
Describe one of your personality traits that you believe to be highly heritable and another trait that seems to be much less so. provide reasons for your answer, and explain why you would expect genetics to exert a greater impact on some personality traits than on others. 10. discuss at least 3 cultural/environmental factors that may influence behavior.
Answers: 3
You know the right answer?
APCSP QUESTIONS (MAX POINTS) 1. If the following program is supposed to put down seven tennis balls...
Questions
question
Mathematics, 29.07.2020 23:01
question
Mathematics, 29.07.2020 23:01
question
English, 29.07.2020 23:01
Questions on the website: 13722363