APCSP BJC Unit 4 Lab
Quiz
•
Computers
•
10th - 12th Grade
•
Hard
Thomas Martinez
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What, if anything, is printed as a result of executing the code segment?
21
161116
161161
16111621
Nothing is printing because of an infinite loop.
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the value of count after executing the code segment?
6
5
4
1
0
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
This code segment is intended to store the sum of all multiples of 10 between 10 and 100, inclusive (10 + 20 + ... + 100), in the variable total.
What should /* missing code */ be?
x < 100
x <= 100
x > 10
x >= 10
x != 10
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
This code is intended to print the sum of the digits in num. For example, when num is 12345, the code segment should print 15, which represents the sum 1 + 2 + 3 + 4 + 5.
What should /* missing loop header */ be?
while (num > 0)
while (num >= 0)
while (num > 1)
while (num > 2)
while (num > sum)
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What, if anything, is printed as a result of executing the code segment?
0
1
2
3
Nothing is printed.
Similar Resources on Wayground
10 questions
Programming basics
Quiz
•
9th - 12th Grade
10 questions
MIT App Inventor Basics
Quiz
•
9th - 12th Grade
6 questions
Mathematical Expressions Quiz (MCQs)
Quiz
•
10th Grade
10 questions
HTML Coding
Quiz
•
9th - 11th Grade
8 questions
Basics of JavaScript
Quiz
•
12th Grade
9 questions
C sharp
Quiz
•
11th Grade
5 questions
AP Computer Science A Unit 4 Section 1 (While loops)
Quiz
•
10th - 12th Grade
10 questions
AP CSA Unit 1 & 2 Review
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games
Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines
Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22
Lesson
•
9th - 12th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
20 questions
US Constitution Quiz
Quiz
•
11th 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
20 questions
Analog vs Digital
Quiz
•
9th - 12th Grade
10 questions
CTEA Computer Vocab Terms #1
Quiz
•
12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats
Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission
Interactive video
•
7th - 12th Grade
