
AP Computer Science Principles Pre-Test
Flashcard
•
Information Technology (IT)
•
10th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

28 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following is a valid way to declare a variable in JavaScript?
Options: `var myVariable;`, `variable myVariable;`, `declare myVariable;`, `int myVariable;`
Back
`var myVariable;`
2.
FLASHCARD QUESTION
Front
What will be the output of the following code snippet? var x = 5; var y = 10; console.log(x + y);
Back
15
3.
FLASHCARD QUESTION
Front
Which of the following is a function declaration in JavaScript?
Options: `function myFunction() {}` , `let myFunction = function() {}` , `const myFunction = () => {}` , `myFunction() = function() {}`
Back
`function myFunction() {}`
4.
FLASHCARD QUESTION
Front
What is the scope of a variable declared with `var` inside a function?
Back
Local to the function
5.
FLASHCARD QUESTION
Front
What will `add(3, 4)` return?
Back
7
6.
FLASHCARD QUESTION
Front
Which of the following is a valid way to create a list (array) in JavaScript? Options: `var myList = {};`, `var myList = [];`, `let myList = ();`, `let myList = <>;`
Back
`var myList = [];`
7.
FLASHCARD QUESTION
Front
What will be the output of the following code?
var fruits = ['apple', 'banana', 'cherry'];
console.log(fruits[1]);
Back
banana
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
15 questions
3.2 Practice - Translations
Flashcard
•
10th Grade
15 questions
Cell Structure and Function
Flashcard
•
10th Grade
21 questions
Unit 30a Review Mesopotamia and Egypt
Flashcard
•
10th Grade
20 questions
Function notation
Flashcard
•
9th Grade
18 questions
CSOD Study Guide Questions
Flashcard
•
9th Grade
16 questions
34.35.36. лекција
Flashcard
•
KG
15 questions
NC EOC Review: DNA Fingerprinting & Gel Electrophoresis
Flashcard
•
10th Grade
15 questions
Comma Quick Check
Flashcard
•
10th 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
Discover more resources for Information Technology (IT)
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
15 questions
Making Inferences
Quiz
•
7th - 12th Grade
18 questions
SAT Prep: Ratios, Proportions, & Percents
Quiz
•
9th - 10th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
12 questions
Parallel Lines Cut by a Transversal
Quiz
•
10th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University