STACK - [UJI UAS ALS]

STACK - [UJI UAS ALS]

University

10 Qs

quiz-placeholder

Similar activities

MULTIMEDIA ANIMATION

MULTIMEDIA ANIMATION

University

13 Qs

Unit 28 - Quiz #1

Unit 28 - Quiz #1

University

15 Qs

PROBLEM SOLVING USING R  UNIT I  MCQS

PROBLEM SOLVING USING R UNIT I MCQS

University

15 Qs

E-Book1

E-Book1

University

10 Qs

Creating a document

Creating a document

1st Grade - Professional Development

9 Qs

Programación II Parte 5

Programación II Parte 5

University

10 Qs

Podsumowanie: binarny, komputer, sieć

Podsumowanie: binarny, komputer, sieć

7th Grade - University

13 Qs

ECM3434 Business Analysis 1 - Data Modelling

ECM3434 Business Analysis 1 - Data Modelling

University

10 Qs

STACK - [UJI UAS ALS]

STACK - [UJI UAS ALS]

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Emely Lestari

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The general principle of stack is

When do pop, top element is removed

First in and first out

Use push to remove element

Use pop to insert element

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the problem if implementing stack with array when the index[0] is as a TOP:

Pop will not need to move all elements

The top element will not move when doing push

The last elements need to be removed when doing pop

Pop will need to move all elements

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the disadvantage if implement stack with array when the index[0] is as the first element?

Pop will need to move all elements

The last elements need to be removed when doing pop

Pop will not need to move all elements

We need to record the array and the top position

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Stack can be implemented as stack with:

Top is always in the first element only

Top is always in the midddle element only

Top is always in the last element only

Top can be as the first element or last element

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the advantage if implement stack with array when the index[0] is as the first element?

Push will not need to move all elements

The last elements need to be removed when doing pop

We need to record the array and the top position

Pop will need to move all elements

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the advantage if implement stack with array when the index[0] is as the first element?

Pop will need to move all elements

Pop will not need to move all elements

The last elements need to be removed when doing pop

We need to record the array and the top position

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is true about implementing linked list with top at the last element (TAIL)?

Push always insert first element

Pop always delete first element

Push always insert last element

Pop will need to move all elements

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?

Discover more resources for Computers