# Objects OOP Quiz Stuff. CS1101S: DG Week 10. Wohoo, OOP! October 22, CS1101S: DG Week 10

Save this PDF as:

Size: px
Start display at page:

Download "Objects OOP Quiz Stuff. CS1101S: DG Week 10. Wohoo, OOP! October 22, CS1101S: DG Week 10"

## Transcription

1 Wohoo,! October 22, 2016

2 Revision 1 Objects 2 3

3 What is an Object? Objects Revision Tables that map keys to values Efficient data structure than using lists Three notations: square bracket, dot-nation and literal Order of growth (runtime) for accessing and updating an entry? Θ(1)! Things to put in object entry! Functions: obj["a"] = function(x) { }; Strings: obj["b"] = "bbq"; Variables: obj["c"] = my_pair; What happens when we change the value of my_pair?

4 Problem One: Drawing! Revision Question Following the notation introduced in Lecture 9B, draw a graphical representation of the two objects my_object and my_other_object. For Your Reference var my_object = {}; my_object["a"] = 1; my_object["b"] = 2; my_object["my very long key"] = 2; var my_other_object = { d : 1, e : "a string", f : true, my_fun : function (x) {} };

5 Problem One: Solution Objects Revision my_object & my_other_object

6 Problem Two: Some Play Revision Question Familiarize yourself with the object notation, by assigning the variable theatre_play to an object with the attributes title, number_of_spectators, venue, and number_of_actors, using the three different syntactic variants: Square bracket notation, dot-notation and literal object creation. You can use as values the data from the last theatre play that you watched. Any theatre goers?

7 Problem Two: Solution Objects Revision Square bracket notation var theatre_play = {}; theatre_play["title"] = "a Play featuring an iphone power block and a mechanical pencil"; theatre_play["number_of_spectators"] = ; theatre_play["venue"] = "M8izj_mKa-8"; theatre_play["number_of_actors"] = 2;

8 Revision Problem Two: Solution (continued) Dot-notation var theatre_play = {}; theatre_play.title = "a Play featuring an iphone power block and a mechanical pencil"; theatre_play.number_of_spectators = ; theatre_play.venue = "M8izj_mKa-8"; theatre_play.number_of_actors = 2;

9 Revision Problem Two: Solution (continued) Literal var theatre_play = { title: "a Play featuring an iphone power block and a mechanical pencil", number_of_spectators: , venue: "M8izj_mKa-8", number_of_actors: 2 };

10 Problem Three: More drawing! Revision Question Draw a graphical representation for x, y, z after evaluating the following programs. var x = pair(1, my_object); var y = {q: 4, p: theatre_play}; var z = my_object; z.play = pair(theatre_play, theatre_play);

11 Problem Three: Solution Revision Unified diagram!

12 Review What is Object Oriented Programming? System is organized around objects that receive messages An object encapsulates data (state) and operations (behaviour) Major Concepts Classes and instances Methods and message passing Inheritance Polymorphism

13 Review Problem One: DRAW AGAIN?!!? Question Draw the box-and-pointer diagrams of the objects Vessel, ContainerShip, my_boat, my_ship that result from evaluating the following program.

