
第一章 单元测试
1、
The algorithm and flowchart can help us to
A:To know the memory capacity
B:Identify the data type of a variable
C:To store the data
D:Specify the problem completely and clearly
答案: Specify the problem completely and clearly
2、
The rhombus or diamond shape in flowcharting denotes
A:Decision
B:Initialization
C:Input
D:Output
答案: Decision
3、
Which of the following is not an advantage of a flowchart?
A:Better communication
B:Efficient coding
C:Systematic testing
D:Improper documentation
答案: Improper documentation
4、
The flowchart symbols used for start and stop operations are called as_______.
A:decision
B:processing
C:terminals
D:connectors
答案: terminals
5、
The formula Fn = Fn-1+Fn-2 will produce
A:Prime Number
B:Euler Number
C:Ramanujan Number
D:Fibonacci Number
答案: Fibonacci Number
6、
The main measures for the efficiency of an algorithm are
A:Processor and memory
B:Complexity and capacity
C:Time and space
D:Data and space
答案: Time and space
7、
Which one of the following is the constant time complexity in terms of Big-Oh notation
A:O(n)
B:O(n2)
C:O(1)
D:O(n3)
答案: O(1)
8、
What is the time complexity of the following code?
int a=0;
for(i=0;i<n;i++){
for(j=n;j>i;j–){
a=a+i+j;}}
A:O(n)
B:O(nlogn)
C:O(1)
D:O(n2)
答案: O(n2)
9、
Which one of the following is an example for exponential time complexity?
A:O(n)
B:O(2n)
C:O(1)
D:O(n2)
答案: O(2n)
10、
For larger values of n, which one represents the slowest time?
A:O(n)
B:O(2n)
C:O(n!)
D:O(n2)
答案: O(n!)
第二章 单元测试
1、
Deletion of an element from the array reduces the size of array by ___________.
A:one
B:two
C:three
D:zero
答案: one
2、
Assuming that int is of 4 bytes, what is the size of int arr[10];?
A:10
B:20
C:30
D:40
答案: 40
3、
Two dimensional arrays are useful when the elements being processed are to be arranged in the form of ___________.
A:rows
B:columns
C:Both (a) and (b)
D:None of the above
答案: Both (a) and (b)
4、
In the polynomial, A(x)= 3x2+2x+4, the degree of this polynomial is
A:0
B:1
C:2
D:3
答案: 2
5、
In the polynomial, A(x)= 3x2+2x+4, coefficient of first term is
A:0
B:1
C:2
D:3
答案: 3
6、
A matrix having a larger number of elements with zero values than the number of non-zero elements is said to be a_____________.
A: diagonal matrix
B: sparse matrix
C: triangular matrix
D: zero matrix
答案: sparse matrix
7、
While representing the sparse matrix A (m×n) with t non-zero terms in 3-tuples form, the size of the matrix becomes
A:m × n
B:t × n
C:(t+1) × 3
D:3 × t
答案: (t+1) × 3
8、
Considering a sparse of m×n matrix with t non-zero terms, in FAST_TRANSPOSE algorithm, the size of one-dimensional array (S or T) is equal to:
A:n
B:t
C:m
D:n+t
答案: n
9、
Considering a sparse of m×n matrix with t non-zero terms, the time complexity of TRANSPOSE algorithm is:
A:O(nt)
B:O(n-t)
C:O(n*t)
D:O(n+t)
答案: O(n*t)
10、
Which of the following statement is true regarding TRANSPOSE and FAST_TRANSPOSE algorithms.
A:
The TRANSPOSE algorithm is faster than FAST_TRANSPOSE
B:The TRANSPOSE algorithm is slower than FAST_TRANSPOSE
C:
Time complexities of TRANSPOSE and FAST_TRANSPOSE are same
D:None of the above
答案: The TRANSPOSE algorithm is slower than FAST_TRANSPOSE
下方是付费阅读内容:本平台商品均为虚拟商品,无法用作二次销售,不支持退换货,请在购买前确认您需要购买的资料准确无误后再购买,望知悉!
完整答案需点击上方按钮支付5元购买,所有答案均为章节测试答案,无期末答案。购买后上方矩形框将出现已付费的隐藏内容。
如果点击【立即购买】不能跳转,请更新一下APP版本,如百度APP可能有兼容性问题,更新版本即可正常使用,或者换一个浏览器(如UC浏览器)再试试
期末考试可以联系客服付费代做,如有需要,请点击下方红字。
萌面人优惠券
一键领取淘宝,天猫,拼多多无门槛优惠券,购物省省省!
tips1.无门槛优惠券介绍:
普通优惠券,使用需要满足对应的门槛,如满99元减5元

无门槛优惠券,领券直接减30元,无任何使用门槛。

tips2.购物安全
本平台只收集分享优惠券信息,购买商品仍然在各大电商平台。同时享受对应的售后保障,不满意随时可以退换货!
如需了解详情请点击下方红字:
萌面人优惠券APP下载
支持安卓,苹果,PC电脑等设备,可查看各种大学网课答案,可一键领取淘宝,天猫,京东,拼多多无门槛优惠券
详情请点击下方红字:
更多信息:如何找到本平台?
方法一:
点击下方链接,或者打开手机浏览器扫一扫,进入 萌面人 网站!

方法二:
点击下方链接,或者打开手机浏览器扫一扫,进入 萌面人资料铺 网站!

方法二:
打开手机微信,扫一扫下方二维码,关注微信公众号:萌面人资料铺
本公众号可查看各种网课答案,还可免费查看大学教材答案
点击这里,可查看公众号功能介绍

为了下次更快打开本网站,建议在浏览器添加书签收藏本网页。
添加书签方法:
1.电脑按键盘的Ctrl键+D键即可收藏本网页
2.手机浏览器可以添加书签收藏本网页