Search Header Logo

DS-Mech-Quiz

Authored by Debi Mishra

Computers

University

Used 4+ times

DS-Mech-Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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/

Access all questions and much more by creating a free account

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

Already have an account?