CIS 3260 Sample Final Exam Part II

Size: px
Start display at page:

Download "CIS 3260 Sample Final Exam Part II"

Transcription

1 CIS 3260 Sample Final Exam Part II Name You may now use any text or notes you may have. Computers may NOT be used. Vehicle Class VIN Model Exhibit A Make Year (date property/data type) Color (read-only property) Is-a Is-a Car Class Transmission Type Type (e.g., sedan, coupe, convertible, etc.) Motorcycle Class Handlebar Type Engine Size in CCs 11. Using Exhibit A above, create each of the three classes, their appropriate properties, and any necessary constructors (use the back of this page if necessary). (20 Points)

2 private void InitializeComponent() { this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.txtsubtotal = new System.Windows.Forms.TextBox(); this.btncalculate = new System.Windows.Forms.Button(); this.btnexit = new System.Windows.Forms.Button(); this.txtdiscountpercent = new System.Windows.Forms.TextBox(); this.txtdiscountamount = new System.Windows.Forms.TextBox(); this.txttotal = new System.Windows.Forms.TextBox(); this.suspendlayout(); label1 this.label1.autosize = true; this.label1.location = new System.Drawing.Point(11, 12); this.label1.name = "label1"; this.label1.size = new System.Drawing.Size(45, 13); this.label1.tabindex = 0; this.label1.text = "&Subtotal:";.label1.TextAlign = label2 this.label2.autosize = true; this.label2.location = new System.Drawing.Point(11, 38); this.label2.name = "label2"; this.label2.size = new System.Drawing.Size(88, 13); this.label2.tabindex = 1; this.label2.text = "Discount Percent:"; this.label2.textalign = label3 this.label3.autosize = true; this.label3.location = new System.Drawing.Point(12, 65); this.label3.name = "label3"; this.label3.size = new System.Drawing.Size(87, 13); this.label3.tabindex = 2; this.label3.text = "Discount Amount:"; this.label3.textalign = label4 this.label4.autosize = true; this.label4.location = new System.Drawing.Point(12, 91); this.label4.name = "label4"; this.label4.size = new System.Drawing.Size(30, 13); this.label4.tabindex = 3; this.label4.text = "Total:";

3 this.label4.textalign = label5 this.label5.autosize = true; this.label5.location = new System.Drawing.Point(119, 40); this.label5.name = "label5"; this.label5.size = new System.Drawing.Size(0, 0); this.label5.tabindex = 4; this.label5.textalign = label6 this.label6.autosize = true; this.label6.location = new System.Drawing.Point(119, 70); this.label6.name = "label6"; this.label6.size = new System.Drawing.Size(0, 0); this.label6.tabindex = 5; this.label6.textalign = label7 this.label7.autosize = true; this.label7.location = new System.Drawing.Point(119, 101); this.label7.name = "label7"; this.label7.size = new System.Drawing.Size(0, 0); this.label7.tabindex = 6; this.label7.textalign = txtsubtotal this.txtsubtotal.location = new System.Drawing.Point(106, 9); this.txtsubtotal.name = "txtsubtotal"; this.txtsubtotal.size = new System.Drawing.Size(100, 20); this.txtsubtotal.tabindex = 1; btncalculate this.btncalculate.location = new System.Drawing.Point(44, 122); this.btncalculate.name = "btncalculate"; this.btncalculate.size = new System.Drawing.Size(75, 23); this.btncalculate.tabindex = 2; this.btncalculate.text = "&Calculate"; this.btncalculate.click += new System.EventHandler(this.btnCalculate_Click); btnexit this.btnexit.dialogresult = System.Windows.Forms.DialogResult.Cancel; this.btnexit.location = new System.Drawing.Point(131, 122); this.btnexit.name = "btnexit"; this.btnexit.size = new System.Drawing.Size(75, 23); this.btnexit.tabindex = 3; this.btnexit.text = "E&xit";

4 } this.btnexit.click += new System.EventHandler(this.btnExit_Click); txtdiscountpercent this.txtdiscountpercent.location = new System.Drawing.Point(106, 35); this.txtdiscountpercent.name = "txtdiscountpercent"; this.txtdiscountpercent.readonly = true; this.txtdiscountpercent.size = new System.Drawing.Size(100, 20); this.txtdiscountpercent.tabindex = 10; this.txtdiscountpercent.tabstop = false; txtdiscountamount this.txtdiscountamount.location = new System.Drawing.Point(106, 62); this.txtdiscountamount.name = "txtdiscountamount"; this.txtdiscountamount.readonly = true; this.txtdiscountamount.size = new System.Drawing.Size(100, 20); this.txtdiscountamount.tabindex = 11; this.txtdiscountamount.tabstop = false; txttotal this.txttotal.location = new System.Drawing.Point(106, 88); this.txttotal.name = "txttotal"; this.txttotal.readonly = true; this.txttotal.size = new System.Drawing.Size(100, 20); this.txttotal.tabindex = 12; this.txttotal.tabstop = false; frminvoicetotal this.acceptbutton = this.btncalculate; this.autoscaledimensions = new System.Drawing.SizeF(6F, 13F); this.autoscalemode = System.Windows.Forms.AutoScaleMode.Font; this.cancelbutton = this.btnexit; this.clientsize = new System.Drawing.Size(224, 159); this.controls.add(this.txttotal); this.controls.add(this.txtdiscountamount); this.controls.add(this.txtdiscountpercent); this.controls.add(this.btnexit); this.controls.add(this.btncalculate); this.controls.add(this.txtsubtotal); this.controls.add(this.label7); this.controls.add(this.label6); this.controls.add(this.label5); this.controls.add(this.label4); this.controls.add(this.label3); this.controls.add(this.label2); this.controls.add(this.label1); this.name = "frminvoicetotal"; this.text = "Invoice Total"; this.resumelayout(false); this.performlayout(); Exhibit B

