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 13:30
Which of the following is an advantage of pure capitalism
Answers: 1
question
Advanced Placement (AP), 24.06.2019 21:30
The hidden observer theory of hypnosis emphasizes the role of hypnosis. a) habituation b) suggestion effect c) dissociation
Answers: 2
question
Advanced Placement (AP), 24.06.2019 22:30
99 pts which of the following statements refers to the wage-price spiral process? the salary of a worker fluctuates with the amount of sales he or she accomplishes per month. an employee loses his or her job, finds a position at another company, and is underemployed. employees only receive a raise when their purchasing power has been eroded by inflation. a worker receives a raise, which increases costs for the employer.
Answers: 1
question
Advanced Placement (AP), 25.06.2019 11:00
Which are the apprehensions of the consumers who shop online? consumers who shop online enjoy the convenience of shopping from home but are apprehensive about theft and loss of privacy.
Answers: 1
You know the right answer?
APCSP QUESTIONS (MAX POINTS) 1. If the following program is supposed to put down seven tennis balls...
Questions
question
History, 06.11.2019 05:31
question
Mathematics, 06.11.2019 05:31
question
Mathematics, 06.11.2019 05:31
Questions on the website: 13722363