Search Header Logo

DSA Quiz 1

Authored by MANJU VERMA

Computers

University

Used 2+ times

DSA Quiz 1
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

30 sec • 1 pt

What is the output of the following code?

#include<stdio.h>

void main()

{

   int s=0;

   while(s++<10)

   {

      if(s<4 && s<9)

         continue;

      printf("\n%d\t",s);

   }

}

1 2 3 4 5 6 7 8 9

1 2 3 10

4 5 6 7 8 9 10

4 5 6 7 8 9

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Array passed as an argument to a function is interpreted as

Address of the array

Values of the first elements of the array

Address of the first element of the array

Number of element of the array

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Pushdown list means

Stack

Queue

Linked list                

All of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The memory address of first element of array is called

floor address

foundation address

first address

base address

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The expression 4+6/3*2-2+7%3 evaluates to

3

4

6

7

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A linear list in which element can be added or removed at either end, but not in the middle is called:

Circular Queue

Priority Queue         

Deque

None of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If the characters 'D', 'C', 'B', 'A' are placed in a queue (in that order), and then removed one at a time, in what order will they be removed?

ABCD

ABDC

DCAB

DCBA

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?