
AP Comp Std 2 Review
Quiz
•
Computers
•
12th Grade
•
Medium
Kelly Challand
Used 7+ times
FREE Resource
Enhance your content in a minute
24 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to declare a variable in JavaScript?
variable
var
int
x
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is commonly used to display output on the screen in most programming languages?
post
println
write
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Examine the following JavaScript function. Which of the following values cannot be an output when the function is executed?
function start(){
var mysteryNum = 10 * Randomizer.nextInt(2,10);
console.log(mysteryNum);
}20
30
10
90
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function should you use to prompt the user to input text in a program?
readln
readLine
text
println
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following JavaScript function:
function start(){
var loggedIn = false;
console.log("User logged in?: " + !loggedIn);
}
What will be the output when this function is executed?
User logged in?: true
User logged in?: false
There is a syntax error in the code
User logged in?: + loggedIn
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which symbol is used for multiplication in JavaScript programming?
x
X
*
#
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following JavaScript program:
var result = 0;
var max = 5;
for(var i = 0; i < max; i++){
result += i;}
console.log(result);
What will be the output when this code is executed?
15
10
0
12345
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Empowerment Technologies
Quiz
•
11th - 12th Grade
20 questions
Teknik Layanan Jaringan
Quiz
•
12th Grade
21 questions
HTML5 & CSS3 Refresher
Quiz
•
7th - 12th Grade
20 questions
Java Packages
Quiz
•
12th Grade
25 questions
Electronic Components
Quiz
•
9th - 12th Grade
25 questions
2.6 The Internet Address (IPv4 & IPv6)
Quiz
•
11th - 12th Grade
20 questions
Excel Spreadsheet Fun (2nd)
Quiz
•
10th - 12th Grade
20 questions
Technology Innovations
Quiz
•
5th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
