Soal Uts Semester 3 Struktur Data | Ubp Karawang

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Maulana.a.rofik
M
Maulana.a.rofik
Community Contributor
Quizzes Created: 1 | Total Attempts: 303
Questions: 10 | Attempts: 303

SettingsSettingsSettings
Soal Uts Semester 3 Struktur Data | Ubp Karawang - Quiz


Questions and Answers
  • 1. 

    Diketahui suatu deklarasi Variabel int x, y, *z; variabel yang merupakan penunjuk ke pointer adalah...?

    • A.

      X

    • B.

      Y

    • C.

      Z

    • D.

      X dan y

    • E.

      Y dan z

    Correct Answer
    C. Z
    Explanation
    The correct answer is "z" because the declaration "*z" indicates that "z" is a pointer variable.

    Rate this question:

  • 2. 

    Perintah yang tepat untuk mempersiapkan node baru beserta alokasi memorinya adalah...?

    • A.

      Create

    • B.

      Null

    • C.

      Input

    • D.

      New

    • E.

      Insert

    Correct Answer
    D. New
    Explanation
    The correct answer is "New". The question is asking for the appropriate command to prepare a new node and allocate memory for it. The command "New" is commonly used in programming languages to create a new instance or object and allocate memory for it.

    Rate this question:

  • 3. 

    Jika Tail = Null, Maka kondisi Linked List adalah...?

    • A.

      Penuh

    • B.

      Kosong

    • C.

      Terisi

    • D.

      Tidak Dapat Ditambah

    • E.

      Baru

    Correct Answer
    B. Kosong
    Explanation
    The correct answer is "Kosong" because "Kosong" means empty in Indonesian. Therefore, if the tail of the linked list is null, it indicates that the linked list does not have any elements and is empty.

    Rate this question:

  • 4. 

    Untuk Menginputkan data "082297966699" maka Tipe Data yang paling sesuai adalah...?

    • A.

      Boolean

    • B.

      Char

    • C.

      Integer

    • D.

      Float

    • E.

      String

    Correct Answer
    E. String
    Explanation
    The correct answer is "String" because the given data "082297966699" is a sequence of characters, which can be represented using a string data type.

    Rate this question:

  • 5. 

    Array yang sering digunakan dalam menterjemahkan matriks pada pemrograman, adalah array berdimensi :

    • A.

      Satu

    • B.

      Dua

    • C.

      Tiga

    • D.

      Satu dan Dua

    • E.

      Multidimensi

    Correct Answer
    B. Dua
    Explanation
    Array yang sering digunakan dalam menterjemahkan matriks pada pemrograman adalah array berdimensi dua. Array berdimensi dua digunakan untuk menyimpan data dalam bentuk matriks dengan baris dan kolom. Setiap elemen dalam array dua dimensi dapat diakses menggunakan dua indeks, yaitu indeks baris dan indeks kolom.

    Rate this question:

  • 6. 

    Terdapat Array : A [3][4] maka jumlah elemen Array tersebut adalah ……

    • A.

      3

    • B.

      4

    • C.

      7

    • D.

      1

    • E.

      12

    Correct Answer
    E. 12
    Explanation
    The given array A has 3 rows and 4 columns. To find the total number of elements in the array, we multiply the number of rows by the number of columns. In this case, 3 x 4 = 12. Therefore, the answer is 12.

    Rate this question:

  • 7. 

    Salah satu bentuk struktur data, berisi kumpulan data (node) yang tersusun secara sekuensial, saling sambung-menyambung, dinamis dan terbatas disebut...?

    • A.

      Array

    • B.

      Sorting

    • C.

      Struktur Data

    • D.

      Linked List

    • E.

      Semua Salah

    Correct Answer
    D. Linked List
    Explanation
    Linked List adalah salah satu bentuk struktur data yang terdiri dari kumpulan data (node) yang tersusun secara sekuensial dan saling sambung-menyambung. Struktur data ini memiliki sifat dinamis, artinya ukuran dan jumlah elemen dalam Linked List dapat berubah seiring dengan penambahan atau penghapusan elemen. Selain itu, Linked List juga memiliki batasan yang terbatas, yaitu tergantung pada jumlah memori yang tersedia. Oleh karena itu, jawaban yang benar adalah Linked List.

    Rate this question:

  • 8. 

    Menambah satu (increment) nilai TOP of STACK setiap ada penambahan elemen stack selama stack masih belum penuh, merupakan langkah awal pada operasi STACK yaitu …..        

    • A.

      PUSH

    • B.

      POP

    • C.

      CLEAR

    • D.

      IS FULL

    • E.

      Semua Benar

    Correct Answer
    A. PUSH
    Explanation
    The given correct answer for this question is PUSH because when a new element is added to the stack, the TOP of the stack is incremented. This is the initial step in the stack operation, where the TOP keeps track of the most recently added element in the stack.

    Rate this question:

  • 9. 

    Yang tidak termasuk dalam operasi antrian, adalah ...

    • A.

      Clear

    • B.

      Enqueue

    • C.

      Push

    • D.

      Dequeue

    • E.

      IsFull

    Correct Answer
    C. Push
    Explanation
    The operation "Push" is not included in the queue operations. In a queue, elements are added at one end and removed from the other end, following the FIFO (First-In-First-Out) principle. However, the "Push" operation is typically used in stack data structures, where elements are added and removed from the same end, following the LIFO (Last-In-First-Out) principle. Therefore, "Push" is not a valid operation in the context of a queue.

    Rate this question:

  • 10. 

    Prinsip kerja dari queue adalah:

    • A.

      First In First Out

    • B.

      Last In First Out

    • C.

      Last In Last Out

    • D.

      First In Last Out

    • E.

      A dan C Benar

    Correct Answer
    E. A dan C Benar
    Explanation
    The correct answer is "A dan C Benar". The principle of operation of a queue is "First In First Out" (FIFO), which means that the element that is inserted first will be the first one to be removed. Additionally, the principle of "Last In Last Out" (LILO) is also applicable in certain cases, where the last element inserted will be the last one to be removed. Therefore, both options A and C are correct.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 22, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Oct 30, 2017
    Quiz Created by
    Maulana.a.rofik
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.