while (X < 6) do while (X < 5) do repeat (print the value of X;
虽然(X < 6)在(X < 5)做重复(打印X的值;
(print the value of X; X + 1; (X X + 1) X
X + 1) X + 1,X (打印X的值;(X
X + 1) X print the value of X) until (X > 6)
X + 1)打印X的值),直到(X X > 6)
9. Which of the following is not a way of representing algorithms?
9。下列哪一项不是代表算法的方式吗?
A. Stepwise refinement B. Pseudocode C. Flowchart D. Programming language
a .逐步求精b . c .流程图d .编程语言的伪代码
10. Which algorithms would find the name Kelly more quickly in the list: John, Kelly, Lewis, Maurice, Nathan, Oliver, Pat, Quincy, Roger, Stan, Tom?
10。这算法会发现这个名字凯利在列表中更快:约翰,凯莉,刘易斯,莫里斯,内森,奥利弗,帕特,昆西,罗杰,斯坦,汤姆?
A. sequential search B. binary search
a .顺序搜索b .二进制搜索
Fill-in-the-blank/Short-answer Questions
填空/简答题
1. An ordered collection of unambiguous, executable steps that defines a terminating process is called A , and the
representation of an algorithm is B . The action of executing a program is C .
1。一个命令收集的明确的、可执行的步骤,定义了一个终止过程被称为,代表一个算法是B。执行程序的作用是C。
2. What sequence of values will be printed when the following instructions are executed?
2。什么值序列将打印当以下执行指令?
5; X