Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

WGU C949 DATA STRUCTURES AND ALGORITHMS EXAM 2024 ACTUAL EXAM 2 VERSIONS (VERSION A AND B) COMPLETE 500 QUESTIONS WITH DETAILED VERIFIED ANSWERS /ALREADY GRADED A+

Beoordeling
-
Verkocht
-
Pagina's
16
Cijfer
A+
Geüpload op
28-10-2024
Geschreven in
2024/2025

WGU C949 DATA STRUCTURES AND ALGORITHMS EXAM 2024 ACTUAL EXAM 2 VERSIONS (VERSION A AND B) COMPLETE 500 QUESTIONS WITH DETAILED VERIFIED ANSWERS /ALREADY GRADED A+

Instelling
Vak

Voorbeeld van de inhoud

WGU C949 DATA STRUCTURES AND ALGORITHMS
EXAM 2024 ACTUAL EXAM 2 VERSIONS (VERSION A
AND B) COMPLETE 500 QUESTIONS WITH DETAILED
VERIFIED ANSWERS /ALREADY GRADED A+
What is a data structure? - ANSWER: An arrangement of data inside a computers
memory or a disk.

Name 5 data types - ANSWER: BLASH: binary trees, linked lists, arrays, stacks, hash
tables

What do algorithms do? - ANSWER: Manipulate the data in data structures in various
ways such as sorting.

What is real-world storage data? - ANSWER: Data structure storage that describes
physical entities external to the computer. Accessed by a programs user.

What are programmer's tools? - ANSWER: Data structure storage that is accessed by
the program itself. Ex - stacks and queues.

What is real-world modeling? - ANSWER: Data structures that directly model real-
world situations...think graphs.

What is an object? - ANSWER: A software bundle of variables and related methods.

What is a class? - ANSWER: A blueprint that defines an objects variables and
methods.

The keyword "new" is used to do what? - ANSWER: Create a new object in Java.

An object is often referred to as: - ANSWER: An instance of a class.

object.method(); is and example of - ANSWER: Invoking a method for a specific
object.

Execution of the program starts where? - ANSWER: main()

To create an object in Java you must do two things: - ANSWER: 1. Use the keyword
"new"
2. Store a reference to the object in a variable that is the same type as the class.
So:
Object = new ClassReference();

How do other parts of your program interact with objects? - ANSWER: By interacting
with an objects methods

,What is a constructor? - ANSWER: A special method that is called automatically
whenever a new object is created. It prepares the object for use.

How is the constructor named? - ANSWER: It has the same name as the class it
resides in.

A field of method that is private can only be accessed by - ANSWER: Methods that
are apart of the same class.

Any outside entity that wants to access data in a class can do so by: - ANSWER: Using
a method of that class.

What must be added to all input methods for them to work? - ANSWER: throws
IOException

What does the charAt() method do? - ANSWER: Returns a character at the specific
position in the string object.

What does the parse.Int() method do? - ANSWER: Converts the string type into an
integer.

What is an array? - ANSWER: A container object that holds multiple values of the
same type.

What are the two types of data in java? - ANSWER: Primitive types (int, char,
boolean,long, double etc) and objects.

Why must you use the key word "new" when creating an array? - ANSWER: Arrays in
java are treated as objects.

What does the [] operator tell the compiler? - ANSWER: That we are naming an array
object.

What are the steps to creating an array? - ANSWER: MRCNL: Main(), Reference,
Create an Array, Number of Items, Loop.

long [] arr is; an example of: - ANSWER: Referencing an array.

arr = new long [100];is an example of: - ANSWER: Creating an array.

int nElems = 0; is an example of: - ANSWER: The number of items in the array .

int x; is an example of: - ANSWER: A loop creator.

What does the searchKey variable do? - ANSWER: IT holds the value we are looking
for.

, What are the three steps to delete an item in an array? - ANSWER: 1.Search for the
item
2. Find the item
3. Move the items with a higher index value down to fill the "hole"

First two steps of object-oriented approach? - ANSWER: 1. Separate the data
structure storage from the rest of the program(now called the user).
2. Improve the communication between the storage structure and the user.

Breaking up the program into classes does what? - ANSWER: Makes it easier to
design, understand, modify and maintain the program.

What are the steps to setting up an array class with a constructor? - ANSWER:
RCCSGE: Reference the array, Constructor, Create an Array, Set Value, Get Value,
End Class.

private long[] a; is an example of: - ANSWER: Referencing an array.

public LowArray(int size) is an example of what? Note that LowArray is also the name
of the class. - ANSWER: Creating a Constructor.

{a = new long [size]; } is an example of what? - ANSWER: Creating an array

public void setElement(int index, long value)
{a[index] = value;

is an example of what? - ANSWER: Set value

public long getElem(int index)
{return a[index];}

is an example of what? - ANSWER: Get value

What is public static void main(String args[])? - ANSWER: This is a main() method
with three modifiers

What is meant by public in
public static void main(String args[]) ? - ANSWER: Public indicates that the main()
method can be called by any object.

What is meant by static in
public static void main(String args[]) ? - ANSWER: Static indicates that the main()
method is a class method.

What is meant by void in

Gekoppeld boek

Geschreven voor

Vak

Documentinformatie

Geüpload op
28 oktober 2024
Aantal pagina's
16
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

€16,37
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
charitywairimuuu Teachme2-tutor
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
18
Lid sinds
1 jaar
Aantal volgers
2
Documenten
1295
Laatst verkocht
6 maanden geleden
EXCELLENT HOMEWORK HELP AND TUTORING ,

EXCELLENT HOMEWORK HELP AND TUTORING ,ALL KIND OF QUIZ AND EXAMS WITH GUARANTEE OF A EXCELLENT HOMEWORK HELP AND TUTORING ,ALL KIND OF QUIZ AND EXAMS WITH GUARANTEE OF A Am an expert on major courses especially; psychology,Nursing, Human resource Management and Mathemtics Assisting students with quality work is my first priority. I ensure scholarly standards in my documents and that\'s why i\'m one of the BEST GOLD RATED TUTORS in STUVIA. I assure a GOOD GRADE if you will use my work.

Lees meer Lees minder
4,6

545 beoordelingen

5
409
4
81
3
30
2
18
1
7

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen