OHJ-306x: Software Testing Introduction to the Course Project Part 1: General Information and Project phases 1 & 2: Unit testing
|
|
- Bertram Kelley
- 5 years ago
- Views:
Transcription
1 1 OHJ-306x: Software Testing Introduction to the Course Project Part 1: General Information and Project phases 1 & 2: Unit testing Antti Jääskeläinen, leading course assistant Matti Vuori, course assistant (Slide set authors: Mika Maunumaa, Antti Jääskeläinen, Matti Vuori)
2 2 Agenda Basic bureaucracy About the staff and their roles and responsibilities, how to participate to the course project, your responsibilities etc. Course project Phases, the schedule, items to return, guidance meetings etc. Project Phases 1 & 2: Unit testing How to plan and design tests, how to conduct the testing, what to observe, and what to report Java and JUnit How does Java differ from C++, and how does JUnit work.
3 3 Part 1 BASIC BUREAUCRACY
4 4 Course staff Roles and responsibilities Mika Katara Lecturer Examinations Overall grading Answers all questions related to issues above Antti Jääskeläinen Leading assistant, in charge of the Course Project Reception: Room TF216, Tuesdays 11:30 12:30 Matti Vuori Assistant on the Course Project Room TF216, Assistants answer all immediate questions about particular project tasks and hold review and feedback sessions
5 5 How to get information General information channels IDLE system Use Finnish or English Questions about the task at hand Use IDLE if the question is general enough More private questions to your assigned assistant Questions about Master Test Plan or the project in general To the leading assistant
6 6 Participating the course project 1/2 Register to the project Find a team mate as soon as possible Just one (1) Register yourself in to the IDLE system (idle.cs.tut.fi) Make sure that your team mate has done the same In IDLE, create a test team (a group) with your team mate The team is always a pair Test team will have an assistant assigned (almost) automatically Read the Course Project page General project information, deadlines, links Read the Master Test Plan (MTP) the practical, detailed instructions
7 7 Participating the course project 2/2 NOTE! While working with the assignment, do not copy ideas from others (in Finnish, use Google translate to get the idea) Copying will have severe consequences
8 8 Student s role and responsibilities Student is a member of a test team Students must Provide required test plans and test designs Execute tests according to their plan Report test execution log, defects and deviations Learn! Plans are nothing; planning is everything Dwight D. Eisenhower Plans are of little importance, but planning is essential Winston Churchill
9 9 Passing the course 1/2 See details on Course Project web page There are 4 phases in the project Each can have 0-4 points 0 = good job, but too many mistakes 4 = excellent job 0 (zero) means that you must work harder in the subsequent tasks There are 2 voluntary review sessions Possible to gain 1 point from each assistants decide Acceptable draft of a plan at review meeting required for a point Compensates any missing points from actual tasks At most 16 points (half the course total) may be obtained from the course project
10 10 Passing the course 2/2 You will get the right to take the exam, if You get 5 points or more from project All tasks are accepted with grade 0 or greater At any situation you must return something in order to continue in the course You will pass the course if you get 5 points or more from exam Roughly half of the available points on the course (~ 16/32)
11 11 Submitting your work general rules Submit electronic version in IDLE All electronic plans and reports must be in PDF format OpenOffice can export PDF MS Word can print PDF through PDFCreator ( See details in Master Test Plan
12 12 Preparation checklist You have Lintula (Birdland) account You have registered yourself in IDLE system idle.cs.tut.fi You have found your team mate You have created a team in IDLE You have read the Course Project web page You have read the Master Test Plan At least the part concerning the unit testing phases
13 13 Part 2 THE COURSE PROJECT
14 14 Introduction to course project Course project has four phases Phase 1: Planning of unit testing Phase 2: Execution and reporting of unit tests Phase 3: Planning of system testing Phase 4: Execution and reporting of system tests The application under test is an advanced text editor jedit Written in Java
15 15 Phases 1 & 2: Unit testing In unit testing phases the test team will do the following: Phase 1: Planning of unit testing Create functional unit tests Plan test structure (test set, test suites...) Design appropriate test cases Review the plan with an assistant Phase 2: Execution and reporting of unit tests Implement and execute the tests Create a test report from findings Create a defect report Submit the reports & updated plans
16 16 Phases 3 & 4: System testing In system testing phases the test team will test the application at user interface level Phase 3: Planning of system testing Select an approach to the testing Feel free to select an approach that you feel most comfortable with Plan test structure and how to conduct the testing Review the plans with an assistant Phase 4: Execution and reporting system tests Implement and execute the tests Create a test log to record testing activity Create a test report from findings Create a defect report Submit the reports to the assistant
17 17 Schedule for project phases Unit test design Week 38: Review meeting Week 39: Submission deadline Week 40: Feedback Meeting Unit test report See the exact dates and times on Course Project web page Week 43: Submission deadline System test design Week 45: Review meeting Week 46: Submission deadline Week 47: Feedback meeting System test report Week 49: Submission deadline
18 Review & feedback meetings with assistants 1/2 18 Review meetings Before submissions at phases 1 and 3 Questions and Answers about how the particular work should be done Voluntary Aim: Discussion about a preliminary version of the plan (DRAFT) To check that the task has been started in a right way A bonus point awarded for a good draft at assistant's discretion 20 minutes per team
19 Review & feedback meetings with assistants 2/2 19 Feedback meetings After submissions at phases 1 and 3 What is the verdict of your submitted work Obligatory At least one team member must be present Both members must attend at least one feedback session 15 minutes per team
20 Submissions for unit testing (phases 1 & 2) Phase 1: Phase 2: After planning you must return unit test plan a pdf Tar package containing Unit test report a pdf Fixed unit test plan f pdf Unit test files exported from Eclipse See details in Master Test Plan 20
21 Submissions for system testing (phases 3 & 4) Phase 3: System test plan See details in Master Test Plan a pdf Phase 4: Tar package containing System test report a pdf Fixed system test plan f pdf Other files according to your chosen approach
22 22 Part 3 PROJECT PHASES 1 AND 2: UNIT TESTING
23 23 Test objectives Unit testing of jedit The purpose is to create a set of tests that verifies the current functionality and works as a regression test suite later Testing of one class: PatternSearchMatcher Used to search regular expression patterns in document text Acts as a wrapper for Java API class Pattern Testing performed using JUnit framework
24 24 Making the plan How to select your test cases? How to determine the importance? Assess priorities and dependencies How do you manage the logistics of your project? How will you divide your tests into physical files? What is your approach? When you have tested enough? Code coverage may give guidance Pass/failure of individual test case Pass/failure of unit testing How much time will the testing process take?
25 25 Prioritization Prioritize according to a methodology of your choice Example: probability / effect analysis Probability The likelihood that the tested feature contains an error Depends on the complexity of the feature Effect The severity of the consequences of an error in the feature Depends on how important the feature is to the users Combine to get priority
26 Planning test cases some issues to document 26 Test case is a JUnit method Test identifier is the name of the test method Must be descriptive Creation and modification dates Modification date tells the date for last modification Priority and dependencies if any The four parts: setup, execution, comparison, cleanup
27 27 Structure of a test case Setup Create relevant objects and set them to a right state Execution A single method call with suitable inputs Comparison Check the return value and the states of the objects involved The most important step! Cleanup Release allocated resources (objects, file handles etc.)
28 28 Estimation example 1/2 For the class PatternSearchMatcher Constructing an object Test with at least two patterns (simple & complex)? Case sensitivity Altogether 2*2 = 4 choices? Separate class for each? Calling the methods Around 27 YES/NO questions in the class methods One test case for each? 4*27 = 108 test cases?
29 29 Estimation example 2/2 Setting up a test class: 5 minutes / class? Implementing a test case Figuring out inputs and outputs: 5 minutes / test case? Coding a test case: 2 minutes / test case? Compilation and execution: 4 minutes / class? Checking results: on average 1 minutes / test case? Altogether 4*(5+4) + 108*(5+2+1) = 900 minutes = 15 hours? Lots of other factors involved Not everything can be tested with just a few patterns Most conditions don't actually care about the pattern One test case will pass multiple conditions Times required will vary individually
30 30 Test report Summary of what has been tested. Did you have to change your plan while testing? If you don t change your plan when needed, your project will end up to the rocks. What were the test cases you had to change and why? In your opinion, was your testing complete enough. Did you find any faults or other peculiar things? Was your testing successful? Did you find faults, did you reach your goals etc. How well your planned usage of time corresponded with the real usage?
31 31 Error reports Tell what is wrong with the software Expressed concisely in the title Show where and how the problem occurs Test environment Inputs Expected and received results etc. Motivate people to fix the issue Impact on end user Impact on development and testing
32 32 Part 4 Java and JUnit
33 33 Java as compared to C++ 1/4 Objects are always allocated on the heap MyClass x = new MyClass(); Objects are always handled as references StringBuilder s = new StringBuilder( abc ); StringBuilder t = s; s.append( def ); t.tostring(); // returns string abcdef No explicit object deletion, garbage collection handles objects once they're no longer referred to x = null;
34 34 Java as compared to C++ 2/4 Object equality a == b // checks whether a and b are the same object a.equals(b) // checks whether a and b are equal based on definition of equality by a Class definition and inheritance class SubClass extends BaseClass implements Interface1, Interface2 { } No multiple inheritance
35 35 Java as compared to C++ 3/4 Primitive types work much as in C++ byte, short, int, long, float, double, boolean, char Each also has a corresponding class Strings are (immutable) objects but have special support String str = abc + anotherstr; They still need to be compared using equals() Arrays are mutable objects Integer[] intarray1 = new Integer[2]; Integer[] intarray2 = new Integer[] {1, 2}; Arrays.equals(intArray1, intarray2);
36 36 Java as compared to C++ 4/4 For more information see
37 37 JUnit 1/3 Unit testing framework for Java software Includes ready-made methods for setting up, executing and reporting tests Test cases presented in a structured, maintainable format JUnit method is a test case JUnit actually uses the term test case for classes, but you need not create a separate class for each test case Classes are better used to group test cases with similar setups For more information see Corresponding xunit frameworks are available for other languages
38 38 JUnit 2/3 public class TestClass extends TestCase { protected void setup() { } // for common setup actions protected void teardown() { } // for cleanup actions // actual test cases, marked with public void test1() { public void test2() {...} }
39 39 JUnit public void test1() { See Master Test Plan for a more detailed example and instructions PatternSearchMatcher matcher = new PatternSearchMatcher( b, false); Match m = matcher.nextmatch( abc, true, true, true, false); assertequals( start, 1, m.start); assertequals( end, 2, m.end); asserttrue( substitutions, Arrays.equals(new String[] { b }, m.substitutions)); }
OHJ-306x: Software Testing Introduction to the Course Project Part 1: General Information and Project Phases 1 & 2: Unit testing
1 OHJ-306x: Software Testing Introduction to the Course Project Part 1: General Information and Project Phases 1 & 2: Unit testing Antti Jääskeläinen, leading course assistant Matti Vuori, course assistant
More informationACORN.COM CS 1110 SPRING 2012: ASSIGNMENT A1
ACORN.COM CS 1110 SPRING 2012: ASSIGNMENT A1 Due to CMS by Tuesday, February 14. Social networking has caused a return of the dot-com madness. You want in on the easy money, so you have decided to make
More informationJAVA MOCK TEST JAVA MOCK TEST II
http://www.tutorialspoint.com JAVA MOCK TEST Copyright tutorialspoint.com This section presents you various set of Mock Tests related to Java Framework. You can download these sample mock tests at your
More informationAnnouncements. 1. Forms to return today after class:
Announcements Handouts (3) to pick up 1. Forms to return today after class: Pretest (take during class later) Laptop information form (fill out during class later) Academic honesty form (must sign) 2.
More informationInf1-OOP. OOP Exam Review. Perdita Stevens, adapting earlier version by Ewan Klein. March 16, School of Informatics
Inf1-OOP OOP Exam Review Perdita Stevens, adapting earlier version by Ewan Klein School of Informatics March 16, 2015 Overview Overview of examinable material: Lectures Topics S&W sections Week 1 Compilation,
More informationOutline. Logistics. Logistics. Principles of Software (CSCI 2600) Spring Logistics csci2600/
Outline Principles of Software (CSCI 600) Spring 018 http://www.cs.rpi.edu/academics/courses/spring18/csci600/ Konstantin Kuzmin, kuzmik@cs.rpi.edu Office hours: Monday and Thursday 4:00 pm - 5:30 pm Mailing
More informationAgenda CS121/IS223. Reminder. Object Declaration, Creation, Assignment. What is Going On? Variables in Java
CS121/IS223 Object Reference Variables Dr Olly Gotel ogotel@pace.edu http://csis.pace.edu/~ogotel Having problems? -- Come see me or call me in my office hours -- Use the CSIS programming tutors Agenda
More informationNote: This is a miniassignment and the grading is automated. If you do not submit it correctly, you will receive at most half credit.
Com S 227 Fall 2017 Miniassignment 1 50 points Due Date: Monday, October 16, 11:59 pm (midnight) Late deadline (25% penalty): Tuesday, October 17, 11:59 pm General information This assignment is to be
More informationCS121/IS223. Object Reference Variables. Dr Olly Gotel
CS121/IS223 Object Reference Variables Dr Olly Gotel ogotel@pace.edu http://csis.pace.edu/~ogotel Having problems? -- Come see me or call me in my office hours -- Use the CSIS programming tutors CS121/IS223
More informationDay 6. COMP1006/1406 Summer M. Jason Hinek Carleton University
Day 6 COMP1006/1406 Summer 2016 M. Jason Hinek Carleton University today s agenda assignments Assignment 3 is due on Monday a quick look back abstract classes and interfaces casting objects abstract data
More informationAgile Software Development. Lecture 7: Software Testing
Agile Software Development Lecture 7: Software Testing Mahmoud El-Gayyar elgayyar@ci.suez.edu.eg Slides are a modified version of the slides by Prof. Kenneth M. Anderson Outline Testing Terminology Types
More informationInf1-OP. Inf1-OP Exam Review. Timothy Hospedales, adapting earlier version by Perdita Stevens and Ewan Klein. March 20, School of Informatics
Inf1-OP Inf1-OP Exam Review Timothy Hospedales, adapting earlier version by Perdita Stevens and Ewan Klein School of Informatics March 20, 2017 Overview Overview of examinable material: Lectures Week 1
More informationHW1 due Monday by 9:30am Assignment online, submission details to come
inst.eecs.berkeley.edu/~cs61c CS61CL : Machine Structures Lecture #2 - C Pointers and Arrays Administrivia Buggy Start Lab schedule, lab machines, HW0 due tomorrow in lab 2009-06-24 HW1 due Monday by 9:30am
More informationReview sheet for Final Exam (List of objectives for this course)
Review sheet for Final Exam (List of objectives for this course) Please be sure to see other review sheets for this semester Please be sure to review tests from this semester Week 1 Introduction Chapter
More informationReview! * follows a pointer to its value! & gets the address of a variable! Pearce, Summer 2010 UCB! ! int x = 1000; Pearce, Summer 2010 UCB!
CS61C L03 Introduction to C (pt 2) (1)! inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Lecture 3 Introduction to C (pt 2) 2010-06-23!!!Instructor Paul Pearce! The typical! development cycle!
More informationCS61C : Machine Structures
inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Lecture 3 Introduction to C (pt 2) 2010-06-23! C help session: Tonight 7:00-9:00pm @ 306 Soda!!!Instructor Paul Pearce! The typical! development
More informationCOE318 Lecture Notes Week 6 (Oct 10, 2011)
COE318 Software Systems Lecture Notes: Week 6 1 of 8 COE318 Lecture Notes Week 6 (Oct 10, 2011) Topics Announcements final qualifiers Example: An alternative to arrays == vs..equals(...): A first look
More informationOCA Java SE 7 Programmer I Certification Guide By Mela Gupta. Arrays
1 OCA Java SE 7 Programmer I Certification Guide By Mela Gupta In the OCA Java SE 7 programmer exam, you ll be asked many questions on how to create, modify, and delete String, StringBuilder, arrays, and
More informationCIS192: Python Programming
CIS192: Python Programming Introduction Harry Smith University of Pennsylvania January 18, 2017 Harry Smith (University of Pennsylvania) CIS 192 Lecture 1 January 18, 2017 1 / 34 Outline 1 Logistics Rooms
More informationLab Exercise 6: Abstract Classes and Interfaces CS 2334
Lab Exercise 6: Abstract Classes and Interfaces CS 2334 September 29, 2016 Introduction In this lab, you will experiment with using inheritance in Java through the use of abstract classes and interfaces.
More informationProject. C++: Inheritance III. Plan. Project. Before we begin. The final exam. Advanced Topics. Project. This week in the home stretch
Project C++: III Advanced Topics Othello submitted. Next submission: Team Evaluations Nov 10 th Please don t forget If solo give yourself a good evaluation! Indicate if okay to share feedback with partner
More informationCS61C Machine Structures. Lecture 4 C Pointers and Arrays. 1/25/2006 John Wawrzynek. www-inst.eecs.berkeley.edu/~cs61c/
CS61C Machine Structures Lecture 4 C Pointers and Arrays 1/25/2006 John Wawrzynek (www.cs.berkeley.edu/~johnw) www-inst.eecs.berkeley.edu/~cs61c/ CS 61C L04 C Pointers (1) Common C Error There is a difference
More informationCS61C : Machine Structures
inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Lecture 4 C Pointers 2004-09-08 Lecturer PSOE Dan Garcia www.cs.berkeley.edu/~ddgarcia Cal flies over Air Force We re ranked 13 th in the US and
More informationCOS 126 Exam Review. Exams overview Example programming exam Example written exam questions (part 1)
COS 126 Exam Review Exams overview Example programming exam Example written exam questions (part 1) Exams overview (revisited) We have exams in the fall Two written exams. Two programming exams. Prep sessions
More informationCS 170 Java Programming 1. Week 13: Classes, Testing, Debugging
CS 170 Java Programming 1 Week 13: Classes, Testing, Debugging What s the Plan? Short lecture for makeup exams Topic 1: A Little Review How to create your own user-defined classes Defining instance variables,
More informationThere are several files including the start of a unit test and the method stubs in MindNumber.java. Here is a preview of what you will do:
Project MindNumber Collaboration: Solo. Complete this project by yourself with optional help from section leaders. Do not work with anyone else, do not copy any code directly, do not copy code indirectly
More informationExam 1 Prep. Dr. Demetrios Glinos University of Central Florida. COP3330 Object Oriented Programming
Exam 1 Prep Dr. Demetrios Glinos University of Central Florida COP3330 Object Oriented Programming Progress Exam 1 is a Timed Webcourses Quiz You can find it from the "Assignments" link on Webcourses choose
More informationLecture 3. COMP1006/1406 (the Java course) Summer M. Jason Hinek Carleton University
Lecture 3 COMP1006/1406 (the Java course) Summer 2014 M. Jason Hinek Carleton University today s agenda assignments 1 (graded) & 2 3 (available now) & 4 (tomorrow) a quick look back primitive data types
More informationIntroduction to Java
Introduction to Java Module 1: Getting started, Java Basics 22/01/2010 Prepared by Chris Panayiotou for EPL 233 1 Lab Objectives o Objective: Learn how to write, compile and execute HelloWorld.java Learn
More informationCS61C : Machine Structures
inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Lecture #3 C Strings, Arrays, & Malloc 2007-06-27 Scott Beamer, Instructor Sun announces new supercomputer: Sun Constellation CS61C L3 C Pointers
More informationTuesday, November 15. Testing
Tuesday, November 15 1 Testing Testing Waterfall model show testing as an activity or box In practice, testing is performed constantly There has never been a project where there was too much testing. Products
More informationOutline. Java Models for variables Types and type checking, type safety Interpretation vs. compilation. Reasoning about code. CSCI 2600 Spring
Java Outline Java Models for variables Types and type checking, type safety Interpretation vs. compilation Reasoning about code CSCI 2600 Spring 2017 2 Java Java is a successor to a number of languages,
More informationWorksheet #4. Foundations of Programming Languages, WS 2014/15. December 4, 2014
Worksheet #4 Foundations of Programming Languages, WS 2014/15 December 4, 2014 In this exercise we will re-examine the techniques used for automatic memory management and implement a Cheney-style garbage
More informationCS Week 5. Jim Williams, PhD
CS 200 - Week 5 Jim Williams, PhD The Study Cycle Check Am I using study methods that are effective? Do I understand the material enough to teach it to others? http://students.lsu.edu/academicsuccess/studying/strategies/tests/studying
More informationBASIC COMPUTATION. public static void main(string [] args) Fundamentals of Computer Science I
BASIC COMPUTATION x public static void main(string [] args) Fundamentals of Computer Science I Outline Using Eclipse Data Types Variables Primitive and Class Data Types Expressions Declaration Assignment
More informationCSE 331 Final Exam 3/16/15 Sample Solution
Question 1. (12 points, 3 each) A short design exercise. Suppose Java did not include a Set class in the standard library and we need to store a set of Strings for an application. We know that the maximum
More informationTest-Driven Development JUnit
Test-Driven Development JUnit Click to edit Master EECS text 2311 styles - Software Development Project Second level Third level Fourth level Fifth level Wednesday, January 18, 2017 1 Simulator submission
More informationIntroduction to Programming Using Java (98-388)
Introduction to Programming Using Java (98-388) Understand Java fundamentals Describe the use of main in a Java application Signature of main, why it is static; how to consume an instance of your own class;
More informationProcedural Abstraction
Procedural Abstraction Comp-303 : Programming Techniques Lecture 5 Alexandre Denault Computer Science McGill University Winter 2004 February 16, 2004 Lecture 5 Comp 303 : Programming Techniques Page 1
More informationTA hours and labs start today. First lab is out and due next Wednesday, 1/31. Getting started lab is also out
Announcements TA hours and labs start today. First lab is out and due next Wednesday, 1/31. Getting started lab is also out Get you setup for project/lab work. We ll check it with the first lab. Stars
More informationMTAT Software Engineering. Written Exam 17 January Start: 9:15 End: 11:45
MTAT.03.094 Software Engineering Written Exam 17 January 2014 Start: 9:15 End: 11:45 Important Notes: The exam is open book and open laptop. Web browsing is allowed, but you are not allowed to use e mail
More informationVARIABLES AND TYPES CITS1001
VARIABLES AND TYPES CITS1001 Scope of this lecture Types in Java the eight primitive types the unlimited number of object types Values and References The Golden Rule Primitive types Every piece of data
More informationCS153: Compilers Lecture 1: Introduction
CS153: Compilers Lecture 1: Introduction Stephen Chong https://www.seas.harvard.edu/courses/cs153 Source Code What is this course about?? Compiler! Target Code 2 What is this course about? How are programs
More informationReview: C Strings. A string in C is just an array of characters. Lecture #4 C Strings, Arrays, & Malloc
CS61C L4 C Pointers (1) inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Lecture #4 C Strings, Arrays, & Malloc Albert Chae Instructor 2008-06-26 Review: C Strings A string in C is just an array
More informationAdvanced Object Oriented Programming EECS2030Z
Advanced Object Oriented Programming EECS2030Z 1 Academic Support Programs: Bethune having trouble with your FSC and LSE courses? consider using the Academic Support Programs at Bethune College PASS free,
More informationLearning objectives. Reading carefully. Managing your time. CS2110 Fall 2017 Assignment A1. PhD Genealogy. See CMS for the due date
1 CS2110 Fall 2017 Assignment A1 PhD Genealogy Website http://genealogy.math.ndsu.nodak.edu contains the PhD genealogy of about 214,100 mathematicians and computer scientists, showing their PhD advisors
More informationHigh Performance Computing MPI and C-Language Seminars 2009
High Performance Computing - Seminar Plan Welcome to the High Performance Computing seminars for 2009. Aims: Introduce the C Programming Language. Basic coverage of C and programming techniques needed
More informationIntroduction to JUnit. Data Structures and Algorithms for Language Processing
Data Structures and Algorithms for Language Processing What is JUnit JUnit is a small, but powerful Java framework to create and execute automatic unit tests Unit testing is the test of a part of a program
More informationProgramming II (CS300)
1 Programming II (CS300) Chapter 02: Using Objects MOUNA KACEM mouna@cs.wisc.edu Fall 2018 Using Objects 2 Introduction to Object Oriented Programming Paradigm Objects and References Memory Management
More informationCS211 Computers and Programming Matthew Harris and Alexa Sharp July 9, Boggle
Boggle If you are not familiar with the game Boggle, the game is played with 16 dice that have letters on all faces. The dice are randomly deposited into a four-by-four grid so that the players see the
More informationCSCI 355 LAB #2 Spring 2004
CSCI 355 LAB #2 Spring 2004 More Java Objectives: 1. To explore several Unix commands for displaying information about processes. 2. To explore some differences between Java and C++. 3. To write Java applications
More informationCOE318 Lecture Notes Week 5 (Oct 3, 2011)
COE318 Software Systems Lecture Notes: Week 5 1 of 6 COE318 Lecture Notes Week 5 (Oct 3, 2011) Topics Announcements Strings static and final qualifiers Stack and Heap details Announcements Quiz: Today!
More informationArray. Prepared By - Rifat Shahriyar
Java More Details Array 2 Arrays A group of variables containing values that all have the same type Arrays are fixed length entities In Java, arrays are objects, so they are considered reference types
More information1B1b Classes in Java Part I
1B1b Classes in Java Part I Agenda Defining simple classes. Instance variables and methods. Objects. Object references. 1 2 Reading You should be reading: Part I chapters 6,9,10 And browsing: Part IV chapter
More informationLesson 3: Accepting User Input and Using Different Methods for Output
Lesson 3: Accepting User Input and Using Different Methods for Output Introduction So far, you have had an overview of the basics in Java. This document will discuss how to put some power in your program
More information20 Most Important Java Programming Interview Questions. Powered by
20 Most Important Java Programming Interview Questions Powered by 1. What's the difference between an interface and an abstract class? An abstract class is a class that is only partially implemented by
More informationCE221 Programming in C++ Part 1 Introduction
CE221 Programming in C++ Part 1 Introduction 06/10/2017 CE221 Part 1 1 Module Schedule There are two lectures (Monday 13.00-13.50 and Tuesday 11.00-11.50) each week in the autumn term, and a 2-hour lab
More informationCMPSCI 187 / Spring 2015 Implementing Sets Using Linked Lists
CMPSCI 187 / Spring 2015 Implementing Sets Using Linked Lists Due on Tuesday February 24, 2015, 8:30 a.m. Marc Liberatore and John Ridgway Morrill I N375 Section 01 @ 10:00 Section 02 @ 08:30 1 CMPSCI
More informationTutorials. Tutorial every Friday at 11:30 AM in Toldo 204 * discuss the next lab assignment
60-212 subir@cs.uwindsor.ca Phone # 253-3000 Ext. 2999 web site for course www.cs.uwindsor.ca/60-212 Dr. Subir Bandyopadhayay Website has detailed rules and regulations All assignments and labs will be
More informationCredit: The lecture slides are created based on previous lecture slides by Dan Zingaro.
CSC148 2018 Here 1 Credit: The lecture slides are created based on previous lecture slides by Dan Zingaro. 2 Larry Zhang Office: DH-3042 Email: ylzhang@cs.toronto.edu 3 The teaching team Dan Zingaro: LEC0103
More informationChapter 1. Introduction to Computers and Programming. M hiwa ahmad aziz
. Chapter 1 Introduction to Computers and Programming www.raparinweb.com M hiwa ahmad aziz 1 Ch 1 - Introduction to Computers and Programming Hardware Terminology Main Memory Auxiliary Memory Drives Writing
More informationAutomatic program generation for detecting vulnerabilities and errors in compilers and interpreters
Automatic program generation for detecting vulnerabilities and errors in compilers and interpreters 0368-3500 Nurit Dor Shir Landau-Feibish Noam Rinetzky Preliminaries Students will group in teams of 2-3
More informationBrief Summary of Java
Brief Summary of Java Java programs are compiled into an intermediate format, known as bytecode, and then run through an interpreter that executes in a Java Virtual Machine (JVM). The basic syntax of Java
More informationCIS192 Python Programming. Robert Rand. August 27, 2015
CIS192 Python Programming Introduction Robert Rand University of Pennsylvania August 27, 2015 Robert Rand (University of Pennsylvania) CIS 192 August 27, 2015 1 / 30 Outline 1 Logistics Grading Office
More informationFall 2017 CISC124 9/16/2017
CISC124 Labs start this week in JEFF 155: Meet your TA. Check out the course web site, if you have not already done so. Watch lecture videos if you need to review anything we have already done. Problems
More informationCOMP19612 exam performance feedback 2014
COMP19612 exam performance feedback 2014 (excluding section A which is multiple choice) Questions in plain font, original marking scheme in bold, additional comments in bold italic. Question 1 The students
More informationCourse information. Petr Hnětynka 2/2 Zk/Z
JAVA Introduction Course information Petr Hnětynka hnetynka@d3s.mff.cuni.cz http://d3s.mff.cuni.cz/~hnetynka/java/ 2/2 Zk/Z exam written test zápočet practical test in the lab zápočtový program "reasonable"
More informationCheck out FilesAndExceptions from SVN. Exam 2 Review File I/O, Exceptions Vector Graphics Project
Check out FilesAndExceptions from SVN Exam 2 Review File I/O, Exceptions Vector Graphics Project Exam 2 review File I/O and Exceptions Vector Graphics project kickoff Exam is in class tomorrow Test on
More informationEfficient Java (with Stratosphere) Arvid Heise, Large Scale Duplicate Detection
Efficient Java (with Stratosphere) Arvid Heise, Large Scale Duplicate Detection Agenda 2 Bottlenecks Mutable vs. Immutable Caching/Pooling Strings Primitives Final Classloaders Exception Handling Concurrency
More informationInf1-OP. Inf1-OP Exam Review. Volker Seeker, adapting earlier version by Perdita Stevens and Ewan Klein. March 16, School of Informatics
Inf1-OP Inf1-OP Exam Review Volker Seeker, adapting earlier version by Perdita Stevens and Ewan Klein School of Informatics March 16, 2018 Examinable Material Overview Overview of examinable material:
More informationCS61BL. Lecture 1: Welcome to CS61BL! Intro to Java and OOP Testing Error-handling
CS61BL Lecture 1: Welcome to CS61BL! Intro to Java and OOP Testing Error-handling About me Name: Edwin Liao Email: edliao@berkeley.edu Office hours: Thursday 3pm - 5pm Friday 11am - 1pm 611 Soda Or by
More informationCMPSCI 187 / Spring 2015 Hangman
CMPSCI 187 / Spring 2015 Hangman Due on February 12, 2015, 8:30 a.m. Marc Liberatore and John Ridgway Morrill I N375 Section 01 @ 10:00 Section 02 @ 08:30 1 CMPSCI 187 / Spring 2015 Hangman Contents Overview
More informationCOMP 250: Java Programming I. Carlos G. Oliver, Jérôme Waldispühl January 17-18, 2018 Slides adapted from M. Blanchette
COMP 250: Java Programming I Carlos G. Oliver, Jérôme Waldispühl January 17-18, 2018 Slides adapted from M. Blanchette Variables and types [Downey Ch 2] Variable: temporary storage location in memory.
More informationAFRICA INTERNATIONAL UNIVERSITY
AFRICA INTERNATIONAL UNIVERSITY DEPARTMENT OF OPEN, DISTANCE AND elearning (ODeL) STUDENTS MANUAL FOR ACCESSING THE elearning PLATFORM Table of Contents Introduction... 3 Logging in to Moodle... 4 Profile
More informationCS 61C: Great Ideas in Computer Architecture. Lecture 3: Pointers. Bernhard Boser & Randy Katz
CS 61C: Great Ideas in Computer Architecture Lecture 3: Pointers Bernhard Boser & Randy Katz http://inst.eecs.berkeley.edu/~cs61c Agenda Pointers in C Arrays in C This is not on the test Pointer arithmetic
More informationIntroduction to the course and basic programming concepts
Introduction to the course and basic programming concepts Lecture 1 of TDA 540 Object-Oriented Programming Jesper Cockx Fall 2018 Chalmers University of Technology Gothenburg University About the course
More informationJunit Overview. By Ana I. Duncan
Junit Overview By Ana I. Duncan 1 What Is Junit Why Junit, Why test? Junit Lifecycle Junit Examples from CM Other Testing frameworks Resources Before After Agenda 2 JUnit is a member of the xunit testing
More informationCompiling Your Code and Running the Tests
Database Systems Instructor: Hao-Hua Chu Fall Semester, 2004 Assignment 4: Heap File Page Structure Deadline: 17:00, October 26 (Tuesday), 2004 This is a group assignment, and at most 2 people per group
More informationCS1110 Lab 1 (Jan 27-28, 2015)
CS1110 Lab 1 (Jan 27-28, 2015) First Name: Last Name: NetID: Completing this lab assignment is very important and you must have a CS 1110 course consultant tell CMS that you did the work. (Correctness
More informationUsing R to provide statistical functionality for QSAR modeling in CDK
Vol. 2/1, March 2005 7 Using R to provide statistical functionality for QSAR modeling in CDK A description of the integration of CDK and the R statistical environment Rajarshi Guha Introduction A previous
More informationObject Oriented Software Design - I
Object Oriented Software Design - I Unit Testing Giuseppe Lipari http://retis.sssup.it/~lipari Scuola Superiore Sant Anna Pisa November 28, 2011 G. Lipari (Scuola Superiore Sant Anna) Unit Testing November
More informationSoftware Engineering I (02161)
Software Engineering I (02161) Week 6: Design 1: CRC cards, class and sequence diagram Assoc. Prof. Hubert Baumeister DTU Compute Technical University of Denmark Spring 2017 Contents Midterm evaluation
More informationMore C Pointer Dangers
CS61C L04 Introduction to C (pt 2) (1) inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Must-see talk Thu 4-5pm @ Sibley by Turing Award winner Fran Allen: The Challenge of Multi-Cores: Think Sequential,
More informationProgramming overview
Programming overview Basic Java A Java program consists of: One or more classes A class contains one or more methods A method contains program statements Each class in a separate file MyClass defined in
More informationThis course supports the assessment for Scripting and Programming Applications. The course covers 4 competencies and represents 4 competency units.
This course supports the assessment for Scripting and Programming Applications. The course covers 4 competencies and represents 4 competency units. Introduction Overview Advancements in technology are
More informationProject #1 rev 2 Computer Science 2334 Fall 2013 This project is individual work. Each student must complete this assignment independently.
Project #1 rev 2 Computer Science 2334 Fall 2013 This project is individual work. Each student must complete this assignment independently. User Request: Create a simple magazine data system. Milestones:
More informationMidterms Save the Dates!
University of British Columbia CPSC 111, Intro to Computation Alan J. Hu Primitive Data Types Arithmetic Operators Readings Your textbook is Big Java (3rd Ed). This Week s Reading: Ch 2.1-2.5, Ch 4.1-4.2.
More informationLecture 21. Regression Testing Path Spectra. EE 382V Spring 2009 Software Evolution - Instructor Miryung Kim
Lecture 21 Regression Testing Path Spectra Today s Agenda (1) Regression Test Selection Path Spectra Presentation by David (skeptic) Presentation by Sidd (advocate) Presentation by Srinivas (skeptic) Today
More informationCSE 331 Summer 2017 Final Exam. The exam is closed book and closed electronics. One page of notes is allowed.
Name Solution The exam is closed book and closed electronics. One page of notes is allowed. The exam has 6 regular problems and 1 bonus problem. Only the regular problems will count toward your final exam
More informationCS 61C: Great Ideas in Computer Architecture. Lecture 3: Pointers. Krste Asanović & Randy Katz
CS 61C: Great Ideas in Computer Architecture Lecture 3: Pointers Krste Asanović & Randy Katz http://inst.eecs.berkeley.edu/~cs61c Agenda Pointers in C Arrays in C This is not on the test Pointer arithmetic
More informationLecture 4: Memory Management & The Programming Interface
CS 422/522 Design & Implementation of Operating Systems Lecture 4: Memory Management & The Programming Interface Zhong Shao Dept. of Computer Science Yale University Acknowledgement: some slides are taken
More informationProf. Dr. A. Podelski, Sommersemester 2017 Dr. B. Westphal. Softwaretechnik/Software Engineering
Prof. Dr. A. Podelski, Sommersemester 2017 Dr. B. Westphal Softwaretechnik/Software Engineering http://swt.informatik.uni-freiburg.de/teaching/ss2017/swtvl Exercise Sheet 6 Early submission: Wednesday,
More informationG52CPP C++ Programming Lecture 10. Dr Jason Atkin
G52CPP C++ Programming Lecture 10 Dr Jason Atkin 1 Last lecture Constructors Default constructor needs no parameters Default parameters Inline functions Like safe macros in some ways Function definitions
More informationCS201 - Assignment 3, Part 1 Due: Friday February 28, at the beginning of class
CS201 - Assignment 3, Part 1 Due: Friday February 28, at the beginning of class One of the keys to writing good code is testing your code. This assignment is going to introduce you and get you setup to
More informationPractical 2: Ray Tracing
2017/2018, 4th quarter INFOGR: Graphics Practical 2: Ray Tracing Author: Jacco Bikker The assignment: The purpose of this assignment is to create a small Whitted-style ray tracer. The renderer should be
More informationComputer Science 210: Data Structures
Computer Science 210: Data Structures Welcome to Data Structures! Data structures are fundamental building blocks of algorithms and programs Csci 210 is a study of data structures design efficiency implementation
More informationCS 251 Intermediate Programming Java Basics
CS 251 Intermediate Programming Java Basics Brooke Chenoweth University of New Mexico Spring 2018 Prerequisites These are the topics that I assume that you have already seen: Variables Boolean expressions
More information2. The object-oriented paradigm
2. The object-oriented paradigm Plan for this section: Look at things we have to be able to do with a programming language Look at Java and how it is done there Note: I will make a lot of use of the fact
More informationCS/ENGRD 2110 Object-Oriented Programming and Data Structures Spring 2012 Thorsten Joachims
CS/ENGRD 2110 Object-Oriented Programming and Data Structures Spring 2012 Thorsten Joachims Lecture 1: Overview http://courses.cs.cornell.edu/cs2110 1 Course Staff Instructor Thorsten Joachims (tj@cs.cornell.edu)
More informationSelected Questions from by Nageshwara Rao
Selected Questions from http://way2java.com by Nageshwara Rao Swaminathan J Amrita University swaminathanj@am.amrita.edu November 24, 2016 Swaminathan J (Amrita University) way2java.com (Nageshwara Rao)
More information