5 12. Use Exhibit B above. Exhibit B contains the actual code generated by Visual Studio when you create a presentation tier. (10 Points) a. Draw what this form will look like. Make sure you label each object with the name specific in the code in Exhibit B b. What will happen when the user hits the ENTER key? How about the ESC key? c. What event-driven methods are found on this form? 13. a) Create a class called clsinventoryitem (20 Points). (Use the next blank page for this question; i.e., parts a-d). b) Define three read-write properties: SKU, Description, and Quantity c) Create two methods one to receive new items to be added to inventory and the second to clear all the property values (i.e., zero out numerics and set text properties to NULL). d) Create and event that will be raised when the inventory level is less than 10 items. Write the code for question 13 here:

Sub To Srt Converter. This is the source code of this program. It is made in C# with.net 2.0.

Sub To Srt Converter. This is the source code of this program. It is made in C# with.net 2.0. Sub To Srt Converter This is the source code of this program. It is made in C# with.net 2.0. form1.css /* * Name: Sub to srt converter * Programmer: Paunoiu Alexandru Dumitru * Date: 5.11.2007 * Description:

More information

Blank Form. Industrial Programming. Discussion. First Form Code. Lecture 8: C# GUI Development

Blank Form. Industrial Programming. Discussion. First Form Code. Lecture 8: C# GUI Development Blank Form Industrial Programming Lecture 8: C# GUI Development Industrial Programming 1 Industrial Programming 2 First Form Code using System; using System.Drawing; using System.Windows.Forms; public

More information

this.openfiledialog = new System.Windows.Forms.OpenFileDialog(); this.label4 = new System.Windows.Forms.Label(); this.

