2 Pages

PreLab04

Course: CSC 127a, Spring 2008
School: Arizona
Rating:
 
 
 
 
 

Word Count: 425

Document Preview

Section Name: Leader: Edward Leon Knapp Pre-Lab 04 CSC 127A Spring 2008 (10 points) 1. What is null? When do you set objects equal to null? Null is the term for when an object reference is first declared, but hasn't been assigned to an object. When an object is set to null, an error appears named "exception." 2. Find a static method in the API and describe why it is static and what it is used...

Register Now

Unformatted Document Excerpt

Coursehero >> Arizona >> Arizona >> CSC 127a

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
Section Name: Leader: Edward Leon Knapp Pre-Lab 04 CSC 127A Spring 2008 (10 points) 1. What is null? When do you set objects equal to null? Null is the term for when an object reference is first declared, but hasn't been assigned to an object. When an object is set to null, an error appears named "exception." 2. Find a static method in the API and describe why it is static and what it is used for. Static data belongs to a class, rather than a particular object. We use the static method to define constants for commonly used values. 3. Describe the differences between double and Double. Double converts a String to a Double object and returns that object whereas a double converts a String to a double and returns the value. 4. What is the difference between sequential execution and selection? Selection allows the programmer to test for certain conditions and to select instructions to execute based on results of the test. Sequential execution makes the program use the information that is given in order. 5. Which data types can be compared using the equality operators? Which ones cannot? Be specific. Equality operators only work if the two things being used to compare two of the same objects. Therefore, if two objects or object classes are equal, means it the values are the same, and the output will be true. 6. What methods can one use to compare two Strings? Some of the methods to compare Strings are boolean and int. Both compare the values of Strings but they compare different aspects of the strings. Name: Section Leader: Edward Leon Knapp 7. When does an if statement terminate? An "if" statement terminates if it does not have to right true or false information to base an answer off of. The criteria need to be determined for the statement to produce an answer. 8. Why does the else not have a condition like the if does? The main difference between an if and an else statement is that the else statement does not require a false block. The else statement skips over the false statement. 9. Using the if/else structure, write the pseudocode for determining if a number is even or odd If ( divisor == 2) System.out.println("Sorry; unable to divide by 2"); Else System.out.println("if dividend cannot be divided by 2, it is not even") 10. Explain in detail why it makes no sense to put a semi-colon at the end of an if statement header. When a semi-colon is used at the end of a if statement, it makes it an incorrect statement which causes the program to not work.
Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Texas A&M - POLS - 206
TOPIC 3:FEDERALISMINTRODUCTIONA. Federalism is another way to divide power 1. 10th amendment: states coequal & independent. a. Powers not specifically granted to the federal government, or prohibited to all governments, is left to the states and t
Texas A&M - POLS - 206
TOPIC 1: PART 1THE PROMISE OF DEMOCRACYI. THE GENERAL NATURE OF DEMOCRACYA. Politics and Government 1. What Is Politics? a. Harold Lasswell (1938): "who gets what, when and how" b. David Easton (1953): "authoritative allocation of values" c. Both
Texas A&M - POLS - 206
TOPIC 2: PART 1THE AMERICAN CONSTITUTIONINTRODUCTIONA. The Constitution is a supremely political document B. Need to know what's in the Constitution II. DEFINITIONS A. What Is a Constitution in General? 1. Provides the basic rules & guidelines for
Texas A&M - POLS - 206
TOPIC 2: PART 2THE AMERICAN CONSTITUTIONIV. CHANGING THE CONSTITUTIONA. Formal Amendments-2-Step Process 1. Step 1- Propose Amendments a. 2/3rds vote in both houses of Congress. If some member of the House or Senate thinks the Constitution needs
Texas A&M - POLS - 206
TOPIC 1: PART 2THE PROMISE OF DEMOCRACYII. CONFLICTING VIEWS ON AMERICAN DEMOCRACYA. Populism 1. The populist model is probably the simplest. Direct democracy is a pure form of direct democracy. a. For example, the franchise (who has the right to
Texas A&M - POLS - 206
TOPIC 6: PART 2 POLITICAL PARTIESIII. STRENGTH OF POLITICAL PARTIESA. Party in the Electorate B. Party in Government C. Party OrganizationIV. PARTY COMPETITIONA. General Types of Party Systems 1. One party system a. Example: Mexico b. County lev
Texas A&M - POLS - 206
TOPIC 5 INTEREST GROUPS I. THE GENERAL NATURE OF INTEREST GROUPSA. Definition: A formal organization of persons who 1. Share common attitudes (or interest) on some matter and 2. Make demands on others in society to promote or protect that matter 3.
Texas A&M - POLS - 206
TOPIC 4:Civil Rights and LibertiesINTRODUCTIONA. Fundamental Questions 1. Liberty vs. social order; individual vs. govt. 2. Delicate balance 3. Ultimate test of the performance of democracy B. Political ConflictI.GENERAL NATURE OF CIVIL RIGHTS
Texas A&M - POLS - 206
TOPIC 6: PART 1 POLITICAL PARTIESI. THE GENERAL NATURE OF POLITICAL PARTIESA. Definition: An organization that nominates and runs candidates for office under its own label B. Differences between Political Parties and Interest Group 1. Method of inf
Texas A&M - POLS - 206
TOPIC 7PUBLIC OPINION AND PARTICIPATIONINTRODUCTIONA. What Do People Want Government to Do? 1. Popular sovereignty requires agreement between the wishes of the governed & actions of govt. 2. How do we find out what the people want? B. One Answer:
UCSD - BENG - 130, 103B,
BE103B Spring 2007Roadmap to Completing an External Convection ProblemIdentify whether problem is a heat or mass transfer one, or both.L. PengCylinderCrossflowUse table to obtain C and m based on Re. HeatCalculate: Examine geometry of ob
UCSD - BENG - 130, 103B,
Roadmap to Completing a Transient Heat Transfer ProblemExamine geometry of objectHas all finite surfacesNot enough info. to calculate Bi? Assume Bi < 0.1 and then verify afterwards.Bi < 0.1Find Bi =If Bi does not < 0.1, you can not use the L
Washington - EE - EE 341
Exam 2 ReviewEE 341 Discrete Time Linear SystemsFall 2007Howard Jay Chizeck University of Washington Seattle, WashingtonX(T) X(2T) X(3T) X(0)0T2TSignal xs(t) consists of a train of continuous time impulses-take off the arrow heads to ge
Washington - EE - EE 341
SamplingEE 341 Discrete Time Linear SystemsFall 2007Howard Jay Chizeck University of Washington Seattle, WashingtonRef: Text 5.4Linear Time Invariant Systems Sinusoid in yields a sinusoid out, at the same frequency, but with possibly differe
Washington - EE - EE 341
Discrete Time Systems and Digital Signal ProcessingEE 341 Discrete Time Linear SystemsFall 2007Howard Jay Chizeck University of Washington Seattle, WashingtonDigital Signal Processing (DSP) DSP is the representation of a signal by a sequence o
Washington - EE - EE 341
More About Regions of ConvergenceEE 341 Discrete Time Linear SystemsFall 2007Howard Jay Chizeck University of Washington Seattle, WashingtonFinite Length SignalsROCh[n]= [n] h[n] =0 for n< 0 Whole z plane Whole z plane except z=0 Whole z plan
Washington - EE - EE 341
Inverse Z Transforms and Solving Difference EquationsEE 341 Discrete Time Linear SystemsFall 2007Howard Jay Chizeck University of Washington Seattle, WashingtonRef: Text 11.6 ; In-class Ch 11 notes pp. 17-22Using Z Transforms To Solve Differe
Dickinson - POLYSCI - 255
Dickinson - POLYSCI - 255
Dickinson - POLYSCI - 255
Dickinson - POLYSCI - 255
Dickinson - POLYSCI - 255
Dickinson - POLYSCI - 255
Dickinson - POLYSCI - 255
NEIL J. DIAMANT POLITICS & SOCIETYMaking Love "Legible" in China: Politics and Society during the Enforcement of Civil Marriage Registration, 1950-66NEIL J. DIAMANTThis article looks at marriage registration as a window into state building and
Dickinson - POLYSCI - 255
Dickinson - POLYSCI - 255
Dickinson - POLYSCI - 255
Dickinson - POLYSCI - 255
Dickinson - POLYSCI - 255
Dickinson - POLYSCI - 255
Dickinson - POLYSCI - 255
Dickinson - POLYSCI - 255
Dickinson - POLYSCI - 255
Dickinson - POLYSCI - 255
Dickinson - POLYSCI - 255
Dickinson - POLYSCI - 255
Dickinson - POLYSCI - 255
Dickinson - POLYSCI - 255
Dickinson - POLYSCI - 255
Dickinson - POLYSCI - 255
Dickinson - POLYSCI - 255
Wisconsin - ILS - 206
Wisconsin - ILS - 206
GWU - CHEM - 004
Chem 004 - Spring 2006AllergiesAntigens and allergens Most particles, dust, pollen, etc., are filtered by the hair and mucus in the nose and airways but, when present in a large number, some may pass into the lungs and even enter the bloodstream.
GWU - CHEM - 004
Chem 004 - Spring 2006Biochemistry: Chemistry of living things and life processes.Cell: structural unit of all living organisms. Cells are specific to the function of the particular tissue. Parts of the cell: Chemical composition, structure and fu
GWU - CHEM - 004
Chem 004 - Spring 2006Organic ChemistryChemistry of _ compoundsOf the more than 20 million known chemical compounds, over 95% are compounds of carbonWhy do we need to study organic chemistry?Organic Chemistry Plastics and Polymers Plastics
LSU - REL - 2000
REL 2000 Exam 3 Review Questions 1. How do the great synagogues of Judaism reflect the situation of Jews in different times and places? -Their size mostly has to do with the prosperity of the Jews and how much they get along with the people of the co
Clarkson - MA - 232
Clarkson - MA - 232
Clarkson - MA - 232
Clarkson - MA - 232
Rutgers - LING - 201
Rutgers - GEO - 101
Title Page PhotoPlate TectonicsVulcanismDiastrophism1 From Rigid Earth to Plate Tectonics Wegener's Continental Drift Fig. 14-1http:/geoweb.princeton.edu/courses/WebWhacker_2.0/WebWhacker_Database/WW171.html2Wegener's Theory based on
Rutgers - GEO - 101
Title Page PhotoComposition Study of Landforms Critical concepts Scale and Pattern1 The Composition of Earth (REVIEW) Minerals Common characteristics Solid Found in nature Inorganic Specific chemical composition Atoms arranged in a regul
Rutgers - GEO - 101
Title Page PhotoMovement of Ocean WaterPermanent IceSurface WatersUnderground Water1Movement of Ocean Waters2 types: 1. Surface Currents Mostly horizontal Primarily wind-driven Well-mixed Coriolis effect Affected by land masses Sit
Rutgers - GEO - 101
Modified Koeppen SystemThe basis is temperatures and precipitation amounts and patterns.Major Climate type: TropicalAfHumidity/precip Wet1 Severe Midlatitude Climates (Group D) Distribution of D Climates Northern Hemisphere only Within
Cal Poly - ENGR - 111
ReadingsChapter 6Stemplots Shows shape of distribution Indicates potential outliers Useful for displaying small datasets with positive values Displays original data Easy to construct by hand Displaying requires judgmentConstructing a St
Cal Poly - ENGR - 111
HomeworkDue: Wednesday, February 27 6.2, 6.4, 6.12, 6.14, 6.15, 6.18, 6.20Normal Distribution Symmetric Single peak Bell-shapedNormal Distribution1 f (x) = e " 2#% x$ ( 2 1 $ ' * 2& " )!Standard Normal DistributionMean = = 0 Sta
UCLA - CS - M51A
SPECIFICATION OF COMBINATIONAL SYSTEMSHigh-level and binary-level speci cations.1Representation of data elements (signal values) by binary variables (signals) and standard codes for positive integers and characters. Representation by switching f
UCLA - CS - M51A
INTRODUCTION TO DIGITAL SYSTEMS Outline Description and design of digital systems Formal basis: switching algebra Implementation aspects: modules (ICs) and networks of modules Implementation of algorithms in \hardware" Course emphasis: concepts and m