WGU C949 - Data Structures And Algorithms exam with 100% correct answers 2024
WGU C949 - Data Structures And Algorithms exam with 100% correct answers 2024 What is a data structure? - answerAn arrangement of data inside a computers memory or a disk. Name 5 data types - answerBLASH: binary trees, linked lists, arrays, stacks, hash tables What do algorithms do? - answerManipulate the data in data structures in various ways such as sorting. What is real-world storage data? - answerData structure storage that describes physical entities external to the computer. Accessed by a programs user. What are programmer's tools? - answerData structure storage that is accessed by the program itself. Ex - stacks and queues. What is real-world modeling? - answerData structures that directly model real-world situations...think graphs. What is an object? - answerA software bundle of variables and related methods. What is a class? - answerA blueprint that defines an objects variables and methods. The keyword "new" is used to do what? - answerCreate a new object in Java. An object is often referred to as: - answerAn instance of a class. d(); is and example of - answerInvoking a method for a specific object. Execution of the program starts where? - answermain() To create an object in Java you must do two things: - answer1. 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? - answerBy interacting with an objects methods What is a constructor? - answerA special method that is called automatically whenever a new object is created. It prepares the object for use. How is the constructor named? - answerIt has the same name as the class it resides in. A field of method that is private can only be accessed by - answerMethods that are apart of the same class. Any outside entity that wants to access data in a class can do so by: - answerUsing a method of that class. What must be added to all input methods for them to work? - answerthrows IOException What does the charAt() method do? - answerReturns a character at the specific position in the string object. What does the parse.Int() method do? - answerConverts the string type into an integer. What is an array? - answerA container object that holds multiple values of the same type. What are the two types of data in java? - answerPrimitive types (int, char, boolean,long, double etc) and objects. Why must you use the key word "new" when creating an array? - answerArrays in java are treated as objects. What does the [] operator tell the compiler? - answerThat we are naming an array object. What are the steps to creating an array? - answerMRCNL: Main(), Reference, Create an Array, Number of Items, Loop. long [] arr is; an example of: - answerReferencing an array. arr = new long [100];is an example of: - answerCreating an array. int nElems = 0; is an example of: - answerThe number of items in the array . int x; is an example of: - answerA loop creator. What does the searchKey variable do? - answerIT holds the value we are looki
Written for
- Institution
- WGU C949
- Course
- WGU C949
Document information
- Uploaded on
- February 8, 2024
- Number of pages
- 15
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
wgu c949 data structures and algorithms exam wit
Also available in package deal