
TSA Coding Practice Questions – Flashcardlet Format
Flashcard
•
Science
•
12th Grade
•
Practice Problem
•
Hard
Wayground 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
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
I Wandered Lonely As A Cloud By William Wordsworth
Flashcard
•
12th Grade
8 questions
EL CONSUMISMO
Flashcard
•
12th Grade
12 questions
Legal Writing Memo Flashcard
Flashcard
•
KG - University
14 questions
CADEIA ALIMENTAR
Flashcard
•
KG
11 questions
Analizing Essay Titles
Flashcard
•
University
15 questions
História do Brasil e Portugal
Flashcard
•
12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Science
10 questions
Unit 2: LS.Bio.1.5-LS.Bio.2.2 Power Vocab
Quiz
•
9th - 12th Grade
32 questions
Explore Mixtures and Solutions
Quiz
•
9th - 12th Grade
15 questions
Patterns of Evolution MCQ Reading
Passage
•
9th - 12th Grade
20 questions
F25 Taxonomy Review
Quiz
•
9th - 12th Grade
5 questions
Exploring Gene and Chromosome Mutations
Interactive video
•
9th - 12th Grade
10 questions
What is photosynthesis?
Lesson
•
10th - 12th Grade
17 questions
Explore Forces and Motion
Quiz
•
9th - 12th Grade
23 questions
APES Unit 3 Test Review
Quiz
•
11th - 12th Grade