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.

Gce Model Questions Vol1 2018 Computer Studies Objective / Multiple Choice Medium Difficulty
Question 10 GCE_MODEL_QUESTIONS_VOL1 • 2018 • COMPUTER_STUDIES • objective

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

A. 7
Correct Answer B. 8
C. 12
D. 9
Correct Answer
B
Correct Option:
8

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.

Unlock Full Access Available for Android & Windows
Chat with Support