

1、单选题:
The algorithm and flowchart can help us to
选项:
A:Identify the data type of a variable
B:To know the memory capacity
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:Initialization
B:Input
C:Output
D:Decision
答案: 【Decision】
3、单选题:
Which of the following is not an advantage of a flowchart?
选项:
A:Efficient coding
B:Improper documentation
C:Systematic testing
D:Better communication
答案: 【Improper documentation】
4、单选题:
The flowchart symbols used for start and stop operations are called as_______.
选项:
A:processing
B:decision
C:connectors
D:terminals
答案: 【terminals】
5、单选题:
The formula Fn = Fn-1+Fn-2 will produce
选项:
A:Prime Number
B:Euler Number
C:Fibonacci Number
D:Ramanujan Number
答案: 【Fibonacci Number】
6、单选题:
The main measures for the efficiency of an algorithm are
选项:
A:Processor and memory
B:Data and space
C:Complexity and capacity
D:Time 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(n3)
C:O(n2)
D:O(1)
答案: 【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(1)
B:O(n2)
C:O(nlogn)
D:O(n)
答案: 【O(n2)】
9、单选题:
Which one of the following is an example for exponential time complexity?
选项:
A:O(2n)
B:O(1)
C:O(n)
D:O(n2)
答案: 【O(2n)】
10、单选题:
For larger values of n, which one represents the slowest time?
选项:
A:O(n)
B:O(n!)
C:O(n2)
D:O(2n)
答案: 【O(n!)】
备案号:冀ICP备20010840号 2020-2099辉辉网络科技 All Rights Reserved