
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.
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
11 questions
Climate Change and Its Causes
Flashcard
•
KG
10 questions
R2.3 How Far? Le Chatelier's Principle
Flashcard
•
12th Grade
10 questions
Essential Statistics Concepts
Flashcard
•
12th Grade
11 questions
Memoriter_1
Flashcard
•
12th Grade
10 questions
Be going to vs Present Continuous
Flashcard
•
University
10 questions
Tableau périodique, atome Rutherford-Bohr, octet II
Flashcard
•
11th Grade
7 questions
Understanding Dreams
Flashcard
•
University
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Science
89 questions
Unit 1 (Ch 2 & 3) Test Review - Water/Ocean Currents
Quiz
•
9th - 12th Grade
10 questions
Natural Resources
Lesson
•
9th - 12th Grade
12 questions
Comparing Mitosis and Meiosis
Lesson
•
9th - 12th Grade
10 questions
Symbiotic Relationships
Lesson
•
9th - 12th Grade
5 questions
Unit 3 AB Check
Quiz
•
9th - 12th Grade
9 questions
Identify Phases and Structures of Mitosis
Quiz
•
9th - 12th Grade
15 questions
Solar System
Lesson
•
9th - 12th Grade
16 questions
Identify Types of Rocks
Quiz
•
9th - 12th Grade