100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

WGU C949 Data Structures and Algorithms Problem Solving Exam Questions and With Distinction level Marking scheme updated 2024/2025

Rating
-
Sold
-
Pages
30
Grade
A+
Uploaded on
12-11-2024
Written in
2024/2025

WGU C949 Data Structures and Algorithms Problem Solving Exam Questions and With Distinction level Marking scheme updated 2024/2025 What must be added to all input methods for them to work? - correct answer throws IO Exception What does the charAt () method do? - correct answer Returns a character at the specific position in the string object. What does the parse.Int() method do? - correct answer Converts the string type into an integer. What is an array? - correct answer A container object that holds multiple values of the same type. What are the two types of data in java? - correct answer Primitive types (int, char, boolean,long, double etc) and objects. Why must you use the key word "new" when creating an array? - correct answer Arrays in java are treated as objects. What does the [] operator tell the compiler? - correct answer That we are naming an array object. What are the steps to creating an array? - correct answer MRCNL: Main(), Reference, Create an Array, Number of Items, Loop. long [] arr is; an example of: - correct answer Referencing an array. arr = new long [100];is an example of: - correct answer Creating an array. int nElems = 0; is an example of: - correct answer The number of items in the array . int x; is an example of: - correct answer A loop creator. What does the searchKey variable do? - correct answer IT holds the value we are looking for. What are the three steps to delete an item in an array? - correct answer 1.Search for the item 2. Find the item 3. Move the items with a higher index value down to fill the "hole"

Show more Read less
Institution
WGU C949 Data Structure And Algorithm
Course
WGU C949 Data Structure and Algorithm










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
WGU C949 Data Structure and Algorithm
Course
WGU C949 Data Structure and Algorithm

Document information

Uploaded on
November 12, 2024
Number of pages
30
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Content preview

WGU C949 Data Structures and Algorithms
Problem Solving Exam Questions and With
Distinction level Marking scheme updated
2024/2025

What must be added to all input methods for them to work? -
correct answer throws IO Exception


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


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


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


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


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


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

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


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


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


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


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


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


What are the three steps to delete an item in an array? -
correct 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? - correct 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? - correct
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? - correct answer RCCSGE: Reference the array,
Constructor, Create an Array, Set Value, Get Value, End Class.


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


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


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


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


is an example of what? - correct answer Set value


public long getElem(int index)

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
KieranKent55 NONE
View profile
Follow You need to be logged in order to follow users or courses
Sold
41
Member since
2 year
Number of followers
18
Documents
6142
Last sold
4 weeks ago

3.6

9 reviews

5
4
4
1
3
2
2
0
1
2

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions