Garantie de satisfaction à 100% Disponible immédiatement après paiement En ligne et en PDF Tu n'es attaché à rien 4,6 TrustPilot
logo-home
Examen

WGU C949 Computational Data Structures and Algorithms I Knowledge test Exam Toolkit Questions and Verified Marking Scheme 2024/2025

Note
-
Vendu
-
Pages
15
Grade
A+
Publié le
12-11-2024
Écrit en
2024/2025

WGU C949 Computational Data Structures and Algorithms I Knowledge test Exam Toolkit Questions and Verified Marking Scheme 2024/2025 What are LinkedList class' two data members? - correct answer Head and tail In a circular doubly-linked list with at least 2 nodes, where does the head node's previous pointer point to? - correct answer Tail T or F: In a circular linked list with 1 node, the tail node's next pointer points to the tail. - correct answer True T or F: The Stack class has both a LinkedList and Node data member. - correct answer False. Only has a LinkedList data member. The Stack class' push() method uses the LinkedList ____ method to place elements on a stack. - correct answer prepend() T or F: The Stack class's push() method takes a Node as a parameter. - correct answer False. The push() method takes an int, not a Node, as a parameter. The method creates a new node, whose data is the integer parameter, and inserts the node into the linked list. Sorting algorithms that can be adapted for linked lists? - correct answer Insertion sort, merge sort Sorting algorithms that dont work well for linked lists? - correct answer Shell sort, quicksort, heap sort What aspect of linked lists makes adapting array-based sorting algorithms to linked lists difficult? - correct answer Elements in a linked list cannot be accessed by index. Which sorting algorithm uses a gap value to jump between elements, and is difficult to adapt to linked lists for this reason? - correct answer Shell sort

Montrer plus Lire moins
Établissement
WGU C949 Data Structure And Algorithm
Cours
WGU C949 Data Structure and Algorithm

Aperçu du contenu

WGU C949 Computational Data Structures
and Algorithms I Knowledge test Exam
Toolkit Questions and Verified Marking
Scheme 2024/2025

What are LinkedList class' two data members? - correct
answer Head and tail


In a circular doubly-linked list with at least 2 nodes, where does
the head node's previous pointer point to? - correct answer
Tail


T or F: In a circular linked list with 1 node, the tail node's next
pointer points to the tail. - correct answer True


T or F: The Stack class has both a LinkedList and Node data
member. - correct answer False. Only has a LinkedList data
member.


The Stack class' push() method uses the LinkedList ____ method
to place elements on a stack. - correct answer prepend()


T or F: The Stack class's push() method takes a Node as a
parameter. - correct answer False.
The push() method takes an int, not a Node, as a parameter. The
method creates a new node, whose data is the integer parameter,
and inserts the node into the linked list.

, Sorting algorithms that can be adapted for linked lists? -
correct answer Insertion sort, merge sort


Sorting algorithms that dont work well for linked lists? -
correct answer Shell sort, quicksort, heap sort


What aspect of linked lists makes adapting array-based sorting
algorithms to linked lists difficult? - correct answer Elements
in a linked list cannot be accessed by index.


Which sorting algorithm uses a gap value to jump between
elements, and is difficult to adapt to linked lists for this reason? -
correct answer Shell sort


Why are sorting algorithms for arrays generally more difficult to
adapt to singly-linked lists than to doubly-linked lists? - correct
answer Singly-linked lists do not support backward traversal.


The current node to be sorted is placed _____ the location
returned by find_insertion_position(). - correct answer after


The insertion_sort_singly_linked() method would also sort a
doubly-linked list. - correct answer False.
doubly-linked does not have the remove_after() method.


Singly-linked list insertion sort variant:
The current node to be sorted is placed _____ the location
returned by find_insertion_position(). - correct answer after

École, étude et sujet

Établissement
WGU C949 Data Structure and Algorithm
Cours
WGU C949 Data Structure and Algorithm

Infos sur le Document

Publié le
12 novembre 2024
Nombre de pages
15
Écrit en
2024/2025
Type
Examen
Contient
Questions et réponses

Faites connaissance avec le vendeur

Seller avatar
Les scores de réputation sont basés sur le nombre de documents qu'un vendeur a vendus contre paiement ainsi que sur les avis qu'il a reçu pour ces documents. Il y a trois niveaux: Bronze, Argent et Or. Plus la réputation est bonne, plus vous pouvez faire confiance sur la qualité du travail des vendeurs.
KieranKent55 NONE
Voir profil
S'abonner Vous devez être connecté afin de suivre les étudiants ou les cours
Vendu
43
Membre depuis
2 année
Nombre de followers
18
Documents
6382
Dernière vente
1 mois de cela

3.6

9 revues

5
4
4
1
3
2
2
0
1
2

Documents populaires

Récemment consulté par vous

Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Foire aux questions