1027 Exam Prep

1027 Exam Prep

University

20 Qs

quiz-placeholder

Similar activities

Node.js Server

Node.js Server

University

20 Qs

CIS2303 Week 4_5 Ch_3

CIS2303 Week 4_5 Ch_3

University

18 Qs

Linked List and Arrays in JAVA

Linked List and Arrays in JAVA

University

16 Qs

DS - Linked List - S1

DS - Linked List - S1

University

16 Qs

Data Structure Quiz1

Data Structure Quiz1

University

20 Qs

C++ Finall!!!!

C++ Finall!!!!

University

15 Qs

DSQUIZ 2020-21

DSQUIZ 2020-21

University

18 Qs

Knowledge Knockout[Quiz Round](2nd-4th years)

Knowledge Knockout[Quiz Round](2nd-4th years)

University

15 Qs

1027 Exam Prep

1027 Exam Prep

Assessment

Quiz

Computers

University

Hard

Created by

Nicole Moskovitch

Used 8+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Indicate which of the following is an example of a non-linear collection

Stack

Queue

Tree

Both a and c are true

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The term "time complexity" is the measure of

how many basic operation needs to be executed

the duration of the program execution

the clock speed of the computer running the program

how long it takes to program the algorithm

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Indicate which statement is true regarding the time complexity of the pop() method on a stack

In ArrayStack, pop() has a time complexity of O(1)

 In ArrayStack, pop() has a time complexity of O(n)

In LinkedStack, pop() has a time complexity of O(1)

Both a and c are true

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How could you access the second element in a singly linked list, assuming front points to the first element of the linked list?

front[1]

 front.getNext() 

front.getNode(1) 

front.getList[1]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Indicate what would be printed to the console if we called the following function with: System.out.println(run(15))

-1

0

1

4

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

 Indicate what would be printed to the console if we called the following function with: System.out.println(work(3));

1

3

4

5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When performing a postorder traversal on a binary search tree, the last node visited is:

The root node

The leftmost node

The rightmost node

The node with the largest value

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?