EE 322C Data Structures
Spring 2009 Dr.Ramesh Yerraballi Quiz 3 Total points: 80 Answers
1. a) 'this' keyword cannot be used inside a static method. static members are common to all the instances of a class. public static void incrI() cfw_i+; b) You canno
EE 322C Data Structures
Spring 2009 Dr.Ramesh Yerraballi Quiz 2 Total points: 60 Answers 1. X: 0 Y: 0 X: 0 Y: 0 X: 100 Y: 100 X: 0 Y: 0 Java only supports pass by value. For objects [not native types], a reference to the object is passed as an argument to
EE 322C Data Structures
Spring 2009 Dr. Ramesh Yerraballi Quiz 2
Due: Wednesday 2/18 in class Name(First,Middle,Last): Instructions:
Total points: 60
Type in the answers to the questions in the space provided and turn in a hardcopy in class. cfw_Feel fr
1/7
EE 322C Fall 2008 Second Mid-Term Solution
Dr. Ramesh Yerraballi
MW Class
Full Name: Solver King
Duration: 75 minutes
Note: To earn partial credit you have to provide your work and not just give the final answer 1. [25 points] Answer the following i.
1/6
EE 322C Fall 2008 Second Mid-Term
Dr. Ramesh Yerraballi
MW Class
Full Name:
Duration: 75 minutes
Note: To earn partial credit you have to provide your work and not just give the final answer 1. [25 points] Answer the following i. [10 points] For the t
1/5
EE 322C Spring 2009 First Mid-Term
Dr. Ramesh Yerraballi You may use the back of the sheets from scratch work. Full Name: 1. [20 points] Answer the following i. [8 points] Given the following method: 1: public static int what()
2: cfw_ 3: int 4: for 5
1/7
EE 322C Fall 2008 First Mid-Term
Dr. Ramesh Yerraballi Full Name: Quiz Duration: 75 minutes
1. [20 points] Answer the following i. [4 points] In the method below, which statement about the possible output is correct?
public static void what( ) cfw_ in
1/7
EE 322C Fall 2008 First Mid-Term
Dr. Ramesh Yerraballi Full Name: Quiz Duration: 75 minutes
1. [20 points] Answer the following i. [4 points] In the method below, which statement about the possible output is correct?
public static void what( ) cfw_ in
Mathematical Induction
We use Mathematical Induction to prove the truth of a statement. It can be used to prove simple mathematical identities like N (N +1) N i=1 i = 2 to statements like the A polygon has many sides as it has angles. In general the state
1/7
EE 322C Fall 2008 Final Exam
Dr. Ramesh Yerraballi
TTh
Full Name:
Duration: 3 hrs
1. [15 points] Show the Huffman tree that results from the following frequencies (table below) of characters; Give the Huffman codes that each character will be assigned
Collection Framework
(Extracted from Sun Java Tutorial at: http:/java.sun.com/docs/books/tutorial/collections/interfaces/index.html)
The core collection interfaces encapsulate different types of collections, which are shown in the figure below. These inte
EE 322C Data Structures
Chapter 5: Algorithm Analysis
Ramesh Yerraballi
5- 1
1
c Re
ap
To extend or to implement
Inheritance is used to extend a base to create a new type [classification] Interfaces are used to introduce capabilities that are non-existen
EE 322C Data Structures
Spring 2009 Dr. Ramesh Yerraballi
Quiz 4
Points : 100 Due Date: ?
NAME (First, Middle, Last):_
Instructions: Please be specific in your answers. If any of the questions is ambiguous, make reasonable assumptions and document them al
EE 322C Data Structures
Spring 2009 Dr. Ramesh Yerraballi
Quiz 4
Points : 100 Due Date: Monday 4/6 In class
NAME (First, Middle, Last):_
Instructions: Please be specific in your answers. If any of the questions is ambiguous, make reasonable assumptions an
Assignment 1 unfay ithway igpay atinlay EE422C - The University of Texas at Austin Fall 2010 Assigned: Tuesday, September 7, 2010 Due: Design: Tuesday, September 14, at the beginning of class Code: Sunday, September 19, 11:59pm Points: 20 points total (10
9/23/2010
Todays Announcements EE422C Data Structures
Sarfraz Khurshid
Today Exceptions Random numbers Polymorphism Abstract classes and interfaces Exam 1 in class on Sep 30 next week!
Lecture 9 Sep 23, 2010
Goals
Exception Handling
An exception is a run
Todays Announcements EE422C Data Structures
Sarfraz Khurshid
Exam 1 on Sep 30, 12:30pm, in class Today I/O JUnit
Lecture 8 Sep 21, 2010
Importing Library Classes Into Your Program
Related classes are packaged together in the library java.lang is automatic
Lecture 3 Announcements EE422C Data Structures
Topics so far course intro software engineering and where data structures fit Java and Eclipse intro Today more on basics of Java and Eclipse Next time flow-charts, references, and strings Assignment 1 goes o
Lecture 2 Announcements EE422C Data Structures
Topics software engineering and where data structures fit introduction to Java and Eclipse Next time problem solving junit and basic concepts in testing
Sarfraz Khurshid Kh
Lecture 2 Jan 21, 2010
2
traditiona
lecture 1 announcements ee422c software design and implementation II
(formerly: ee322c data structures)
sarfraz khurshid read syllabus before next class topics for today course/syllabus overview some fun stuff :)
august 26, 2010
(in collaboration with her
Anirudh Pande EE322C- Dr. Y 2/4/09 Quiz #1 Snippet # 1 Guess: 1 # 2 Reality: Error: Possible loss of precision. To fix error, do type conversion
int i1 = (int)5.0 * 2 / 4;
Now, the result is 1 # 2. Reasoning: This code snippet returns the correct predicte
EE 322C Data Structures Spring 2009
Quiz 5 Instructor: Ramesh Yerraballi Grader: Vinoth Chandar Due : Wednesday 4/29 in class Total : 100 points Student: Anirudh Pande Date: 4/29/09
1) Collections.sort(List<T>) method takes any list and sorts it according