Search Header Logo

Push dan Pop di Stack

Authored by Denver Agpianka

Computers

8th Grade

Used 2+ times

Push dan Pop di Stack
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Manakah hasil yang benar dari operasi berikut ini jika dimulai dari tumpukan kosong?

  1. 1. Push 20

  2. 2. Push 30

  3. 3. Pop

[20, 30]

[20]

[50]

Underflow

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Hasil dari operasi stack berikut ini jika dimulai dari sebuah stack [10, 15]

  1. 1. Pop

  2. 2. Pop

  3. 3. Push 20

  4. 4. Push 35

  5. 5. Pop

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Perhatikan operasi stack berikut ini, manakah yang menjadi elemen teratas?

  1. 1. Push A

  2. 2. Push B

  3. 3. Push C

  4. 4. Pop

  5. 5. Push D

A

B

C

D

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Terdapat sebuah stack berikut ini : [1,2,3,4,5]

Kemudian ada operasi stack berikut:

  1. 1. Pop

  2. 2. Push 6

  3. 3. Pop

  4. 4. Pop

  5. 5. Push 7

  6. Hasil dari operasinya adalah…

[1,2,3,6]

[1,3,7]

[1,2,3,7]

[1,2,7]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Jika sebuah stack kosong diberikan operasi:

1. Push A

  1. 2. Push B

  2. 3. Pop

  3. 4. Pop

  4. 5. Push C

  5. 6. Push D

  6. 7. Pop

  7. Data yang terdapat dalam stack adalah...

C

D

A

B

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?