ADS ULTRA (AITU)

ADS ULTRA (AITU)

University

153 Qs

quiz-placeholder

Similar activities

testing quiz

testing quiz

University

150 Qs

DSC Final Exam

DSC Final Exam

University

149 Qs

Networking

Networking

University

156 Qs

CIS-115-81 Final Exam

CIS-115-81 Final Exam

University

148 Qs

Examen_BD2

Examen_BD2

University

157 Qs

Теория информациии

Теория информациии

University

152 Qs

Dành cho cán bộ  NHCSXH

Dành cho cán bộ NHCSXH

University

149 Qs

ADS ULTRA (AITU)

ADS ULTRA (AITU)

Assessment

Quiz

Computers

University

Medium

Created by

Pavel Lukoyanov

Used 1+ times

FREE Resource

153 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the time complexity for adding an element to the end of Linked List?
O(1)
O(Nˆ2)
O(logN)
O(N)

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is not the type of queue?
Ordinary queue
Circular queue
Priority queue
Single ended queue

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is double-linked list?
each node points to the next node
last node points to the first
each node points to all previous nodes
each node points to the next and previous nodes

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which among the following is the worst-case time complexity for appending an element in a variable-length array?
O(n)
O(n2)
O(log n)
O(1)

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Specify ArrayList advantages over LinkedList
arrayList is better for manipulating the data
adding and removing an element
less memory usage
increasing the size

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be the result of nested statements/loops or recursion?
O(1)
O(n^2 + n)
O(n^2)
O(n)

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

We can use the following recursive function to search an array of sorted numerical values to find a specific number in that array (or return -1 if the value isn't in the array): function searchSortedArray(number, array, beginIndex = 0, endIndex = array.length - 1) { let middleIndex = Math.floor((beginIndex + endIndex)/2); if (array[middleIndex] === number)  {    return middleIndex;  } else if (beginIndex >= endIndex)  {    return -1;  } else if (array[middleIndex] < number)  {    beginIndex = middleIndex + 1;    return searchSortedArray(number, array, beginIndex, endIndex);  } else if (array[middleIndex] > number)  {    endIndex = middleIndex - 1;    return searchSortedArray(number, array, beginIndex, endIndex);  } }
O(n*n)
O(nlogn)
O(logn)
O(n)

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?