Ten questions on searching and sorting, tracing pseudocode, data types, arrays, testing and abstraction — the content of the programming paper. Challenge…
10 questions • Zestly
• Which of the following statements accurately describes a key requirement for using a binary search algorithm on a list of data?
• Consider the following pseudocode: count = 0 FOR i = 1 TO 4 count = count + i NEXT i OUTPUT count What is the final value output by…
• Consider the following pseudocode: x = 10 WHILE x > 5 x = x - 2 ENDWHILE OUTPUT x What is the final value output by this program?
• Consider the following pseudocode: FUNCTION calculate(a, b) IF a > b THEN RETURN a - b ELSE RETURN b - a ENDIF ENDFUNCTION…
• In a programming language, if the variable 'score' is 15 and the variable 'bonus' is 4, what is the result of the operation: score MOD…
• A program uses INPUT to read a number typed by the user and stores it in a variable called reply. The next line calculates total = reply *…
• A two-dimensional array named 'grid' is defined with 3 rows and 3 columns. If the array is indexed starting at 0, which coordinate refers…
• A program accepts a whole-number age and treats any value from 18 to 65 inclusive as valid. Which set is the best choice of boundary test…
Want to prepare for an exam — or set one for someone else?
Create your own exam
See the full breakdown →