
Finals Review Intro to Programming
Authored by Nicole Matthews
others
12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
35 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
What is the primary purpose of the return statement in a JavaScript function?
To terminate the program execution
To send a value back from the function
To print output to the console
To declare a new variable
2.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
In JavaScript, which operator is used to check if two values are not equal?
<>
!=
/=
^=
3.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
What will be the output of the following code? let num = 8; if (num % 2 == 0) { console.log("Even"); } else { console.log("Odd"); }
Odd
8
Even
Error
4.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
How many iterations will this loop execute? for (let i = 0; i < 5; i++) { console.log(i); }
0
5
4
6
5.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
What does the readInt() function return?
A string
A boolean
An integer
A floating-point number
6.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
What happens if a while loop's condition never becomes false?
The loop executes once
The program crashes
The loop runs indefinitely
The loop is skipped
7.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
When does the else block in an if/else statement execute?
When the if condition is true
When the if condition is false
Every time the program runs
Only when there's an error
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
38 questions
Unit 3 Review (Paying for College)
Quiz
ā¢
12th Grade
31 questions
Unit 8: Energy Resources Commonly Missed Questions
Quiz
ā¢
9th - 12th Grade
35 questions
Unit 3 - The Post - Classical Era
Quiz
ā¢
12th Grade - University
30 questions
Semester 1 Fall exam Spanish II 2023 Part 1
Quiz
ā¢
9th - 12th Grade
40 questions
Types of Credit - Test Review
Quiz
ā¢
9th - 12th Grade
40 questions
DriveRight - Unit 1 Review 2024
Quiz
ā¢
9th Grade - University
30 questions
Environmental Science Fall Midterm Review Part 1
Quiz
ā¢
9th - 12th Grade
31 questions
INVESTING FINAL QUIZ
Quiz
ā¢
9th - 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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
ā¢
9th Grade
22 questions
fractions
Quiz
ā¢
3rd Grade
11 questions
FOREST Effective communication
Lesson
ā¢
KG
20 questions
Main Idea and Details
Quiz
ā¢
5th Grade
20 questions
Context Clues
Quiz
ā¢
6th Grade
Discover more resources for others
20 questions
-AR -ER -IR present tense
Quiz
ā¢
10th - 12th Grade
22 questions
El Imperfecto
Quiz
ā¢
9th - 12th Grade
20 questions
SSS/SAS
Quiz
ā¢
9th - 12th Grade
20 questions
verbos reflexivos en espaƱol
Quiz
ā¢
9th - 12th Grade
14 questions
Making Inferences From Samples
Quiz
ā¢
7th - 12th Grade
23 questions
CCG - CH8 Polygon angles and area Review
Quiz
ā¢
9th - 12th Grade
8 questions
Momentum and Collisions
Lesson
ā¢
9th - 12th Grade
28 questions
Ser vs estar
Quiz
ā¢
9th - 12th Grade