DS-Mech-Quiz

DS-Mech-Quiz

University

10 Qs

quiz-placeholder

Similar activities

Foundations of Programming

Foundations of Programming

University

15 Qs

UNIT-2 QUEUE

UNIT-2 QUEUE

University

10 Qs

ANALYSIS OF ALGORITHMS

ANALYSIS OF ALGORITHMS

University

15 Qs

OS Fun Review 5

OS Fun Review 5

University

10 Qs

Page Replacement Algorithms

Page Replacement Algorithms

University

15 Qs

Page Replacement Algorithm

Page Replacement Algorithm

University

10 Qs

Computer Science Quiz

Computer Science Quiz

8th Grade - University

15 Qs

CC 104 Prelim

CC 104 Prelim

University

11 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?