
Cybersecurity: Programming Fundamentals

Quiz
•
Computers
•
9th - 12th Grade
•
Medium

Clayton Chaffin
Used 20+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can we improve the following program?
function start() {
move();
move();
move();
move();
move();
move();
move();
move();
move();
}
Break down this program into more functions
Use a for loop to repeat the move command
Use a while loop to repeat the move command
Fix the indentation of this program
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword do you need to use to define a variable in JavaScript?
variable
var
const
x
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be printed as a result of the following code segment?
var firstPlace = "Dylan";
var secondPlace = "Jacob";
firstPlace = "Jacob";
secondPlace = "Julia";
println(firstPlace);
println(secondPlace);
Dylan/Jacob
Jacob/ Dylan
Jacob/ Julia
Julia/ Jacob
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is a valid Karel command?
move;
MOVE
move();
move()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why do we use while loops in JavaScript?
To break out of some block of code
To do something if a condition is true
To repeat some code while a condition is true
To repeat something for a fixed number of times
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which general while loop definition is written correctly?
A
while (x is true) {
// code
}
B
if (i<5) {
//code
}
C
while (var i = 0; i < count; i++) {
//code
}
D
while (condition) {
//code
}
A
B
C
D
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does an if/else statement look like in JavaScript?
A
if (condition) {
//code
}
B
for (var i = 0; i < count; i++) {
//code
}
C
if (condition) {
//code }
if (condition) {
//code
}
D
if (condition) {
//code
} else {
//code
}
A
B
C
D
Create a free account and access millions of resources
Similar Resources on Wayground
22 questions
Basic Coding Concepts in GDScript

Quiz
•
11th Grade
20 questions
UTS ASJ kelas XI TKJ Ganjil 2023 sistem operasi

Quiz
•
11th Grade
20 questions
Python variables and operators quiz

Quiz
•
9th - 12th Grade
20 questions
Debugging

Quiz
•
10th Grade
22 questions
javascript

Quiz
•
11th Grade
20 questions
Code.org CSD Unit 3 Lessons 1-12

Quiz
•
3rd - 12th Grade
20 questions
Intro to JavaScript in HTML quiz

Quiz
•
9th - 12th Grade
27 questions
Java Script BASICS

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade