DS Quiz-1

DS Quiz-1

KG - University

10 Qs

quiz-placeholder

Similar activities

Linked List

Linked List

University

14 Qs

C++ linked list

C++ linked list

University

10 Qs

Pengenalan kepada Pensyarah dan Kursus DFC3033

Pengenalan kepada Pensyarah dan Kursus DFC3033

2nd Grade

12 Qs

STRUKTUR DATA (QUIZ FINAL)

STRUKTUR DATA (QUIZ FINAL)

University

15 Qs

CHAPTER 3: STACK

CHAPTER 3: STACK

University

10 Qs

Structure Data Review

Structure Data Review

University - Professional Development

10 Qs

Uji Pemahaman Komputasional

Uji Pemahaman Komputasional

9th Grade

15 Qs

Fundamentals of Data Structure and Algorithm

Fundamentals of Data Structure and Algorithm

1st - 2nd Grade

10 Qs

DS Quiz-1

DS Quiz-1

Assessment

Quiz

Computers

KG - University

Medium

Created by

SUBHASH AGRAWAL

Used 6+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Consider the following pseudocode that uses a stack

declare a stack of characters

while ( there are more characters in the word to read )

{

read a character

push the character on the stack

}

while ( the stack is not empty )

{

pop a character off the stack

write the character to the screen

}

geeksquizgeeksquiz

ziuqskeeg

geeksquiz

ziuqskeegziuqskeeg

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following correctly declares an array?

(A) int geeks[20];

(B) int geeks;

(C) geeks{20};

(D) array geeks[20];

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. Process of inserting an element in stack is called ____________

a) Create

b) Push

c) Evaluation

d) Pop

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Process of removing an element from stack is called __________

a) Create

b) Push

c) Evaluation

d) Pop

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a stack, if a user tries to remove an element from empty stack it is called _________

a) Underflow

b) Empty collection

c) Overflow

d) Garbage Collection

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Pushing an element into stack already having five elements and stack size of 5, then stack becomes

a) Overflow

b) Crash

c) Underflow

d) User flow

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In linked list each node contain minimum of two fields. One field is data field to store the data second field is?

a) Pointer to character

b) Pointer to integer

c) Pointer to node

d) Node

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?