ADS ULTRA (AITU)

ADS ULTRA (AITU)

University

153 Qs

quiz-placeholder

Similar activities

Examen_BD2

Examen_BD2

University

157 Qs

anhlt quiz

anhlt quiz

University

153 Qs

Computer Hardware and Software Quiz

Computer Hardware and Software Quiz

University

157 Qs

Final Test bank LamNT

Final Test bank LamNT

University

150 Qs

MS-PPT

MS-PPT

University

151 Qs

Dành cho cán bộ  NHCSXH

Dành cho cán bộ NHCSXH

University

149 Qs

Информатика негіздері 1-150 сұрақ

Информатика негіздері 1-150 сұрақ

University

150 Qs

ADS ULTRA (AITU)

ADS ULTRA (AITU)

Assessment

Quiz

Computers

University

Medium

Created by

Pavel Lukoyanov

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?