this.openfiledialog = new System.Windows.Forms.OpenFileDialog(); this.label4 = new System.Windows.Forms.Label(); this. form.designer.cs namespace final { partial class Form1 { private System.ComponentModel.IContainer components = null; should be disposed; otherwise, false. protected override void Dispose(bool disposing)

More information

Visual Studio Windows Form Application #1 Basic Form Properties

Visual Studio Windows Form Application #1 Basic Form Properties Visual Studio Windows Form Application #1 Basic Form Properties Dr. Thomas E. Hicks Computer Science Department Trinity University Purpose 1] The purpose of this tutorial is to show how to create, and

More information

User-Defined Controls

User-Defined Controls C# cont d (C-sharp) (many of these slides are extracted and adapted from Deitel s book and slides, How to Program in C#. They are provided for CSE3403 students only. Not to be published or publicly distributed

More information

LISTING PROGRAM. //Find the maximum and minimum values in the array int maxvalue = integers[0]; //start with first element int minvalue = integers[0];

LISTING PROGRAM. //Find the maximum and minimum values in the array int maxvalue = integers[0]; //start with first element int minvalue = integers[0]; 1 LISTING PROGRAM using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace SortingApplication static class Program / / The main entry point for

More information

SMITE API Developer Guide TABLE OF CONTENTS

SMITE API Developer Guide TABLE OF CONTENTS SMITE API Developer Guide TABLE OF CONTENTS TABLE OF CONTENTS DOCUMENT CHANGE HISTORY GETTING STARTED Introduction Registration Credentials Sessions API Access Limits API METHODS & PARAMETERS APIs Connectivity

More information

ListBox. Class ListBoxTest. Allows users to add and remove items from ListBox Uses event handlers to add to, remove from, and clear list

ListBox. Class ListBoxTest. Allows users to add and remove items from ListBox Uses event handlers to add to, remove from, and clear list C# cont d (C-sharp) (many of these slides are extracted and adapted from Deitel s book and slides, How to Program in C#. They are provided for CSE3403 students only. Not to be published or publicly distributed

More information

LISTING PROGRAM. // // TODO: Add constructor code after the InitializeComponent()

LISTING PROGRAM. // // TODO: Add constructor code after the InitializeComponent() A-1 LISTING PROGRAM Form Mainform /* * Created by SharpDevelop. * User: Roni Anggara * Date: 5/17/2016 * Time: 8:52 PM * * To change this template use Tools Options Coding Edit Standard Headers. */ using

More information

1. Windows Forms 2. Event-Handling Model 3. Basic Event Handling 4. Control Properties and Layout 5. Labels, TextBoxes and Buttons 6.

1. Windows Forms 2. Event-Handling Model 3. Basic Event Handling 4. Control Properties and Layout 5. Labels, TextBoxes and Buttons 6. C# cont d (C-sharp) (many of these slides are extracted and adapted from Deitel s book and slides, How to Program in C#. They are provided for CSE3403 students only. Not to be published or publicly distributed

More information

Avoiding KeyStrokes in Windows Applications using C#

Avoiding KeyStrokes in Windows Applications using C# Avoiding KeyStrokes in Windows Applications using C# In keeping with the bcrypt.exe example cited elsewhere on this site, we seek a method of avoiding using the keypad to enter pass words and/or phrases.

More information

Classes in C# namespace classtest { public class myclass { public myclass() { } } }

Classes in C# namespace classtest { public class myclass { public myclass() { } } } Classes in C# A class is of similar function to our previously used Active X components. The difference between the two is the components are registered with windows and can be shared by different applications,

More information

ABSTRACT. In Windows Operating system, Registry is core component and it contains

ABSTRACT. In Windows Operating system, Registry is core component and it contains ABSTRACT In Windows Operating system, Registry is core component and it contains significant information which is useful for a forensic analyst. It is a repository of the central database in a hierarchal

More information

C# and.net (1) cont d

C# and.net (1) cont d C# and.net (1) cont d Acknowledgements and copyrights: these slides are a result of combination of notes and slides with contributions from: Michael Kiffer, Arthur Bernstein, Philip Lewis, Hanspeter Mφssenbφck,

More information

This is the start of the server code

This is the start of the server code This is the start of the server code using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Net; using System.Net.Sockets;

More information

Nasosoft Barcode for.net

Nasosoft Barcode for.net Nasosoft Barcode for.net Table of Contents Overview of Nasosoft Barcode for.net 1 Nasosoft Barcode for.net Features... 1 Install Nasosoft Barcode for.net... 4 System Requirements... 4 Install and Uninstall

More information

Tutorial 5 Completing the Inventory Application Introducing Programming

Tutorial 5 Completing the Inventory Application Introducing Programming 1 Tutorial 5 Completing the Inventory Application Introducing Programming Outline 5.1 Test-Driving the Inventory Application 5.2 Introduction to C# Code 5.3 Inserting an Event Handler 5.4 Performing a

More information

and event handlers Murach's C# 2012, C6 2013, Mike Murach & Associates, Inc. Slide 1

and event handlers Murach's C# 2012, C6 2013, Mike Murach & Associates, Inc. Slide 1 Chapter 6 How to code methods and event handlers Murach's C# 2012, C6 2013, Mike Murach & Associates, Inc. Slide 1 Objectives Applied 1. Given the specifications for a method, write the method. 2. Give

More information

CHAPTER 3. Writing Windows C# Programs. Objects in C#

CHAPTER 3. Writing Windows C# Programs. Objects in C# 90 01 pp. 001-09 r5ah.ps 8/1/0 :5 PM Page 9 CHAPTER 3 Writing Windows C# Programs 5 9 Objects in C# The C# language has its roots in C++, Visual Basic, and Java. Both C# and VB.Net use the same libraries

More information

Tutorial 6 Enhancing the Inventory Application Introducing Variables, Memory Concepts and Arithmetic

Tutorial 6 Enhancing the Inventory Application Introducing Variables, Memory Concepts and Arithmetic Tutorial 6 Enhancing the Inventory Application Introducing Variables, Memory Concepts and Arithmetic Outline 6.1 Test-Driving the Enhanced Inventory Application 6.2 Variables 6.3 Handling the TextChanged

More information

Visual Basic. murach s. (Chapter 2) TRAINING & REFERENCE. Mike Murach & Associates, Inc.

Visual Basic. murach s. (Chapter 2) TRAINING & REFERENCE. Mike Murach & Associates, Inc. TRAINING & REFERENCE murach s Visual Basic 2015 (Chapter 2) Thanks for downloading this chapter from Murach s Visual Basic 2015. We hope it will show you how easy it is to learn from any Murach book, with

More information

Convertor Binar -> Zecimal Rosu Alin, Calculatoare, An2 Mod de Functionare: Am creat un program, in Windows Form Application, care converteste un

Convertor Binar -> Zecimal Rosu Alin, Calculatoare, An2 Mod de Functionare: Am creat un program, in Windows Form Application, care converteste un Convertor Binar -> Zecimal Rosu Alin, Calculatoare, An2 Mod de Functionare: Am creat un program, in Windows Form Application, care converteste un numar binar, in numar zecimal. Acest program are 4 numericupdown-uri

More information

Lucrare pentru colocviu de practică

Lucrare pentru colocviu de practică Roman Radu-Alexandru Calculatoare an II Lucrare pentru colocviu de practică Descriere: Aplicatia are ca scop functionalitatea unui decodificator si a unui codificator. Converteste un numar din zecimal

More information

Lampiran B. Program pengendali

Lampiran B. Program pengendali Lampiran B Program pengendali #pragma once namespace serial using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms;

More information

Windows Forms in Action by Erik Brown Chapter 3. Copyright 2006 Manning Publications

Windows Forms in Action by Erik Brown Chapter 3. Copyright 2006 Manning Publications Windows Forms in Action by Erik Brown Chapter 3 Copyright 2006 Manning Publications brief contents Part 1 Hello Windows Forms 1 1 Getting started with Windows Forms 3 2 Getting started with Visual Studio

More information

In order to create your proxy classes, we have provided a WSDL file. This can be located at the following URL:

In order to create your proxy classes, we have provided a WSDL file. This can be located at the following URL: Send SMS via SOAP API Introduction You can seamlessly integrate your applications with aql's outbound SMS messaging service via SOAP using our SOAP API. Sending messages via the SOAP gateway WSDL file

More information

namespace Tst_Form { private: /// <summary> /// Required designer variable. /// </summary> System::ComponentModel::Container ^components;

namespace Tst_Form { private: /// <summary> /// Required designer variable. /// </summary> System::ComponentModel::Container ^components; Exercise 9.3 In Form1.h #pragma once #include "Form2.h" Add to the beginning of Form1.h #include #include For srand() s input parameter namespace Tst_Form using namespace System; using

More information

Operatii pop si push-stiva

Operatii pop si push-stiva Operatii pop si push-stiva Aplicatia realizata in Microsoft Visual Studio C++ 2010 permite simularea operatiilor de introducere si extragere a elementelor dintr-o structura de tip stiva.pentru aceasta

More information

$Date = Get-Date -uformat %A $Name = Read-Host Please enter your name Write-Host Hello $Name, today is $Date

More information

Windows Mobile Device Display Full VGA versus Quarter VGA

Windows Mobile Device Display Full VGA versus Quarter VGA What is VGA? Windows Mobile Device Display Full VGA versus Quarter VGA VGA stands for Video Graphics Array, and was developed by IBM as the standard for the displays of their computers. This included a

More information

Inheriting Windows Forms with Visual C#.NET

Inheriting Windows Forms with Visual C#.NET Inheriting Windows Forms with Visual C#.NET Overview In order to understand the power of OOP, consider, for example, form inheritance, a new feature of.net that lets you create a base form that becomes

More information

Towards More Comprehensive Information Retrieval Systems: Entity Extraction Using XSLT

Towards More Comprehensive Information Retrieval Systems: Entity Extraction Using XSLT UNF Digital Commons UNF Theses and Dissertations Student Scholarship 2005 Towards More Comprehensive Information Retrieval Systems: Entity Extraction Using XSLT Chris A. McManigal University of North Florida

More information

BackgroundWorker Component Overview 1 Multithreading with the BackgroundWorker Component 3 Walkthrough Running an Operation in the Background 10 How

BackgroundWorker Component Overview 1 Multithreading with the BackgroundWorker Component 3 Walkthrough Running an Operation in the Background 10 How BackgroundWorker Component Overview 1 Multithreading with the BackgroundWorker Component 3 Walkthrough Running an Operation in the Background 10 How to Download a File in the Background 15 How to Implement

More information

REVIEW EXERCISES. Draw an inheritance diagram that shows the relationships between these classes.

REVIEW EXERCISES. Draw an inheritance diagram that shows the relationships between these classes. Review Exercises 367 11. A derived-class pointer can be converted to a base-class pointer. 12. When a virtual function is called, the version belonging to the actual type of the implicit parameter is invoked.

More information

Exam 1 - (20 points)

Exam 1 - (20 points) Exam 1 - (20 points) Answer all of the following questions. READ EACH QUESTION CAREFULLY. Fill the correct bubble on your scantron sheet. Each correct answer is worth 1 point (unless otherwise stated).

More information

Quick Guide for the ServoWorks.NET API 2010/7/13

Quick Guide for the ServoWorks.NET API 2010/7/13 Quick Guide for the ServoWorks.NET API 2010/7/13 This document will guide you through creating a simple sample application that jogs axis 1 in a single direction using Soft Servo Systems ServoWorks.NET

More information

Visual Studio.NET enables quick, drag-and-drop construction of form-based applications

Visual Studio.NET enables quick, drag-and-drop construction of form-based applications Visual Studio.NET enables quick, drag-and-drop construction of form-based applications Event-driven, code-behind programming Visual Studio.NET WinForms Controls Part 1 Event-driven, code-behind programming

More information

Classes and Objects. Andrew Cumming, SoC. Introduction to.net. Bill Buchanan, SoC. W.Buchanan (1)

Classes and Objects. Andrew Cumming, SoC. Introduction to.net. Bill Buchanan, SoC. W.Buchanan (1) Classes and Objects Andrew Cumming, SoC Bill Buchanan, SoC W.Buchanan (1) Course Outline 11-12am 12-1pm: 1-1:45pm 1:45-2pm:, Overview of.net Framework,.NET Components, C#. C# Language Elements Classes,

More information

Visual Basic 2008 Anne Boehm

Visual Basic 2008 Anne Boehm TRAINING & REFERENCE murach s Visual Basic 2008 Anne Boehm (Chapter 3) Thanks for downloading this chapter from Murach s Visual Basic 2008. We hope it will show you how easy it is to learn from any Murach

More information

#pragma comment(lib, "irrklang.lib") #include <windows.h> namespace SuperMetroidCraft {

#pragma comment(lib, irrklang.lib) #include <windows.h> namespace SuperMetroidCraft { Downloaded from: justpaste.it/llnu #pragma comment(lib, "irrklang.lib") #include namespace SuperMetroidCraft using namespace System; using namespace System::ComponentModel; using namespace

More information

Classes and Objects. Andrew Cumming, SoC. Introduction to.net. Bill Buchanan, SoC. W.Buchanan (1)

Classes and Objects. Andrew Cumming, SoC. Introduction to.net. Bill Buchanan, SoC. W.Buchanan (1) Classes and Objects Andrew Cumming, SoC Introduction to.net Bill Buchanan, SoC W.Buchanan (1) Course Outline Introduction to.net Day 1: Morning Introduction to Object-Orientation, Introduction to.net,

More information

FISHER AUTO PARTS CATALOG INSTRUCTION SHEET

FISHER AUTO PARTS CATALOG INSTRUCTION SHEET FISHER AUTO PARTS CATALOG INSTRUCTION SHEET LOGIN Login at www.federatedlink.com SEARCH BY VEHICLE You can select the vehicle application (Car, HD, Motorcycle, ATV, etc) using the drop down box. Then choose

More information

UNIT III APPLICATION DEVELOPMENT ON.NET

UNIT III APPLICATION DEVELOPMENT ON.NET UNIT III APPLICATION DEVELOPMENT ON.NET Syllabus: Building Windows Applications, Accessing Data with ADO.NET. Creating Skeleton of the Application Select New->Project->Visual C# Projects->Windows Application

More information

Midterm Exam 5 April 20, 2015

Midterm Exam 5 April 20, 2015 Midterm Exam 5 April 20, 2015 Name: Section 1: Multiple Choice Questions (24 pts total, 3 pts each) Q1: Which of the following is not a kind of inheritance in C++? a. public. b. private. c. static. d.

More information

In this exercise you will gain hands-on experience using STK X to embed STK functionality in a container application created with C#.

In this exercise you will gain hands-on experience using STK X to embed STK functionality in a container application created with C#. STK X Tutorial - C# In this exercise you will gain hands-on experience using STK X to embed STK functionality in a container application created with C#. CONTENTS TUTORIAL SOURCE CODE... 1 CREATE THE PROJECT...

More information

Web Services in.net (2)

Web Services in.net (2) Web Services in.net (2) These slides are meant to be for teaching purposes only and only for the students that are registered in CSE4413 and should not be published as a book or in any form of commercial

More information

CIT-590 Final Exam. Name: Penn Key (Not ID number): If you write a number above, you will lose 1 point

CIT-590 Final Exam. Name: Penn Key (Not ID number): If you write a number above, you will lose 1 point 1 CIT-590 Final Exam Name: Penn Key (Not ID number): If you write a number above, you will lose 1 point Instructions: You will have two hours to complete this exam. If you finish in the last 15 minutes,

More information

Writing a Windows Form Application For.NET Framework Using C# By Naveen K Kohli

Writing a Windows Form Application For.NET Framework Using C# By Naveen K Kohli Page 1 of 7 Writing a Windows Form Application For.NET Framework Using C# By Naveen K Kohli A tutorial on writing Windows Forms application using C# Beginner VC7,.NET SDK,.NET,.NET SDK Posted 25 Nov 2000

More information

BSc. (Hons.) Software Engineering. Examinations for / Semester 2

BSc. (Hons.) Software Engineering. Examinations for / Semester 2 BSc. (Hons.) Software Engineering Cohort: BSE/04/PT Examinations for 2005-2006 / Semester 2 MODULE: OBJECT ORIENTED PROGRAMMING MODULE CODE: BISE050 Duration: 2 Hours Reading Time: 5 Minutes Instructions

More information

SAMPLE EXAM Second Exam Computer Programming 326 Dr. St. John Lehman College City University of New York Thursday, 11 November 2010

SAMPLE EXAM Second Exam Computer Programming 326 Dr. St. John Lehman College City University of New York Thursday, 11 November 2010 SAMPLE EXAM Second Exam Computer Programming 326 Dr. St. John Lehman College City University of New York Thursday, 11 November 2010 NAME (Printed) NAME (Signed) E-mail Exam Rules Show all your work. Your

More information

Import Specifications

Import Specifications Telestream provides standard data interfaces that allow the automation of all data entry. Telestream can link-up with all major fueling and maintenance systems. All data imports must be a comma delimited

More information

COMP 401 Spring 2014 Midterm 1

COMP 401 Spring 2014 Midterm 1 COMP 401 Spring 2014 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

More information

2. [20] Suppose we start declaring a Rectangle class as follows:

2. [20] Suppose we start declaring a Rectangle class as follows: 1. [8] Create declarations for each of the following. You do not need to provide any constructors or method definitions. (a) The instance variables of a class to hold information on a Minesweeper cell:

More information

Capturing the Mouse. Dragging Example

Capturing the Mouse. Dragging Example Capturing the Mouse In order to allow the user to drag something, you need to keep track of whether the mouse is "down" or "up". It is "down" from the MouseDown event to the subsequent MouseUp event. What

More information

Name: Lindsay Haley Assignment: Ch.6 case 9. Design Steps of the Program Development Life Cycle

Name: Lindsay Haley Assignment: Ch.6 case 9. Design Steps of the Program Development Life Cycle Name: Lindsay Haley Assignment: Ch.6 case 9 Design Steps of the Program Development Life Cycle Requirements Document Date Submitted: October 15, 2013 Application Title: Purpose: Program Procedures: Algorithms,

More information

CROWDMARK. Examination Midterm. Spring 2017 CS 350. Closed Book. Page 1 of 30. University of Waterloo CS350 Midterm Examination.

CROWDMARK. Examination Midterm. Spring 2017 CS 350. Closed Book. Page 1 of 30. University of Waterloo CS350 Midterm Examination. Times: Thursday 2017-06-22 at 19:00 to 20:50 (7 to 8:50PM) Duration: 1 hour 50 minutes (110 minutes) Exam ID: 3520593 Please print in pen: Waterloo Student ID Number: WatIAM/Quest Login Userid: Sections:

More information

Common Misunderstandings from Exam 1 Material

Common Misunderstandings from Exam 1 Material Common Misunderstandings from Exam 1 Material Kyle Dewey Stack and Heap Allocation with Pointers char c = c ; char* p1 = malloc(sizeof(char)); char** p2 = &p1; Where is c allocated? Where is p1 itself

More information

Common Dialog & User Control. Nguyễn Văn Phong

Common Dialog & User Control. Nguyễn Văn Phong Common Dialog & User Control Nguyễn Văn Phong Nội Dung Giới thiệu Common Dialog a OpenFileDialog a SaveFileDialog a FontDialog a ColorDialog a MessageBox a User Control Common Dialog Các dialog thường

More information

Practice Midterm 2 CMPS 12A Fall 2017

Practice Midterm 2 CMPS 12A Fall 2017 1.) Determine the output of the following program. public class Question1{ Car x = new Car("gray", 100000); Car y = new Car("red", 125000); Car z = new Car("blue", 150000); x = y; roadtrip(x); z = x; System.out.println(z.mileage);

More information

This exam is open book. Each question is worth 3 points.

This exam is open book. Each question is worth 3 points. This exam is open book. Each question is worth 3 points. Page 1 / 15 Page 2 / 15 Page 3 / 12 Page 4 / 18 Page 5 / 15 Page 6 / 9 Page 7 / 12 Page 8 / 6 Total / 100 (maximum is 102) 1. Are you in CS101 or

More information

CSC 330 Object-Oriented Programming. Encapsulation

CSC 330 Object-Oriented Programming. Encapsulation CSC 330 Object-Oriented Programming Encapsulation Implementing Data Encapsulation using Properties Use C# properties to provide access to data safely data members should be declared private, with public

More information

Tutorial 19 - Microwave Oven Application Building Your Own Classes and Objects

Tutorial 19 - Microwave Oven Application Building Your Own Classes and Objects 1 Tutorial 19 - Microwave Oven Application Building Your Own Classes and Objects Outline 19.1 Test-Driving the Microwave Oven Application 19.2 Designing the Microwave Oven Application 19.3 Adding a New

More information

Computer Science II. OO Programming Classes Scott C Johnson Rochester Institute of Technology

Computer Science II. OO Programming Classes Scott C Johnson Rochester Institute of Technology Computer Science II OO Programming Classes Scott C Johnson Rochester Institute of Technology Outline Object-Oriented (OO) Programming Review Initial Implementation Constructors Other Standard Behaviors

More information

SUN Sun Certified Associate for the Java Platform.

SUN Sun Certified Associate for the Java Platform. SUN 310-019 Sun Certified Associate for the Java Platform http://killexams.com/exam-detail/310-019 QUESTION: 234 Given: 1. abstract class A { 2. class B { 3. interface C { 4. interface D { 5. // insert

More information

COMP 401 Spring 2013 Midterm 2

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

More information

SYSC Come to the PASS workshop with your mock exam complete. During the workshop you can work with other students to review your work.

SYSC Come to the PASS workshop with your mock exam complete. During the workshop you can work with other students to review your work. It is most beneficial to you to write this mock midterm UNDER EXAM CONDITIONS. This means: Complete the Exam in 3 hour(s). Work on your own. Keep your notes and textbook closed. Attempt every question.

More information

PASS4TEST IT 인증시험덤프전문사이트

PASS4TEST IT 인증시험덤프전문사이트 PASS4TEST IT 인증시험덤프전문사이트 http://www.pass4test.net 일년동안무료업데이트 Exam : 1z0-809 Title : Java SE 8 Programmer II Vendor : Oracle Version : DEMO Get Latest & Valid 1z0-809 Exam's Question and Answers 1 from

More information

Objectives. Introduce static keyword examine syntax describe common uses

Objectives. Introduce static keyword examine syntax describe common uses Static Objectives Introduce static keyword examine syntax describe common uses 2 Static Static represents something which is part of a type rather than part of an object Two uses of static field method

More information

ESC101 : Fundamental of Computing

ESC101 : Fundamental of Computing ESC101 : Fundamental of Computing End Semester Exam 19 November 2008 Name : Roll No. : Section : Note : Read the instructions carefully 1. You will lose 3 marks if you forget to write your name, roll number,

More information

Introduction to.net. Andrew Cumming, SoC. Introduction to.net. Bill Buchanan, SoC. W.Buchanan (1)

Introduction to.net. Andrew Cumming, SoC. Introduction to.net. Bill Buchanan, SoC. W.Buchanan (1) Andrew Cumming, SoC Bill Buchanan, SoC W.Buchanan (1) Course Outline 11-12am 12-1pm: 1-1:45pm 1:45-2pm:, Overview of.net Framework,.NET Components, C#. C# Language Elements Classes, Encapsulation, Object-Orientation,

More information

Sample file. Practice Exam One COMPUTER SCIENCE A SECTION I. Directions: Determine the answer to each of the following questions or incomplete

Sample file. Practice Exam One COMPUTER SCIENCE A SECTION I. Directions: Determine the answer to each of the following questions or incomplete Practice Exam One / Level A Diagnostic Test 5 Practice Exam One COMPUTER SCIENCE A SECTION I Time 1 hour and 15 minutes Number of questions 40 Percent of total grade 50 Directions: Determine the answer

More information

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

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

More information

CIS 190: C/C++ Programming. Lecture 11 Polymorphism

CIS 190: C/C++ Programming. Lecture 11 Polymorphism CIS 190: C/C++ Programming Lecture 11 Polymorphism 1 Outline Review of Inheritance Polymorphism Limitations Virtual Functions Abstract Classes & Function Types Virtual Function Tables Virtual Destructors/Constructors

More information

COMP 401 Spring 2013 Midterm 2

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

More information

Programming 1 Semester 1, 2014 Assignment 3

Programming 1 Semester 1, 2014 Assignment 3 Programming 1 Semester 1, 2014 Assignment 3 Authors: Daryl D Souza, Craig Hamilton Total raw marks: 150 Assignment weight: 20% NOTE: This assignment is to be undertaken individually no group work is permitted.

More information

Help Manual for A3/TT IMMO Key Function.

Help Manual for A3/TT IMMO Key Function. Help Manual for A3/TT IMMO Key Function. Connect OBD adapter to the transponder adapter first, then connect to the machine. PICTURE 1 Connect OBD adapter to the diagnostic socket of the car, choose IMMO

More information

Eyes of the Dragon - XNA Part 33 Non-Player Character Conversations

Eyes of the Dragon - XNA Part 33 Non-Player Character Conversations Eyes of the Dragon - XNA Part 33 Non-Player Character Conversations I'm writing these tutorials for the XNA 4.0 framework. Even though Microsoft has ended support for XNA it still runs on all supported

More information

DieselPro User Manual

DieselPro User Manual DieselPro User Manual Getting started Download and install DieselPro 10-day Evaluation package from one of these sites: www.acctpro.net www.dieselpro.biz www.dataimagesoftware.net www.topspeedsoftware.com

More information

JAYARAM. Department of Information Technology QUESTION BANK UNIT I BASICS OF C# Integer real single character string

JAYARAM. Department of Information Technology QUESTION BANK UNIT I BASICS OF C# Integer real single character string Estd: 1994 JAYARAM COLLEGE OF ENGINEERING AND TECHNOLOGY Pagalavadi, Tiruchirappalli - 621014 (An approved by AICTE and Affiliated to Anna University) ISO 9001:2000 Certified Department of Information

More information

Object Oriented Programming 2012/13. Final Exam June 27th, 2013

Object Oriented Programming 2012/13. Final Exam June 27th, 2013 Object Oriented Programming 2012/13 Final Exam June 27th, 2013 Directions (read carefully): CLEARLY print your name and ID on every page. The exam contains 8 pages divided into 4 parts. Make sure you have

More information

CS250 Final Review Questions

CS250 Final Review Questions CS250 Final Review Questions The following is a list of review questions that you can use to study for the final. I would first make sure that you review all previous exams and make sure you fully understand

More information

Verifying Coverage for PEMCO glass claims using Claimsoffice.com. From the main page (www.claimsoffice.com), click the Login tab.

Verifying Coverage for PEMCO glass claims using Claimsoffice.com. From the main page (www.claimsoffice.com), click the Login tab. Verifying Coverage for PEMCO glass claims using Claimsoffice.com From the main page (www.claimsoffice.com), click the Login tab. On the login page, enter your username and password. From the main page,

More information

CIS Fall Data Structures Midterm exam 10/16/2012

CIS Fall Data Structures Midterm exam 10/16/2012 CIS 2168 2012 Fall Data Structures Midterm exam 10/16/2012 Name: Problem 1 (30 points) 1. Suppose we have an array implementation of the stack class, with ten items in the stack stored at data[0] through

More information

MAZDA Application Purchase and Installation Guide

MAZDA Application Purchase and Installation Guide MAZDA Application Purchase and Installation Guide NOTE: This process is subject to change w/o notice. Go to www.mazdatechinfo.com Move mouse over Mazda Module Reprogramming and then click on PCM Reprogramming

More information

Starting Visual Studio 2005

Starting Visual Studio 2005 Starting Visual Studio 2005 1 Startup Language 1. Select Language 2. Start Visual Studio If this is your first time starting VS2005 after installation, you will probably see this screen. It is asking you

More information

CIS Introduction to Computer Programming Spring Exam 2

CIS Introduction to Computer Programming Spring Exam 2 CIS 110 - Introduction to Computer Programming Spring 2017 - Exam 2 Name: Recitation (e.g. 201): PennKey (e.g. eeaton): My signature below certifies that I have complied with the University of Pennsylvania

More information

Assoc. Prof. Dr. Marenglen Biba. (C) 2010 Pearson Education, Inc. All rights reserved.

Assoc. Prof. Dr. Marenglen Biba. (C) 2010 Pearson Education, Inc. All rights reserved. Assoc. Prof. Dr. Marenglen Biba Laboratory Session: Exercises on classes Analogy to help you understand classes and their contents. Suppose you want to drive a car and make it go faster by pressing down

More information

Name Section Number. CS210 Exam #3 *** PLEASE TURN OFF ALL CELL PHONES*** Practice

Name Section Number. CS210 Exam #3 *** PLEASE TURN OFF ALL CELL PHONES*** Practice Name Section Number CS210 Exam #3 *** PLEASE TURN OFF ALL CELL PHONES*** Practice All Sections Bob Wilson OPEN BOOK / OPEN NOTES: You will have all 90 minutes until the start of the next class period.

More information

Chapter 12: Using Controls

Chapter 12: Using Controls Chapter 12: Using Controls Examining the IDE s Automatically Generated Code A new Windows Forms project has been started and given the name FormWithALabelAndAButton A Label has been dragged onto Form1

More information

Framework Fundamentals

Framework Fundamentals Questions Framework Fundamentals 1. Which of the following are value types? (Choose all that apply.) A. Decimal B. String C. System.Drawing.Point D. Integer 2. Which is the correct declaration for a nullable

More information

How to place an order on CSI s online store

How to place an order on CSI s online store How to place an order on CSI s online store Store website http://store.csionline.org/ 1. Click on account, then log in 2. Create an account or LOGIN using your currently registered email and password.

More information

Admin Guide Verizon Auto Share Platform.

Admin Guide Verizon Auto Share Platform. Admin Guide Verizon Auto Share Platform. Verizon Auto Share Platform Admin Guide Contents Verizon Auto Share Platform Admin Guide...2 1.1 Initial Setup...4 2.1 Users and Roles...5 2.2 Manage Company Users...6

More information

USB Logic Analyzer Shom Bandopadhaya Advisor: Dr. James H. Irwin

USB Logic Analyzer Shom Bandopadhaya Advisor: Dr. James H. Irwin Shom Bandopadhaya: USB Logic Analyzer October 13, 2005 USB Logic Analyzer Shom Bandopadhaya Advisor: Dr. James H. Irwin Introduction: The goal of this project is to continue design for a USB logic analyzer

More information

Dynamic Design Patterns

Dynamic Design Patterns Dynamic Design Patterns Adaptive Design in Uncertain Diverse Environment Stephen Wang This book is for sale at http://leanpub.com/dynamic_design_patterns This version was published on 2013-08-22 This is

More information

How-To Guide: Time and Expense. Track and invoice your pay and expenses for any job you work through Modio. Time and Expense dashboard

How-To Guide: Time and Expense. Track and invoice your pay and expenses for any job you work through Modio. Time and Expense dashboard How-To Guide: Time and Expense Time and Expense dashboard From the Dashboard of your profile, click on the Time and Expense tab. Here you will see a list of reports for each facility at which you are working

More information

CS 455 Final Exam Spring 2018 [Bono] May 8, 2018

CS 455 Final Exam Spring 2018 [Bono] May 8, 2018 Name: USC NetID (e.g., ttrojan): CS 455 Final Exam Spring 2018 [Bono] May 8, 2018 There are 9 problems on the exam, with 74 points total available. There are 12 pages to the exam (6 pages double-sided),

More information

DotNetProcessing Documentation

DotNetProcessing Documentation DotNetProcessing Documentation DotNetProcessing Documentation Table of Contents DotNetProcessing Documentation...1 Jonatan Rubio...1 Santi Serrano...1 I. User Documentation...3 Chapter 1. Introduction...4

More information

EXAM Microsoft MTA Software Development Fundamentals. Buy Full Product.

EXAM Microsoft MTA Software Development Fundamentals. Buy Full Product. Microsoft EXAM - 98-361 Microsoft MTA Software Development Fundamentals Buy Full Product http://www.examskey.com/98-361.html Examskey Microsoft 98-361 exam demo product is here for you to test the quality

More information

COMP 401 Spring 2013 Midterm 1

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

More information

SAMPLE EXAM Exam 2 Computer Programming 230 Dr. St. John Lehman College City University of New York Thursday, 5 November 2009

SAMPLE EXAM Exam 2 Computer Programming 230 Dr. St. John Lehman College City University of New York Thursday, 5 November 2009 SAMPLE EXAM Exam 2 Computer Programming 230 Dr. St. John Lehman College City University of New York Thursday, 5 November 2009 NAME (Printed) NAME (Signed) E-mail Exam Rules Show all your work. Your grade

More information