
TSA Coding Practice Questions – Flashcardlet Format
Flashcard
•
Science
•
12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

15 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is binary search?
Back
A search algorithm that finds the position of a target value within a sorted array. It works by repeatedly dividing the search interval in half.
2.
FLASHCARD QUESTION
Front
What is the time complexity of binary search?
Back
O(log n), where n is the number of elements in the array.
3.
FLASHCARD QUESTION
Front
What is an infinite loop?
Back
A loop that continues to execute indefinitely because the terminating condition is never met.
4.
FLASHCARD QUESTION
Front
What is a while() loop used for?
Back
To execute a block of code repeatedly as long as a specified condition is true.
5.
FLASHCARD QUESTION
Front
What does RANDOM(1,5) return?
Back
A random integer between 1 and 5, inclusive.
6.
FLASHCARD QUESTION
Front
How do you stop a loop when two conditions are met?
Back
Use a conditional statement that checks both conditions, e.g., 'when (die1 == 3 && die2 == 3) {'.
7.
FLASHCARD QUESTION
Front
What is the difference between a while loop and a repeat-until loop?
Back
A while loop checks the condition before executing the loop body, while a repeat-until loop checks the condition after executing the loop body.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Fingerprints
Flashcard
•
12th Grade
15 questions
Geothermal Energy Flashcard
Flashcard
•
12th Grade
15 questions
Fingerprinting
Flashcard
•
12th Grade
15 questions
Fingerprints
Flashcard
•
12th Grade
12 questions
Hashing and Hash Tables
Flashcard
•
University
15 questions
Fingerprints
Flashcard
•
12th Grade
15 questions
Fingerprints
Flashcard
•
11th - 12th Grade
15 questions
Fingerprints
Flashcard
•
12th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations
Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS
Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz
Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions
Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams
Quiz
•
12th Grade
15 questions
Compare and Order Decimals
Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions
Quiz
•
6th Grade
20 questions
Multiplication facts 1-12
Quiz
•
2nd - 3rd Grade