皮皮学,免费搜题
登录
搜题
【单选题】
下列三种算法是经常应用的内排序算法:插入排序、选择排序和冒泡排序。阅读下列算法,回答问题。 INSERTION-SORT(A) 1. for i=2 to N 2. { key = A[i] ; 3. j =i-1; 4. While (j>0 and A[j]>key) do 5. { A[j+1]=A[j]; 6. j=j-1; } 7. A[j+1]=key; 8. } SELECTION-SORT(A) 1. for i=1 to N-1 2. { k=i; 3. for j=i+1 to N 4. { if A[j] i then 6. { 7. temp =A[k]; 8. A[k]=A[i]; 9. A[i]=temp; 10. } 11. } BUBBLE-SORT(A) 1. for i=1 to N-1 2. { haschange= false ; 3. for j=1 to N-i 4. { if A[j]>A[j+1] then 5. { temp =A[j]; 6. A[j]=A[j+1]; 7. A[j]=temp; 8. haschange= true ; 9. } 10. } 11. if (haschange == false ) then break ; 12. } 阅读 INSERTION-SORT 算法,关于第 4. 行至第 6. 行间的作用,下列说法正确的是 _____ 。
A.
将当前待处理元素,依次与已经排序的第j个元素进行比较,j采取递减方式循环,以找到当前元素所的位置,并将该位置以前的元素依次移动一个位置
B.
将当前待处理元素,依次与已经排序的第j个元素进行比较,j采取递减方式循环,以找到当前元素所的位置,并将该位置以后的元素依次移动一个位置
C.
将当前待处理元素,依次与已经排序的第j个元素进行比较,j采取递增方式循环,以找到当前元素所的位置,并将该位置以前的元素依次移动一个位置
D.
将当前待处理元素,依次与已经排序的第j个元素进行比较,j采取递增方式循环,以找到当前元素所的位置,并将该位置以后的元素依次向前移动一个位置
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【判断题】Errors in the period-end inventory balance only affect the current period's records and financial statements.
A.
正确
B.
错误
【简答题】25°C无限稀薄水溶液中阳离子的摩尔电导率的大小是由什么因素决定的。
【单选题】In testing for cutoff, the objective is to determine
A.
whether all of the current period's transactions are recorded.
B.
whether transactions are recorded in the correct accounting period.
C.
the proper cutoff between capitalizing and expensing expenditures.
D.
the proper cutoff between disclosing items in footnotes or in account balances.
【单选题】计算机软件系统包括( )。
A.
系统软件和工具软件
B.
系统软件和应用软件
C.
字处理和图形软件
D.
多媒体和系统软件
【单选题】The current period's ending inventory is:
A.
The next period's beginning inventory.
B.
The current period's cost of goods sold.
C.
The prior period's beginning inventory
D.
The current period's net purchases.
【简答题】计算机软件系统包括
【单选题】Which of the following circumstances would result in a decrease in income under the accrual basis but would not result in a decrease in income under the cash basis?
A.
Purchase of inventory on account
B.
Payment of 2 months' rent in advance
C.
The expiration of prepaid rent
D.
The return of defective inventory purchased on account, where full credit was given
E.
The payment of the current period's utility bill
【单选题】计算机软件系统包括( )。
A.
操作系统、网络软件
B.
系统软件、应用软件
C.
客户端应用软件、服务器端系统软件
D.
操作系统、应用软件和网络软件
【单选题】Next period's capital is equal to current-period investment
A.
plus the amount of current capital left over after depreciation.
B.
minus the amount of current capital left over after depreciation.
C.
plus the amount of current period depreciation.
D.
minus the amount of current period depreciation.
【单选题】本课程采用的教材名称是( )
A.
从零开始学采购
B.
采购与供应链管理
C.
采购管理实务
D.
采购管理
相关题目: