Philadelphia University Faculty of Engineering

Similar documents
An Introduction to ADO.Net

PLATFORM TECHNOLOGY UNIT-4

Create a Windows Application that Reads- Writes PI Data via PI OLEDB. Page 1

B Nagaraju

Advanced Programming Language (630501) Fall 2011/2012 Lecture Notes # 10. Handling Events. WML Events and the <onevent> Tag

.NET data providers 5.1 WHAT IS A DATA PROVIDER?

It is the primary data access model for.net applications Next version of ADO Can be divided into two parts. Resides in System.

Industrial Programming

Data Source. Application. Memory

Data Access Standards. ODBC, OLE DB, and ADO Introduction. History of ODBC. History of ODBC 4/24/2016

EVALUATION COPY. Unauthorized reproduction or distribution is prohibited. Table of Contents (Detailed)

Accessing Databases 7/6/2017 EC512 1

iseries Access in the.net World

Introducing.NET Data Management

Contents. Chapter 1 Introducing ADO.NET...1. Acknowledgments...xiii. About the Authors...xv. Introduction...xix

LẬP TRÌNH TRÊN MÔI TRƯỜNG WINDOWS *** ADO.NET

AUTHENTICATED WEB MANAGEMENT SYSTEM

Visual Basic.NET Complete Sybex, Inc.

Reading From Databases

ADO.NET for Beginners

BIS4430 Web-based Information Systems Management. Unit 11 [BIS4430, LU11 version1.0, E.M, 09/07)]

ADO.NET in Visual Basic

Developing Web Applications Using Microsoft Visual Studio 2008 SP1

.NET and DB2 united with IBM DB2.NET Data Provider Objectives :.NET ADO.NET DB2 and ADO.NET DB2 - ADO.NET applications

A Programmer s Guide to ADO.NET in C# MAHESH CHAND

III BSc(Information Technology)[ ] Batch Semester VI CORE: FRAMEWORK TECHNOLOGY-612B Multiple Choice Questions.

Data Access. Outline. Relational Databases ADO.NET Overview ADO.NET Classes 5/29/2013

Deck-level event bindings and Tables

ADO.NET Using Visual Basic 2005 Table of Contents

CHAPTER 1 INTRODUCING ADO.NET

Mobile MOUSe ASP.NET FOR DEVELOPERS PART 1 ONLINE COURSE OUTLINE

Mobile MOUSe ADO.NET FOR DEVELOPERS PART 1 ONLINE COURSE OUTLINE

ADO.NET from 3,048 meters

Philadelphia University Student Name: Student Number:

Copy Datatable Schema To Another Datatable Vb.net

1 string start = DateTime.Now.ToShortDateString(); 2 string end = DateTime.Now.AddDays(5).ToShortDateString(); 3 OleDbConnection conn2 =

Building Datacentric Applications

LẬP TRÌNH TRÊN MÔI TRƯỜNG WINDOWS ADO.NET

DE-2310 Developing Web Applications Using Microsoft Visual Studio 2008 SP1

ALPHAPRIMETECH 112 New South Road, Hicksville, NY 11801

Building Database Applications with ADO.NET

Marking Scheme. Examination Paper Department of CE. Module: Microprocessors (630313)

Marking Scheme. Examination Paper. Module: Microprocessors (630313)

DE Introduction to Web Development with Microsoft Visual Studio 2010

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

Philadelphia University Student Name: Student Number:

ADO.NET ADO.NET. Mô hình.net Framework. ActiveX Data Object.NET (ADO.NET) Công nghệ của MS trên.net Framework ADO.NET

overview of, ASPNET User, Auto mode, 348 AutoIncrement property, 202 AutoNumber fields, 100 AVG function, 71

Oracle Rdb Technical Forums

Faculty of Engineering Student Number:

> ADO.NET: ActiveX Data Objects for.net, set of components used to interact with any DB/ XML docs

Marking Scheme. Examination Paper Department of CE. Module: Microprocessors (630313)

ADO.NET.NET Data Access and Manipulation Mechanism. Nikita Gandotra Assistant Professor, Department of Computer Science & IT

UNIVERSITY OF THE FREE STATE MAIN & QWA-QWA CAMPUS RIS 124 DEPARTMENT: COMPUTER SCIENCE AND INFORMATICS CONTACT NUMBER:

Wildermuth_Index.qxd 10/9/02 3:22 PM Page 347 { Kirby Mountain Composition & Graphics } Index

DISCIPLINE SPECIFIC 4: WIRELESS APPLICATION PROTOCOL Semester : VI Course Code : 16UCS504 Syllabus UNIT II: The Wireless Markup Language: Overview

III BCA 'A' and 'B' [ ] Semester VI Core: WEB TECHNOLOGY - 606B Multiple Choice Questions.

ASP.NET 2.0 p. 1.NET Framework 2.0 p. 2 ASP.NET 2.0 p. 4 New Features p. 5 Special Folders Make Integration Easier p. 5 Security p.

Sales Management Portal

.NET Connector. (MS Windows)

PESIT- Bangalore South Campus Hosur Road (1km Before Electronic city) Bangalore

UNIT III. Variables: This element supports the following attributes: Attribute Value Description. name string Sets the name of the variable

TS: Microsoft.NET Framework 3.5, Windows Forms Application Development

Index. Numbers 1:1 (one-to-one) cardinality ratio, 29 1NF (first normal form), 33 2NF (second normal form), NF (third normal form), 34

19.5 ADO.NET Object Models

عنوان مقاله : خواندن و نوشتن محتوای فایل های Excel بدون استفاده ازAutomation Excel تهیه وتنظیم کننده : مرجع تخصصی برنامه نویسان

BUILDING APPLICATIONS USING C# AND.NET FRAMEWORK (OBJECT-ORIENTED PROGRAMMING, X428.6)

10267 Introduction to Web Development with Microsoft Visual Studio 2010

