皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
下列算法为奇偶交换排序,思路如下:第一趟对所有奇数的i,将a[i]和a[i+1]进行比较,第二趟对所有偶数的i,将a[i]和a[i+1]进行比较,每次比较a[i]>a[i+1],将二者交换;以后重复上述二趟过程,直至整个数组有序。PROCEDURE oesort(VAR a:ARRAY[1..n] OF integer);VAR flag:boolean; i,t:integer;BEGINREPEATflag:=false;FOR i:=1 TO n step 2 DO IF(a[i]>a[i+1]) THEN[flag:= (1)____; t:=a[i+1]; a[i+1]:=a[i]; (2)____]FOR i:= (3)____ DO IF (a[i]>a[i+1]) THEN [flag:= (4)____ ; t:=a[i+1];a[i+1]:=a[i]; a[i]:=t;]UNTIL (5)___ ;END;
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】The amount recorded for merchandise inventory includes all of the following except :
A.
Purchase discounts.
B.
Returns and allowances.
C.
Freight costs paid by the buyer.
D.
Freight costs paid by the seller.
E.
Trade discounts.
【单选题】ABC purchased a luxury passenger car at a cost of $150,000, and paid 25% of sales tax. How much is the amount recorded in the account of passenger car?
A.
$ 150,000
B.
$187,500
C.
$160,000
D.
. $197,500
【简答题】近代会计时期的主要特点是什么? 近代会计时期的主要特点是什么? 近代会计时期的主要特点是什么?
【单选题】教师的教育学、心理学知识属于( )
A.
本体知识
B.
条件知识
【单选题】下列不是属于人际关系的特征的是:
A.
社会性
B.
复杂性
C.
目的性
D.
多重性和多变性
E.
以上都是
【单选题】ABC is a registered entity for the purpose of value added tax, which is 25%. Today ABC purchases some goods on credit whose listed price is $1000. The supplier offers 5% of trade discount. How much is...
A.
$1187.5
B.
$1250
C.
$1300
D.
$1200
【单选题】教师的教育学、心理学知识范畴属于()。
A.
本体性知识
B.
条件性知识
C.
实践性知识
D.
一般性知识
【判断题】记账以后,发现所记金额小于应记金额,但记账凭证正确,应采用红字更正法进行更正。( )After bookkeeping, it is found that the amount recorded is less than the amount that should be recorded, but the bookkeeping vouchers are correct. Then co...
A.
正确
B.
错误
【单选题】教师的教育学、心理学知识属于( )
A.
本体性知识
B.
条件性知识
C.
实践性知识
D.
一般文化知识
【单选题】教师的教育学、心理学知识属于()
A.
本体性知识
B.
条件性知识
C.
实践性知识
D.
一般知识
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题