問題詳情
設n 為一2 的正整數次方,則下面程式執行後,count 的值是多少?Procedure exam(n:interger)Varx,count :integer;begincount :=0;x:= 2;while x < n dobeginx:= 2 * x;count := count +1;endwriteln(count);end
(A) log 1 2
(B) log 10 2
(C) 3
(D) 2
參考答案
答案:A
難度:非常困難0.157895
統計:A(6),B(9),C(7),D(3),E(0)
用户評論