14 Problem One: Solution Objects Review Diagram :(

15 Problem Two: Buying Ships Review Question Construct these objects without using a single. and without using new. After evaluating your program, the following program should work as expected. Hint Dot-notation is out. What about literal and square bracket notation?

16 Problem Two: Solution Objects Review Literal Version var my_boat = { displacement: 20, proto : Vessel["prototype"] }; var my_ship = { displacement: 500, containers: list("c1", "c2"), proto : ContainerShip["prototype] };

17 Review Problem Two: Solution (continued) Square bracket Version var my_boat = {}; my_boat["displacement"] = 20; my_boat[" proto "] = Vessel["prototype"]; var my_ship = {}; my_boat["displacement"] = 500; my_boat["containers"] = list("c1", "c2"); my_boat[" proto "] = ContainerShip["prototype"];

18 Review Problem One (reset): Gorilla or Student? Question Now lets create a student object named Harambe. Since Harambe was a little sick on exam day, he didnt perform well and got an exam score of 45. After the creation of the student object, verify all the attribute values of Harambe and then make Harambe introduce himself. Why does it work? Solution var harambe = new Student("Harambe", 45); harambe.introduce_self(); Why? Consider where the variables are stored!

19 Problem Two: Gorilla with IQ Review Question After some time, the professor realized that he had made a mistake in the grading, and Harambes exam score was amended to 60. Update Harambes exam score to 60, and verify again all the attribute values of Harambe. Is there anything wrong? Solution Change score: harambe.exam_score = 60; Why? Check if we are assigning a value or an expression?

20 Review Problem Three: Recording System PRO Question To fix the problem above, lets add to the Student class a method called update_score, which updates the students module grade and mood based on a given score.

21 Problem Three: Solution Review Solution Student.prototype.update_score = function (new_score) { this.exam_score = new_score; this.module_grade = this.exam_score < 50? "C" : this.exam_score <= 75? "B" : "A"; this.mood = this.module_grade === "C"? "still happy because I can..." : "happy"; };

22 Problem Four: Introduction? Review Question We now want to change the students way of introducing himself/herself such that he/she also introduces himself/herself as a student. We try to achieve this by adding these lines: Student.introduce_self = function(){ display("hello, my name is " + this.name +" and my mood is " + this.mood); display("i am also a student!"); }; Try letting Harambe introduce himself again. Is there any difference? Why?

23 Problem Four: Solution Review Why? Differences between prototype and instance variables.

24 Problem Five: Irritating Objects Review Question Correct the above problem so that a student can introduce himself/herself as a student. Can Harambe now introduce himself correctly? Will it still work if we define introduce_self in Student.prototype? Why? Solution It will work. It is due to how a function call is processed by the interpreter (using proto )

25 Problem One Eh: Flip/Flop Question Define a function flip (with no parameters) that returns 1 the first time it is called, 0 the second time it is called, 1 the third time, 0 the fourth time, and so on. Answer function make_flip() { var state = 0; return function() { state = (state === 1)? 0 : 1; return state; }; } var flip = make_flip();

26 Problem One Bee: FlipFactory Question Define a class Flip that can be used to generate flip objects. That is, we should be able to write var flip = new Flip(); Define a constructor Flip and a method flip. The first time you invoke the method flip on a Flip object, it returns 1, the second time 0, the third time 1, and so on.

27 Problem One Bee: Solution Solution function Flip() { this.state = 0; } Flip.prototype.flip = function() { this.state = (this.state === 1)? 0 : 1; return this.state; };

### Today. Continue our very basic intro to JavaScript. Lambda calculus

JavaScript (cont) Today Continue our very basic intro to JavaScript Lambda calculus Last lecture recap JavaScript was designed in 10 days Lots of unsatisfactory parts (in retrospect); many due due to the

### JAVA 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

### OOP-8-DLList-1-HW.docx CSCI 2320 Initials Page 1

OOP-8-DLList-1-HW.docx CSCI 2320 Initials Page 1 If this lab is an Individual assignment, you must do all coded programs on your own. You may ask others for help on the language syntax, but you must organize

### CS61A Discussion Notes: Week 11: The Metacircular Evaluator By Greg Krimer, with slight modifications by Phoebus Chen (using notes from Todd Segal)

CS61A Discussion Notes: Week 11: The Metacircular Evaluator By Greg Krimer, with slight modifications by Phoebus Chen (using notes from Todd Segal) What is the Metacircular Evaluator? It is the best part

### A Short Summary of Javali

A Short Summary of Javali October 15, 2015 1 Introduction Javali is a simple language based on ideas found in languages like C++ or Java. Its purpose is to serve as the source language for a simple compiler

### Object-Oriented Programming

- oriented - iuliana@cs.ubbcluj.ro Babes-Bolyai University 2018 1 / 56 Overview - oriented 1 2 -oriented 3 4 5 6 7 8 Static and friend elements 9 Summary 2 / 56 I - oriented was initially created by Bjarne

### OOP- 5 Stacks Individual Assignment 35 Points

OOP-5-Stacks-HW.docx CSCI 2320 Initials P a g e 1 If this lab is an Individual assignment, you must do all coded programs on your own. You may ask others for help on the language syntax, but you must organize

### 2. You are required to enter a password of up to 100 characters. The characters must be lower ASCII, printing characters.

BLACK BOX SOFTWARE TESTING SPRING 2005 DOMAIN TESTING LAB PROJECT -- GRADING NOTES For all of the cases below, do the traditional equivalence class and boundary analysis. Draw one table and use a new line

### EC312 Chapter 4: Arrays and Strings

Objectives: (a) Describe how an array is stored in memory. (b) Define a string, and describe how strings are stored. EC312 Chapter 4: Arrays and Strings (c) Describe the implications of reading or writing

### CS 1044 Program 6 Summer I dimension ??????

Managing a simple array: Validating Array Indices Most interesting programs deal with considerable amounts of data, and must store much, or all, of that data on one time. The simplest effective means for

### OHIO ASSESSMENTS FOR EDUCATORS (OAE) FIELD 010: COMPUTER INFORMATION SCIENCE

OHIO ASSESSMENTS FOR EDUCATORS (OAE) FIELD 010: COMPUTER INFORMATION SCIENCE June 2013 Content Domain Range of Competencies Approximate Percentage of Assessment Score I. Computer Use in Educational Environments

### Activity 7: Arrays. Content Learning Objectives. Process Skill Goals

Activity 7: Arrays Programs often need to store multiple values of the same type, such as a list of phone numbers, or the names of your top 20 favorite songs. Rather than create a separate variable for

### JavaScript: Objects, Methods, Prototypes

JavaScript: Objects, Methods, Prototypes Computer Science and Engineering College of Engineering The Ohio State University Lecture 22 What is an Object? Property: a key/value pair (aka "name"/value) Object:

### Grade Level: 6-8 Sunshine State Standard: MA.A.1.3.3, MA.A.3.3.1, MA.B.1.3.2, MA.B.4.3.2, MA.C Time: 45 minutes

Rotations Grade Level: 6-8 Sunshine State Standard: MA.A.1.3.3, MA.A.3.3.1, MA.B.1.3.2, MA.B.4.3.2, MA.C.3.3.2 Time: 45 minutes Materials: Students: Paper, pencil, graph paper, computer with GeoGebra (if

### Please indicate EDM in the subject box

I. Course Description: This course provides second year medical students with the basic facts and principles of Human Physiology. These principles are necessary to understand the mechanisms of disease,

### Babaria Institute of Technology Computer Science and Engineering Department Practical List of Object Oriented Programming with C

Practical -1 Babaria Institute of Technology LEARN CONCEPTS OF OOP 1. Explain Object Oriented Paradigm with figure. 2. Explain basic Concepts of OOP with example a. Class b. Object c. Data Encapsulation

### CS 455 Midterm Exam 1 Fall 2015 [Bono] Thursday, Oct. 1, 2015

Name: USC netid (e.g., ttrojan): CS 455 Midterm Exam 1 Fall 2015 [Bono] Thursday, Oct. 1, 2015 There are 5 problems on the exam, with 58 points total available. There are 10 pages to the exam (5 pages

CS313D: ADVANCED PROGRAMMING LANGUAGE Computer Science department Lecture 4 : Classes & Objects Lecture Contents What is a class? Class definition: Data Methods Constructors Properties (set/get) objects

### Hardware Description and Verification Lava Exam

Hardware Description and Verification Lava Exam Mary Sheeran Revised by Thomas Hallgren hallgren@chalmers.se May 16, 2010 Introduction The purpose of this take-home exam is to give you further practice

### Experiment no 4 Study of Class Diagram in Rational Rose

Experiment no 4 Study of Class Diagram in Rational Rose Objective-: To studyclass Diagram in Rational Rose. References-: www.developer.com The Unified Modeling Language User Guide by Grady Booch Mastering

### Lecture 17. For Array Class Shenanigans

Lecture 17 For Array Class Shenanigans For or While? class WhileDemo { public static void main(string[] args){ int count = 1; while (count < 11) { System.out.println("Count is: " + count); count++; Note:

### Lecture 5: Inheritance

McGill University Computer Science Department COMP 322 : Introduction to C++ Winter 2009 Lecture 5: Inheritance Sami Zhioua March 11 th, 2009 1 Inheritance Inheritance is a form of software reusability

### Shorthand for values: variables

Chapter 2 Shorthand for values: variables 2.1 Defining a variable You ve typed a lot of expressions into the computer involving pictures, but every time you need a different picture, you ve needed to find

### Node.js Training JavaScript. Richard richardrodger.com

Node.js Training JavaScript Richard Rodger @rjrodger richardrodger.com richard.rodger@nearform.com A New Look at JavaScript Embracing JavaScript JavaScript Data Structures JavaScript Functions Functional

### University of Utah School of Computing

University of Utah School of Computing CS 1410 / CS 2000 Study Notes December 10, 2011 This study guide is designed to help you prepare and study the appropriate material for the final exam. For the multiple

### CS303 LOGIC DESIGN FINAL EXAM

JANUARY 2017. CS303 LOGIC DESIGN FINAL EXAM STUDENT NAME & ID: DATE: Instructions: Examination time: 100 min. Write your name and student number in the space provided above. This examination is closed

### Student Performance Q&A:

Student Performance Q&A: 2004 AP Computer Science A Free-Response Questions The following comments on the 2004 free-response questions for AP Computer Science A were written by the Chief Reader, Chris

### CSI 32. Lecture Object-Oriented Paradigm. UML (Unified Modeling Language)

Lecture 3 1.4 Object-Oriented Paradigm UML (Unified Modeling Language) The Object-Oriented Paradigm - data and operations are paired - programs are composed of self-sufficient modules (objects) each module

### More on JavaScript Functions

More on JavaScript Functions Nesting Function Definitions Function definitions can be nested. function hypotenuse(a, b) function square(x) return x * x; return Math.sqrt(square(a) + square(b));

### Object Model. Object Orientated Analysis and Design. Benjamin Kenwright

Object Model Object Orientated Analysis and Design Benjamin Kenwright Outline Submissions/Quizzes Review Object Orientated Programming Concepts (e.g., encapsulation, data abstraction,..) What do we mean

### CSCI Compiler Design

CSCI 565 - Compiler Design Spring 2015 Midterm Exam March 04, 2015 at 8:00 AM in class (RTH 217) Duration: 2h 30 min. Please label all pages you turn in with your name and student number. Name: Number:

### First Midterm Exam CS164, Fall 2007 Oct 2, 2007

P a g e 1 First Midterm Exam CS164, Fall 2007 Oct 2, 2007 Please read all instructions (including these) carefully. Write your name, login, and SID. No electronic devices are allowed, including cell phones

### Example: Class MSDie Introduction to Graphs and NetworkX

Example: Class MSDie Introduction to Graphs and NetworkX Monday, March 30, 2009 1 Be careful whose random number generator you trust http://xkcd.com/221/ 2 1 Reminders Sample exam questions have been posted

### : Intro Programming for Scientists and Engineers Final Exam

Final Exam Page 1 of 6 600.112: Intro Programming for Scientists and Engineers Final Exam Peter H. Fröhlich phf@cs.jhu.edu December 20, 2012 Time: 40 Minutes Start here: Please fill in the following important

### OOP Exercise Sheet 2013/14

OOP Exercise Sheet 2013/14 Dr Robert Harle These exercises follow the notes and are intended to provide material for supervisions. They are graded A C to indicate the effort expected (An A would be worth

### , 6.7,, Order the numbers from least to greatest. 1. 1, 0, 2, 5, 4. Simplify the expression. 10.

Getting Ready for Pre-Algebra or Algebra Summer Math Practice The following are practice questions to evaluate the students understanding of concepts and skills taught in seventh grade as a readiness for

### Final Exam. Final Exam Review. Ch 1: Introduction: Object-oriented analysis, design, implementation. Exam Format

Final Exam Final Exam Review CS 4354 Fall 2012 Jill Seaman Friday, December 14, 11AM Closed book, closed notes, clean desk Content: Textbook: Chapters 1, 2, 4-10 Java Lectures, GRASP + JUnit 35% of your

ch01.fm Page 3 Friday, June 8, 2001 11:58 AM CHAPTER 1 The Object-Oriented Paradigm Overview This chapter introduces you to the object-oriented paradigm by comparing and contrasting it with something familiar:

### COMP 401 Fall 2014 Midterm 2

COMP 401 Fall 2014 Midterm 2 I have not received nor given any unauthorized assistance in completing this exam. Signature: Name: PID: Please be sure to put your PID at the top of each page. This page left

### CS 455 Final Exam Fall 2012 [Bono] Dec. 17, 2012

Name: USC loginid (e.g., ttrojan): CS 455 Final Exam Fall 2012 [Bono] Dec. 17, 2012 There are 6 problems on the exam, with 70 points total available. There are 7 pages to the exam, including this one;

### Packages & Random and Math Classes

Packages & Random and Math Classes Quick review of last lecture September 6, 2006 ComS 207: Programming I (in Java) Iowa State University, FALL 2006 Instructor: Alexander Stoytchev Objects Classes An object

### COMP 401 Spring 2013 Midterm 1

COMP 401 Spring 2013 Midterm 1 I have not received nor given any unauthorized assistance in completing this exam. Signature: Name: PID: Please be sure to put your PID at the top of each page. This page

### University of Illinois at Urbana-Champaign Department of Computer Science. First Examination

University of Illinois at Urbana-Champaign Department of Computer Science First Examination CS 225 Data Structures and Software Principles Spring 2009 7p-9p, Tuesday, Feb 24 Name: NetID: Lab Section (Day/Time):

### Symbols. accessor properties, attributes, creating, adding properties, 8 anonymous functions, 20, 80

Index Symbols { } (braces) for function contents, 18 and object properties, 9 == (double equals operator), 5 === (triple equals operator), 5 [ ] (square brackets) for array literals, 10 for property access,

### Brief 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

### Course Text. Course Description. Course Objectives. StraighterLine Introduction to Programming in C++

Introduction to Programming in C++ Course Text Programming in C++, Zyante, Fall 2013 edition. Course book provided along with the course. Course Description This course introduces programming in C++ and

### Extensibility and Modularity in Programming Languages

FB Informatik, Programmiersprachen und Softwaretechnik Extensibility and Modularity in Programming Languages Seminar, WS 2017/18 17.10.2017 Kick-off meeting 2 Introduction INTRODUCTION Basic research questions

### CSI33 Data Structures

Outline Department of Mathematics and Computer Science Bronx Community College September 6, 2017 Outline Outline 1 Chapter 2: Data Abstraction Outline Chapter 2: Data Abstraction 1 Chapter 2: Data Abstraction

### Learning Objectives: General Description: DONE DONE Structure Chart

1 CS 215 Fall 2017 Project 2: Grade Calculator Due October 9 @ midnight Version 2.1 Published 9/24 changes in Red [DUE DATE changed 10/3] Learning Objectives: - Developing a C++ program using the Procedure-Oriented

### Programming with Java

Programming with Java Data Types & Input Statement Lecture 04 First stage Software Engineering Dep. Saman M. Omer 2017-2018 Objectives q By the end of this lecture you should be able to : ü Know rules

### JAVA MOCK TEST JAVA MOCK TEST IV

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

### Object-Oriented Design (OOD) and C++

Chapter 2 Object-Oriented Design (OOD) and C++ At a Glance Instructor s Manual Table of Contents Chapter Overview Chapter Objectives Instructor Notes Quick Quizzes Discussion Questions Projects to Assign

### Exam in TDDB84: Design Patterns,

Exam in TDDB84: Design Patterns, 2014-10-24 14-18 Information Observe the following, or risk subtraction of points: 1) Write only the answer to one task on one sheet. Use only the front side of the sheets

### Name 13-6A. 1. Which is the volume of the solid? 2. What is the volume of the solid? A 72 cm 3 B 432 cm 3 C 672 cm 3 D 864 cm 3

. Which is the volume of the solid? Quick Check. What is the volume of the solid? 8 in. 9 in. 8 in. A 96 in B 9 in C 0 in D 6 in 8 in. A 7 B C 67 D 86. Writing to Explain Carlos is an architect. He wants

### Software Product Line Engineering Lab Prof. Dr. Ralf Hahn WS2015/2016. Lab SWPLE

WS205/206 8.09.205 SWPLE General remarks The practical part of the lecture on SWPLE consists of 6 dates. Each date is mandatory. The lab sessions will be done in groups of 2 students. We will look at different

### COMP 401 Fall 2014 Midterm 2

COMP 401 Fall 2014 Midterm 2 I have not received nor given any unauthorized assistance in completing this exam. Signature: Name: PID: Please be sure to put your PID at the top of each page. This page left

### The Final Exam Paper. Duration: 2 hours Reading: 15 minutes Total marks: 65 Hurdle: 32.5

Review Lectures 1 The Final Exam Paper Duration: 2 hours Reading: 15 minutes Total marks: 65 Hurdle: 32.5 2 The Structure Sections Questions Marks Multiple Choice Short Answer Long Answer Total 22 6 3

### CS111: PROGRAMMING LANGUAGE II. Lecture 1: Introduction to classes

CS111: PROGRAMMING LANGUAGE II Lecture 1: Introduction to classes Lecture Contents 2 What is a class? Encapsulation Class basics: Data Methods Objects Defining and using a class In Java 3 Java is an object-oriented

### COP 3330 Final Exam Review

COP 3330 Final Exam Review I. The Basics (Chapters 2, 5, 6) a. comments b. identifiers, reserved words c. white space d. compilers vs. interpreters e. syntax, semantics f. errors i. syntax ii. run-time

### CS61B, Fall 1995 Midterm #2 K. Yelick

CS61B, Fall 1995 Midterm #2 K. Yelick Problem #1 a. (2 points) Show the binary search tree (BST) that would result from applying the following operations to the given BST: insert(6), insert(8), delete(10),

### ECE264 Fall 2013 Exam 1, September 24, 2013

ECE264 Fall 2013 Exam 1, September 24, 2013 In signing this statement, I hereby certify that the work on this exam is my own and that I have not copied the work of any other student while completing it.

### CS 10, Fall 2015, Professor Prasad Jayanti

Problem Solving and Data Structures CS 10, Fall 2015, Professor Prasad Jayanti Midterm Practice Problems We will have a review session on Monday, when I will solve as many of these problems as possible.

### CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE

CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE PART A UNIT I 1. Differentiate object oriented programming from procedure oriented programming. 2. Define abstraction and encapsulation. 3. Differentiate

### Inheritance (Extends) Overriding methods IS-A Vs. HAS-A Polymorphism. superclass. is-a. subclass

Inheritance and Polymorphism Inheritance (Extends) Overriding methods IS-A Vs. HAS-A Polymorphism Inheritance (semantics) We now have two classes that do essentially the same thing The fields are exactly

CS313D: ADVANCED PROGRAMMING LANGUAGE Computer Science department Lecture 4 : Classes & Objects Lecture Contents What is a class? Class definition: Data Methods Constructors Properties (set/get) objects

### Lab 2: Object-Oriented Design 12:00 PM, Jan 31, 2018

CS18 Integrated Introduction to Computer Science Fisler, Nelson Contents Lab 2: Object-Oriented Design 12:00 PM, Jan 31, 2018 1 Terminology 1 2 Class Hierarchy Diagrams 2 2.1 An Example: Animals...................................

### Lesson 9: Custom JavaScript Objects

Lesson 9: Custom JavaScript Objects Objectives Create a custom JavaScript object Define properties and methods of custom objects Create new object instances Create client-side arrays using custom objects

### Chapter 11 Object and Object- Relational Databases

Chapter 11 Object and Object- Relational Databases Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 11 Outline Overview of Object Database Concepts Object-Relational

### SAMPLE. COS 161 Algorithms in Programming. Prof. Briggs Fall 2017

COS 161 Algorithms in Programming Prof. Briggs Fall 2017 Office: Science 220, Portland Phone: 780-4723 Email: briggs@maine.edu Office hours: Tues/Thurs 1:00-2:30 and by appointment website: cs.usm.maine.edu/~briggs/webpage/fall2017.html

### Business Process Document Student Records: Automated Test Transfer

Department Responsibility/Role File Name Version Document Generation Date 11/21/2007 Date Modified 11/30/2007 Last Changed by Status SA 8.9 - Student Records, Transfer Credit Evaluation Automated Test

### ECE 3574: Applied Software Design

ECE 3574: Applied Software Design Chris Wyatt Spring 2018 Welcome to ECE 3574: Applied Software Design CRN 19016 Website: https://filebox.ece.vt.edu/~ece3574 Instructor: Chris Wyatt, clwyatt@vt.edu Today

### Computer Architecture and Engineering CS152 Quiz #5 May 2th, 2013 Professor Krste Asanović Name: <ANSWER KEY>

Computer Architecture and Engineering CS152 Quiz #5 May 2th, 2013 Professor Krste Asanović Name: This is a closed book, closed notes exam. 80 Minutes 15 pages Notes: Not all questions are

### Topic 10: Introduction to OO analysis and design

Topic 10: Introduction to OO analysis and design Learning Outcomes Upon successful completion of this topic you will be able to: design classes define class member variables and functions explain public

### OOP- 4 Templates & Memory Management Print Only Pages 1-5 Individual Assignment Answers To Questions 10 Points - Program 15 Points

OOP-4-Templates-Memory-Management-HW.docx CSCI 2320 Initials P a g e 1 If this lab is an Individual assignment, you must do all coded programs on your own. You may ask others for help on the language syntax,

### Exception Handling Generics. Amit Gupta

Exception Handling Generics Amit Gupta Announcements Project 2 deadline 18 th Feb 9 pm. TA Consulting hours Mon Thurs B146 6 9 pm Exam 1 : Feb 15 4:30 5:20 pm Project 1 grading Exception Handling Computer

### OBJECT ORIENTED SIMULATION LANGUAGE. OOSimL Reference Manual - Part 1

OBJECT ORIENTED SIMULATION LANGUAGE OOSimL Reference Manual - Part 1 Technical Report TR-CSIS-OOPsimL-1 José M. Garrido Department of Computer Science Updated November 2014 College of Computing and Software

### Ch02. True/False Indicate whether the statement is true or false.

Ch02 True/False Indicate whether the statement is true or false. 1. The base class inherits all its properties from the derived class. 2. Inheritance is an is-a relationship. 3. In single inheritance,

### ECE 264 Exam 2. 6:30-7:30PM, March 9, You must sign here. Otherwise you will receive a 1-point penalty.

ECE 264 Exam 2 6:30-7:30PM, March 9, 2011 I certify that I will not receive nor provide aid to any other student for this exam. Signature: You must sign here. Otherwise you will receive a 1-point penalty.

### ALLIANCE FRANCAISE DE CHANDIGARH DELF A1: MONDAY 8 DECEMBRE 2014 INSTRUCTIONS

DELF A1: MONDAY 8 DECEMBRE 2014 1. All candidates must reach the Alliance Française, Sector 36A, Chandigarh, by 07.15 am sharp. Please bring a photo ID proof in original.. 2. The exam will begin with Production

### TESSELLATIONS #1. All the shapes are regular (equal length sides). The side length of each shape is the same as any other shape.

TESSELLATIONS #1 Arrange for students to work in pairs during this lesson. Each pair of students needs unlined paper and two tessellation sets, one red and one blue. Ask students in each pair to share

### SRE VIDYASAAGAR HIGHER SECONDARY SCHOOL

SRE VIDYASAAGAR HIGHER SECONDARY SCHOOL Sub : Computer Science Full Portion Exam Max. Mark : 150 Class : XII - EM Time : 3.00 Hrs PART - I I. Choose the correct answer. 75 x 1 = 75 1. In Save As dialog

### CSE 70 Final Exam Fall 2009

Signature cs70f Name Student ID CSE 70 Final Exam Fall 2009 Page 1 (10 points) Page 2 (16 points) Page 3 (22 points) Page 4 (13 points) Page 5 (15 points) Page 6 (20 points) Page 7 (9 points) Page 8 (15

### Data Types The ML Type System

7 Data Types 7.2.4 The ML Type System The following is an ML version of the tail-recursive Fibonacci function introduced Fibonacci function in ML in Section 6.6.1: EXAMPLE 7.96 1. fun fib (n) = 2. let

### Copyright 2016 Ramez Elmasri and Shamkant B. Navathe

Chapter 12 Outline Overview of Object Database Concepts Object-Relational Features Object Database Extensions to SQL ODMG Object Model and the Object Definition Language ODL Object Database Conceptual

### EI, EO, EQ QUESTIONS. Expected Result: The student should obtain a score of 90 percent.

EI, EO, EQ QUESTIONS Objective: The following questions represent typical questions regarding transactions that will be on the exam. It is important that you become familiar with answering these types

### Reuse at Design Level: Design Patterns

Reuse at Design Level: Design Patterns CS 617- Lecture 17 Mon. 17 March 2008 3:30-5:00 pm Rushikesh K. Joshi Department of Computer Sc. & Engg. Indian Institute of Technology, Bombay Mumbai - 400 076 Reuse

Advanced Programming CMPS 109 Dr. Karim Sobh Computer Science Department Jack Baskin School of Engineering ksobh@cs.ucsc.edu Winter 2017 Basic Information Course Title: Advanced Programming (CMPS 109)

### TESSELLATION PROJECT DIRECTIONS

TESSELLATION PROJECT DIRECTIONS You are to create a tessellation portfolio. In addition to your portfolio, you will be making your own tessellation masterpiece. Your tessellation will be created based

### Inheritance and Encapsulation. Amit Gupta

Inheritance and Encapsulation Amit Gupta Project 1 How did it go? What did you like about it? What did you not like? What can we do to help? Suggestions Ask questions if you don t understand a concept

### COMP 401 Spring 2013 Midterm 2

COMP 401 Spring 2013 Midterm 2 I have not received nor given any unauthorized assistance in completing this exam. Signature: Name: PID: Please be sure to put your PID at the top of each page. This page

### Internet Application Developer

Internet Application Developer SUN-Java Programmer Certification Building a Web Presence with XHTML & XML 5 days or 12 evenings \$2,199 CBIT 081 J A V A P R O G R A M M E R Fundamentals of Java and Object

### For 100% Result Oriented IGNOU Coaching and Project Training Call CPD TM : ,

Course Code : MCS-032 Course Title : Object Oriented Analysis and Design Assignment Number : MCA (3)/032/Assign/2014-15 Assignment Marks : 100 Weightage : 25% Last Dates for Submission : 15th October,

NATE Exam Administration Script This script should be completely read for all of NATE s Paper Exams, which includes both NATE and ICE certification exams. Reading this script gives all candidates an equal

### BCS THE CHARTERED INSTITUTE FOR IT. BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 5 Diploma in IT. Object Oriented Programming

BCS THE CHARTERED INSTITUTE FOR IT BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 5 Diploma in IT Object Oriented Programming Examiner s Report March 2017 A1. a) Explain what is meant by the following terms:

### Introduction to the C programming language

Introduction to the C programming language Lecture 3 Giuseppe Lipari http://retis.sssup.it/~lipari Scuola Superiore Sant Anna Pisa November 21, 2008 Outline 1 Visibility, scope and lifetime 2 Structures

### Check 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