Migrate Your Skills to Microsoft.NET Framework 2.0 and 3.0 using Visual Studio 2005 (C#)

Introduction to Web Development with Microsoft Visual Studio 2010

ASP.NET Web Forms Programming Using Visual Basic.NET

Marking Scheme. Examination Paper. Module: Microprocessors (630313)

HoleShot Motor Sports Web site

Chapter 8. ADO.NET Data Containers... 1 Data Adapters... 1 In-Memory Data Container Objects Conclusion... 35

ADO.NET Overview. Connected Architecture. SqlConnection, SqlCommand, DataReader class. Disconnected Architecture

13In this chapter, you will:

CSharp. Microsoft. UPGRADE- Transition your MCPD Web Developer Skills to MCPD ASP.NET Developer 3.5

B. V. Patel Institute of Business Management, Computer and Information Technology

UNIT-3. Prepared by R.VINODINI 1

"Charting the Course... MOC A Introduction to Web Development with Microsoft Visual Studio Course Summary

Developing WML applications using PHP

OVERVIEW ENVIRONMENT PROGRAM STRUCTURE BASIC SYNTAX DATA TYPES TYPE CONVERSION

Special Characters Numbers 467

STEP 1: CREATING THE DATABASE

Introduction to Web Development with Microsoft Visual Studio 2010

.Net Interview Questions

Implementation on Curriculum Management System based on.net Li Ma

Working with Data in ASP.NET 2.0 :: Using Existing Stored Procedures for the Typed DataSet s TableAdapters Introduction

Dr.Qadri Hamarsheh. Overview of ASP.NET. Advanced Programming Language (630501) Fall 2011/2012 Lectures Notes # 17. Data Binding.

Lecture 10: Database. Lisa (Ling) Liu

Saikat Banerjee Page 1

The Complete Reference To Professional SOA With Visual Studio 2005 (C# & VB 2005).NET 3.0

B.E /B.TECH DEGREE EXAMINATIONS,

Working with Data in ASP.NET 2.0 :: Wrapping Database Modifications within a Transaction Introduction

.NET-6Weeks Project Based Training

Student Faculty Information System. PeopleSoft Comm Gen. Screen Shots From

Mobile Station Execution Environment (MExE( MExE) Developing web applications for PDAs and Cellphones. WAP (Wireless Application Protocol)

Web based of electronic document management systems

web.config Register.aspx را بصورت زیر بنویسید.

2310C VB - Developing Web Applications Using Microsoft Visual Studio 2008 Course Number: 2310C Course Length: 5 Days

Transcription:

Philadelphia University Faculty of Engineering Marking Scheme Examination Paper BSc CE Advanced Programming Language (630521) Final Exam Second semester Date: 30/05/2012 Section 1 Weighting 40% of the module total Lecturer: Coordinator: Internal Examiner: Dr. Qadri Hamarsheh Dr. Qadri Hamarsheh Dr. Emad Khalaf

Marking Scheme Advanced Programming Language (630521) The presented exam questions are organized to overcome course material through 4 questions. The all questions are compulsory requested to be answered. Marking Assignments Question 1 This question is attributed with 10 marks if answered properly; the answers are as following: 1. NET's collection of prepackaged classes and methods is called ---------- a) WCL b) PPCM c) NCL d) FCL 2. is a mechanism for converting value data types into reference data types a) Casting b) Boxing c) Conversion d) Transform 3. What is the use of the WebForm.aspx.cs file? a) Holds the C# code for the codebehind module. b) Holds the control configuration for the form. c) Holds the C# code that will be translated into HTML on the client. d) Holds the HTML code for the form. 4. The first parameter of the event handler refers to the object that carries information about a) Event b) Events Counter c) The control that triggered the event d) None of above 5. What is the purpose of the following code segment? if (!IsPostBack ) List1.Items.Add("C#") a) To populate the DataAdapter every time the web page is displayed. b) To populate the DataSet every time the web page is displayed. c) To populate the DataSet the first time the web page is displayed. d) To populate the DataAdapter the first time the web page is displayed. 6. The attribute that must be specified with all ASP.NET Mobile controls, and the <form> element as well is a) Text b) Runat c) ID d) BackColor 7. The maximum number of command objects that the DataAdapter can contain is a) 1 b) 2 c) 3 d) 4 8. The CommandBuilder will take the syntax from DataAdapter and generate the corresponding objects. a) UpdateCommand, InsertCommand, and DeleteCommand b) SelectCommand, InsertCommand, and DeleteCommand c) UpdateCommand, InsertCommand and SelectCommand d) UpdateCommand, DeleteCommand and SelectCommand 9. A data provider namespace created to get general access to different data sources is a) System.Data.ODBC b) System.Data.OleDb c) System.Data d) System.Data.SqlClient 10. NET Data Managed Provider contains the following objects. a) DataReader, DataAdapter, Connection and DataSet. b) DataReader, Command, Connection and DataSet. c) DataReader, DataAdapter, Command and DataSet. d) DataReader, DataAdapter, Connection and Command.

Question 2: This question is attributed with 10 marks if answered properly, Question 2.a <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/dtd/wml13.dtd"> <wml> <template> <do type="options" label ="Result!" > < go href ="#output"/> </do> </template> <card id ="perserv" title ="Personal Services"> <onevent type="onenterforward"> <refresh> <setvar name="term" value=""/> <setvar name="mail" value=""/> <setvar name="optm" value=""/> <setvar name="mod" value=""/> </refresh> </onevent> Select Your Services: </p> <a href="#term"> Terminal</a> <br/> <a href="#mail"> MailBox</a> <br/> <a href="#sett"> Setting</a> <br/> </p></card> <card id= "Term" title = "Terminal"> Terminal : </p> <select name="term"> <option value ="Event">Event</option> <option value ="Timeout">Timeout</option> <option value ="Limit">Limit</option> </select></p></card> <card id= "Mail" title = "MailBox"> MailBox: </p> <select name="mail"> <option value ="Time">Time</option> <option value ="From">From</option> <option value ="To">To</option> <option value ="HeadLine">HeadLine</option> </select></p></card> <card id= "Sett" title = "Setting"> Setting: </p> Optimization: <input name="optm" maxlength="15" /> <br/> Model: <input name="mod" maxlength="15" /> <br/> </p> </card> <timer name ="back" value = "50"/> Your Personal entry:<br/> Terminal: $(Term) <br/> MailBox: $(Mail) <br/> Setting: <br/> Optimization:$(Optm) <br/> Model:$(Mod) <br/></p> </card></wml> Question 2.b <template> <do type="options" label ="Result!" > < go href ="#output"/> </do> (4 marks) (3 marks)

</template> (1.5 marks) Your Personal entry:<br/> Terminal: $(Term) <br/> MailBox: $(Mail) <br/> Setting: <br/> Optimization:$(Optm) <br/> Model:$(Mod) <br/>/p> </card></wml> Question 3.c <onevent type="onenterforward"> <refresh> <setvar name="term" value=""/> <setvar name="mail" value=""/> <setvar name="optm" value=""/> <setvar name="mod" value=""/></refresh></onevent> Question 3.d <timer name ="back" value = "50"/> Question 3 This question is attributed with 10 marks, if answered properly. Question3.1 private void Command1_Click(object sender,system.eventargs e) OleDbConnection conn1 = new OleDbConnection(@"Provider = Microsoft.Jet.OLEDB.4.0; Data Source = c:\documentinformation.mdb"); OleDbCommand comm1 = new OleDbCommand (); comm1.commandtext = "select * from Documents"; comm1.connection = conn1; conn1.open(); (1.5 marks) OleDbDataReader reader1 = comm1.executereader(); this.objectlist1.items.clear(); ObjectList1.DataSource = reader1; ObjectList1.DataBind(); conn1.close(); Question3.2 private void Command1_Click(object sender,system.eventargs e) OleDbConnection conn = new OleDbConnection(@"Provider = Microsoft.Jet.OLEDB.4.0; Data Source = c:\documentinformation.mdb"); OleDbCommand comm = new OleDbCommand (); comm.commandtext = "select * from Documents"; comm.connection = conn; conn.open(); OleDbDataReader reader = comm.executereader(); while (reader.read()) Label lb = new Label(); output = " "+reader[0].tostring()+" "+reader[1].tostring()+" "+reader[2].tostring()+ " "+reader[3].tostring()+" "+reader[4].tostring()+" "+reader[5].tostring();) lb.text = output; this.form1.controls.add(lb); Reader.Close(); conn.close(); Question 4 This question is attributed with 10 marks, if answered properly. (3 marks)

OleDbConnection conn = new OleDbConnection(@"provider = Microsoft.Jet.OLEDB.4.0; Data Source = c:\northwind.mdb"); conn.open(); DataSet ds = new DataSet(); OleDbDataAdapter sup = new OleDbDataAdapter("select * from Suppliers",conn); OleDbDataAdapter order = new OleDbDataAdapter("select * from Orders",conn); OleDbDataAdapter detail = new OleDbDataAdapter("select * from [Order Details]",conn); OleDbDataAdapter prod = new OleDbDataAdapter("select * from Products",conn); OleDbDataAdapter cust = new OleDbDataAdapter("select * from Customers",conn); sup.fill(ds,"suppliers"); order.fill(ds,"orders"); detail.fill(ds,"[order Details]"); prod.fill(ds,"products"); cust.fill(ds,"customers"); DataRelation supprodrel = ds.relations.add("supprod", ds.tables["suppliers"].columns["supplierid"], ds.tables["products"].columns["supplierid"]); DataRelation proddetrel = ds.relations.add("proddet", ds.tables["products"].columns["productid"], ds.tables["[order Details]"].Columns["ProductID"]); DataRelation orderdetailrel = ds.relations.add("orddet", ds.tables["orders"].columns["orderid"], ds.tables["[order Details]"].Columns["OrderID"]); DataRelation custordrel = ds.relations.add("custordrel", ds.tables["customers"].columns["customerid"], ds.tables["orders"].columns["customerid"]); foreach (DataRow sub in ds.tables["suppliers"].rows) Response.Write("Company Name: "+sub["companyname"]+"<br/>"); foreach (DataRow prod1 in sub.getchildrows(supprodrel)) Response.Write("Product Name: "+prod1["productname"]+"<br/>"); Response.Write("Category ID: "+prod1["categoryid"]+"<br/>"); foreach (DataRow detail1 in prod1.getchildrows(proddetrel)) Response.Write("Order Date: "+ detail1.getparentrow(orderdetailrel)["orderdate"]+"<br/>"); Response.Write("Phone: "+ detail1.getparentrow(orderdetailrel).getparentrow(custordrel)["phone"]+"<br/ >"); conn.close(); (4 marks)