Gce Model Questions Vol1 2018 Computer Studies Question 10
Practice objective / multiple choice question 10 from the 2018 Gce Model Questions Vol1 Computer Studies examination.
A program implements the following algorithm on a positive integer \(N\): ``` SET count = 0 WHILE N ≠ 1 IF N is even THEN SET N = N / 2 ELSE SET N = 3N + 1 ENDIF SET count = count + 1 ENDWHILE OUTPUT count ``` If the initial value of \(N\) is 6, what integer does the program output?
Answer Options
About This Question
This is Gce Model Questions Vol1 2018 Computer Studies Question 10. It is one of the objective questions from the 2018 Gce Model Questions Vol1 Computer Studies examination.
Difficulty level: Medium .
Master the Exam!
You've seen a preview, but there are thousands more questions plus AI tutor to break down complex solutions.