43 questions in Algorithms and programming
Most triedMost missedNewest- Which logic gate outputs 1 only when both inputs are 1?
- What is the output of: x ← 3; FOR i ← 1 TO 4: x ← x + i; NEXT; PRINT x
- Which validation check makes sure a value lies between 1 and 100?
- Which search method requires the list to be sorted first?
- A loop that repeats while a condition is true and checks it first is a…
- Write an algorithm that inputs the marks of 30 learners and outputs the highest mark and the average.
- A step-by-step set of instructions to solve a problem is…
- In a flowchart, a diamond shape is used for…
- How does a linear search work?
- What is the maximum number of comparisons a binary search needs for a sorted list of 1 000 items?
- After one pass of a bubble sort (ascending) on 5, 2, 8, 1, what is the list?
- How does a bubble sort work?
- How does a binary search work?
- Which validation check makes sure a phone number has exactly 8 digits?
- What is verification?
- Which validation check ensures a field is not left empty?
- What is validation?
- For the same program, which is erroneous (invalid) test data?
- What is a subroutine (procedure or function)?
- A program accepts ages from 13 to 19. Which is boundary test data?
- What is a trace table used for?
- What is an array?
- Why are subroutines useful?
- What is a syntax error?
- What is the difference between a compiler and an interpreter?
- What is a logic error?
- Which value does 17 DIV 5 give?
- Which value does the expression 17 MOD 5 give?
- What is a high-level language?
- What is the output of: count ← 0; FOR i ← 1 TO 10: IF i MOD 2 = 0 THEN count ← count + 1; NEXT; PRINT count?
Page 1 of 2Next