Preview

Computer Science - Software Construction Midterm

Good Essays
Open Document
Open Document
1717 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Computer Science - Software Construction Midterm
The University of British Columbia
CPSC 210 Midterm Examination February 8, 2012 - SOLUTIONS Time: 90 minutes Name
(PRINT) (Last) (First)

____________________

Student No____________________________Signature

_____________________

This examination has 12 pages. Check that you have a complete paper. Ensure you have access to the source repository that will be specified on the whiteboard. You may access this repository before you are told you can start the exam. We refer to the code in this repository as Prefuse in this exam. The only software authorized for use on this exam is Eclipse (with the Subclipse plugin) accessing the code we provide for the midterm and a web browser. The web browser may be used only to view the online Java 7 API available at: http://download.oracle.com/javase/7/docs/api/ Answer all questions on this paper. Give short but precise answers. Work fast and do the easy questions first. Leave some time to review your exam at the end. The marks for each question are given in []. Use this to manage your time. Good Luck

Question 1 2 3 4 5 6 TOTAL

Marks /7 /7 /6 /7 /5 /6 /38

Name

Student No

IMPORTANT: Questions 1, 2 and 4 apply to the prefuse system provided in the specified repository. Question 1. Intra-method Control Flow (Flowchart) [7 points] Draw a flowchart for the void clearAggregateMappings(int row, boolean update) method defined in the AggregateTable class of the prefuse.visual package.

Start

137‐138

140 false true 141‐143

145 true 146 false

End

Page 2

Name

Student No

Question 2. Inter-method Control Flow (Call Graph) [7 points] Draw a call graph starting from the
IntIterator edgeRows(int node)

method defined in the Graph class of the prefuse.data package.

Do not include calls to methods
    in any Java library (where the packages starts with java.) or any class in a package starting with prefuse.data.util or any class in a package starting with prefuse.data.column or any

You May Also Find These Documents Helpful

  • Good Essays

    Week 1 Lab_ CIS_115

    • 439 Words
    • 2 Pages

    This exercise will cover the steps used to create a solution. You will use variable lists, IPO charts, pseudocode, flowcharts, and desk-checking.…

    • 439 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    This lab requires you to think about the steps that take place in a program by designing a flowchart. While designing flowcharts can be done with paper and pencil, one mistake often requires a lot of erasing. Therefore, a flowcharting application such as Raptor or Visio should be used. This lab will give you a brief overview of Raptor.…

    • 777 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    CIS115 W2 Exercise

    • 757 Words
    • 10 Pages

    5) Use MS Visio to create a flowchart. Paste the flowchart here or attach it as a separate document. Use the same valid variable names you used in Step 1.…

    • 757 Words
    • 10 Pages
    Good Essays
  • Satisfactory Essays

    • Draw the physical data flow diagrams. Use Microsoft® Visio® to prepare examples of flow charts and data flow diagrams.…

    • 454 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    It210 Appendix F

    • 372 Words
    • 3 Pages

    3. The main user screen should have a short description saying how to use the program.…

    • 372 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    FOSS (Free and Open Source Software) had some trouble in 2006 when Microsoft submitted 235 patents that were allegedly violated by FOSS. Microsoft created these patents in order to collect royalties from companies in the “free world” (companies/people using free software). Eben Moglen of the Free Software Foundation contended that software is a mathematical algorithm and is not patentable. Moglen wrote, “It’s a tinderbox. As the commercial confrontation between free software and software-that’s-a-product becomes more fierce, patent law’s going to be the terrain on which a big piece of the war’s going to be fought.” FOSS has powerful corporate patrons and allies. So if Microsoft ever tried to sue Linux distributor Red Hat for patent infringement, for instance, OIN might sue Microsoft in retaliation, trying to enjoin distribution of Windows.…

    • 705 Words
    • 3 Pages
    Good Essays
  • Good Essays

    week 3

    • 580 Words
    • 3 Pages

    The first step in designing the new information system for Riordan is to identify what operations the system will perform and the information sources of the system. The processes and entities of Riordan’s information system will be represented in data flow diagrams. When designing the data flow diagrams, the amount of detail will be increased at each level. At each level, the process will divide into sub-processes.…

    • 580 Words
    • 3 Pages
    Good Essays
  • Good Essays

    pt1420 exam review

    • 738 Words
    • 3 Pages

    What is a diagram that graphically depicts the steps that take place in a program? Flowchart…

    • 738 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    IT 210 appendix d

    • 264 Words
    • 2 Pages

    Match the activity or purpose on the left with the appropriate description on the right by typing in the corresponding letter under the Answer column.…

    • 264 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    1) You can call the module several times instead of writing it out each time.…

    • 1580 Words
    • 11 Pages
    Better Essays
  • Satisfactory Essays

    Cs Programming Chapter 1

    • 2450 Words
    • 10 Pages

    ____ data items may involve organizing or sorting them, checking them for accuracy, or performing calculations with them.…

    • 2450 Words
    • 10 Pages
    Satisfactory Essays
  • Satisfactory Essays

    The value of a model depends on the view taken, but none is best for all purposes. (L4)…

    • 341 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    list

    • 315 Words
    • 2 Pages

    11. Differentiate between the I.V push, I.V. drip, and I.V. piggyback methods of administration. (3 points)…

    • 315 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Programming

    • 3038 Words
    • 13 Pages

    3. Write pseudocode for each example (a through e) in Exercise 2 making sure your pseudocode is structured but accomplishes the same tasks as the flowchart segment.…

    • 3038 Words
    • 13 Pages
    Good Essays
  • Satisfactory Essays

    Design a modular program that asks the user to enter a distance in kilometers, and the converts that distance to miles. The conversion formula is as follows:…

    • 620 Words
    • 5 Pages
    Satisfactory Essays

Related Topics