A teacher asks students to design an app that recommends a school club. Students first list the required inputs, then identify smaller tasks such as collecting preferences, comparing options, and displaying a recommendation. Which problem-solving strategy are they using?
Algorithmic Thinking And Data Analysis
Question · Easy
Which sequence best reflects an iterative development process for a student-created game?
In a flowchart, which structure is represented when a decision diamond sends execution to one of two different paths based on whether a condition is true?
A program hides the details of how a map route is calculated and exposes only a function getRoute(start, end). Which concept is most directly illustrated?
Question · Medium
Which pseudocode pattern best demonstrates recursion?
A class needs to plan software for a lunch-order kiosk. Which artifact would be most useful for showing the sequence of decisions and steps before writing code?
A team builds a robot navigation program with separate components for sensing obstacles, deciding a direction, and moving the motors. What is the main advantage of this component design?
Which task is the best example of algorithmic thinking?
A function checkPassword(password) returns true if the password length is at least 12 and contains a digit. Why is this function an example of abstraction?
A list contains [4, 7, 9, 12]. The algorithm sets total = 0 and then, for each item x in the list, sets total = total + x. What is total after the loop ends?
Use zero-based indexing. A list contains [6, 8, 10, 12, 14]. Which value is list[3]?
An algorithm searches an unsorted list of 1,000 student names by checking each name from the beginning until it finds the target. Which search strategy is being used?
A sorted list contains 64 names. In the worst case, approximately how many comparisons does binary search need to find a name or determine it is absent?
Question · Hard
Which statement best compares linear search and binary search?
Which growth rate best describes an algorithm whose running time doubles when the number of input items doubles?
A nested loop compares every pair of students in a class of n students. Which big-O expression best represents the number of comparisons?
Which situation most clearly requires evaluating an algorithm for correctness rather than only for speed?
A selection sort is used to arrange [5, 2, 8, 1] in ascending order. After the first pass places the smallest value at the beginning, what should the list be?
In bubble sort for ascending order, adjacent items are repeatedly compared and swapped when they are out of order. After one full pass through [4, 1, 3, 2], which value is guaranteed to be in its final position?
An algorithm sets x = 3, then repeats the following steps while x < 20: x = x * 2. What is the value of x when the loop terminates?
A school wants to predict bus arrival delays using past arrival times, weather, and traffic data. Which data-analysis technique is most appropriate for estimating a numeric delay from related variables?
Students collect temperature readings from sensors every minute for a week. Which tool would most directly help them identify daily temperature patterns?
A data set contains duplicate records for the same library book because two systems were merged. Which preprocessing step should occur before calculating how many unique books the library owns?
A simulation of disease spread lets students change population density and contact rate. What is the main educational value of this type of model?
A spreadsheet is used to filter a student activity data set to records where grade = 8 and activity = robotics. Which data operation is being performed?
A model predicts cafeteria demand using only last year's sales data. It consistently underestimates demand after a new schedule changes lunch periods. Which conclusion is most appropriate?
A teacher asks students to compare two sorting algorithms using the same randomly generated lists of 100, 1,000, and 10,000 numbers. What is the strongest reason to use the same lists for both algorithms?
An algorithm uses a base case for n = 0 and otherwise computes n * factorial(n - 1). What is factorial(4)?
Which language characteristic is most associated with an object-oriented programming language?
Programming Concepts
A novice programming class uses a block-based environment before moving to a text-based language. What is a key instructional benefit of this sequence?
Which software development methodology emphasizes short cycles, frequent feedback, and adapting the product as requirements become clearer?
A team follows requirements analysis, design, implementation, testing, deployment, and maintenance mostly in sequence. Which development model does this most closely resemble?
Which practice best improves code readability for future maintenance?
A mobile operating system gives app developers documented functions for requesting camera access without exposing all camera-driver code. What tool or concept is being provided?
A program fails to run because a statement is missing a closing parenthesis. What type of error is this?
A payroll program runs without crashing but calculates overtime pay using 1.25 times the hourly rate instead of 1.5 times. What type of error is most directly involved?
Which testing approach is best for checking whether a function correctly handles the smallest valid input, largest valid input, and values just outside the valid range?
In an event-driven program, which action most likely triggers a handler function?
Which statement best describes a heuristic algorithm?
A program uses four processors to analyze four independent image files at the same time. Which concept is most directly illustrated?
Which value is most appropriately stored as a Boolean?
Which value most clearly requires a floating-point data type rather than an integer?
Using zero-based indexing and the convention that substring(a, b) includes index a and excludes index b, what is the result of 'computer'.substring(1, 4)?
Using zero-based indexing, what is 'network'.characterAt(3)?
If + is the string concatenation operator, what is the result of 'data' + 'base'?
A constant named MAX_ATTEMPTS is set to 3 at the start of a program and should not change while the program runs. Why use a constant instead of a regular variable?
Which data structure is most appropriate for modeling students waiting in a lunch line where the first student to enter should be the first served?
An array scores contains [91, 84, 76, 88]. Using zero-based indexing, which expression accesses the final element?
Loading more…