DOC PREVIEW
WVU CS 110 - Exam 3

This preview shows page 1 out of 2 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Review Sheet, CS 110Exam 3I. Terms – for DEFINITIONS --- no matchingII. TopicReview Sheet, CS 110Exam 3I. Terms – for DEFINITIONS --- no matchingarray one dimensional array two dimensional arrayindex upper bounds lower boundsuninitialized array row processing column processingexception try_catch recursionbase case general case direct recursionindirect recursion tail recursion activation recordassertionII. Topic- Arrayso You will need to know how to declare, initialize, and use arrayso You will need to know the various forms that can be used to declare arrays.o You will need to understand that arrays are all instances of class “Arrays”, andthe various operations provided by class “Arrays”o You will need to be able to write code, containing loops, that manipulate arraycontents.o You will need to understand what is meant by the upper and lower bounds of an array.o You will need to know how to initialize all of the values in an array to the same valueo You will need to understand how to READ and WRITE both standard for loops and collection based for loops that manipulate the contents of an arrayo You will need to understand how to declare two dimensional arrays.o You will need to understand how to specify the index of an element in both a one dimensional array, and a two dimensional arrayo You will need to be able to implement the bubble sort algorithm, and diagnoseerrors in code that implements a bubble sort.o You will need to be able to implement the insertion sort algorithm, and diagnose errors in code that implements a insertion sort.o You will need to be able to implement the selection sort algorithm, and diagnose errors in code that implements a selection sort.o IN TEST3 you will write or trace through code that manipulates multi-dimensional arrays. You should understand project 5.. on class matrix and perhaps implement another method for you r class. You should be able two write methods that manipulate specific columns and rows of a 2-D array.- FILE I/O & Exceptionso You will need to be able to write a “try/catch” block to read text data from a simple text file.o You should be able to explain the purpose of the try/catch block.o you should be able to explain the purpose of the “throws” specifier.- I/O in general: IN THIS EXAM, IF YOUR CODE RECEIVES KEYBOARD INPUT, YOU MUST USE THE CORRECT METHOD NAMES.. REVIEW CLASS SCANNER AND READITEM.- RECURSION –o You should be able to define and explain recursion.o Given a recursive method you should be able to trace the execution of the method.o Give a problem you should be able to implement a recursive methodo Give a recursive method you should be able to identify the range of valid values that the method can receiveo You should be able to compare recursion to iteration.- Searching – o Be able to explain and write a bubble sort, for arrays with a variety of different types of elements.o You will need to be able to diagnose errors in code that implements a bubble sort.o Be able to explain and write the linear search algorithmo Be able to explain and write a binary search algorithm -using loops or recursiono Explain why the binary search is faster than the linear search.o For a give array, explain the maximum number of probes for both algorithms- Assertions- o You should be able to explain what assertions are and when to use themo Given a simple method be able to write


View Full Document

WVU CS 110 - Exam 3

Download Exam 3
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Exam 3 and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Exam 3 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?