In class Q4

In class Q4

University

10 Qs

quiz-placeholder

Similar activities

Computer Science Password Hashing

Computer Science Password Hashing

University

10 Qs

PRETEST DFC10042 (PSPD)

PRETEST DFC10042 (PSPD)

University

15 Qs

PDS - 04225  Intro to Data Structures and Algorithms - Chapter 2

PDS - 04225 Intro to Data Structures and Algorithms - Chapter 2

University

10 Qs

If else

If else

University

15 Qs

Python - Functions

Python - Functions

University

10 Qs

Quiz - Control Structure in C programming

Quiz - Control Structure in C programming

University

15 Qs

CSC108 - Lecture 5

CSC108 - Lecture 5

University

10 Qs

Vector in R

Vector in R

University

15 Qs

In class Q4

In class Q4

Assessment

Quiz

Computers

University

Medium

Created by

Farah Habib

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An ADT most closely resembles a(n) ______, whereas a data structure most closely resembles a(n) ______.

Interface, Class

Class, Interface

Static method, instance method

instance method, static method

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The runtime complexity for retrieving the object at a given index in an array-based list is _____.

Constant

Linear

Quadratic

None of these

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The runtime complexity for retrieving the object at a given index in a linked list is ___.

Constant

Linear

Quadratic

None of these

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which ADT would be best for supporting the 'go back' functionaility of a web browser?

List

Queue

Stack

None of these

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you are working with a HashMap called X, how can you change the value associated with the key Y to be Z?

X.set(Y, Z)

X.set(Z, Y)

X.put(Y, Z)

X.put(Z, Y)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What should the following code output?

0

1

2

3

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What should the following code print?

0

1

2

3

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?