DS-Mech-Quiz

DS-Mech-Quiz

University

10 Qs

quiz-placeholder

Similar activities

R_Quiz on Algorithms and Programming Languages

R_Quiz on Algorithms and Programming Languages

12th Grade - University

15 Qs

DS-U2-QUIZ2

DS-U2-QUIZ2

University

12 Qs

Data Analytics

Data Analytics

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

Stacks/Queues

Stacks/Queues

University

9 Qs

Quantum Computing Quiz

Quantum Computing Quiz

University

15 Qs

Hackclub

Hackclub

University

14 Qs

COMPUTER PROGRAMMING 2- SEATWORK 1- INTRO TO DATA STRUCTURES

COMPUTER PROGRAMMING 2- SEATWORK 1- INTRO TO DATA STRUCTURES

University

10 Qs

DS-Mech-Quiz

DS-Mech-Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Debi Mishra

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Find the correct answer from the following statement.

A-THETA NOTATION represents the upper and the lower bound of the running time of an algorithm, it is used for analyzing the average-case complexity of an algorithm.

B-Big-O notation represents the upper bound of the running time of an algorithm. Therefore, it gives the worst-case complexity of an algorithm.

C-Omega notation represents the upper bound of the running time of an algorithm. Thus, it provides the best case complexity of an algorithm.

All statements are correct

A and C are correct

A and B are correct

None of the statements are correct

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which among the following is a user-defined data type?

int

float

double

Structure

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which among the statements is false about dynamic memory allocation

It used to provide memory spaces during runtime of a program

We have to explicitly use <stdlib.h> to use dynamic memory allocation

Dynamic memory allocation cannot be used with arrays

calloc() function comes under dynamic memory allocation

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one is true among the following about arrays?

Arrays are user-defined data types

There is no proper way how memory for arrays is allocated

Memory once allocated for array cannot be increased or decreased

Arrays contain dissimilar data types

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one among the following is false about stacks?

Stack is a linear data structure

The operation on a stack can be performed in FIFO order

An element from a stack can be removed in any order

All the options are false

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one among the following is true about queues?

Queues allow elements to be inserted or removed from both ends.
Queues follow the Last-In-First-Out (LIFO) principle.
Queues follow the First-In-First-Out (FIFO) principle.
Queues do not have a fixed size and can grow dynamically.

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Find the postfix form of the expression "a-b+c*d/e"

ab-cde*/+

ab-cd*e+/

ab-cd*e/+

+ab-cd*e/

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?