Computer Studies · BGCSE / Algorithms and programming
Multiple choiceExam revisionForm 5 · BGCSE
What is the output of: count ← 0; FOR i ← 1 TO 10: IF i MOD 2 = 0 THEN count ← count + 1; NEXT; PRINT count?
Source: Thuto360 practice
Report a problem
More like this
- 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.
- 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?