M4.1-R4: APPLICATION OF.NET TECHNOLOGY



Similar documents
Programming in C# with Microsoft Visual Studio 2010

Application Development,.NET

ASP.NET Programming with C# and SQL Server

DEVELOPING A PHD MONITORING TOOL USING ASP.NET AND SQL SERVER. A Report Submitted In Partial Fulfillment Of Course BITS C331 Computer Oriented Project

Programming with the Microsoft.NET Framework Using Microsoft Visual Studio 2005 (VB)

Programming in C# with Microsoft Visual Studio 2010

Course Name: ADVANCE COURSE IN SOFTWARE DEVELOPMENT (Specialization:.Net Technologies)

C++FA 5.1 PRACTICE MID-TERM EXAM

Visual Basic. murach's TRAINING & REFERENCE

How To: Create a Crystal Report from ADO.NET Dataset using Visual Basic.NET

Using IRDB in a Dot Net Project

Java Interview Questions and Answers

Developing and Implementing Web Applications with Microsoft Visual C#.NET and Microsoft Visual Studio.NET

Developing and Implementing Windows-Based Applications With Microsoft Visual C#.NET and Microsoft Visual Studio.NET

AQA GCSE in Computer Science Computer Science Microsoft IT Academy Mapping

CSCI 253. Object Oriented Programming (OOP) Overview. George Blankenship 1. Object Oriented Design: Java Review OOP George Blankenship.

Objectif. Participant. Prérequis. Remarque. Programme. C# 3.0 Programming in the.net Framework. 1. Introduction to the.

Mastering Visual Basic.NET Database Programming Evangelos Petroutsos; Asli Bilgin

C#5.0 IN A NUTSHELL. Joseph O'REILLY. Albahari and Ben Albahari. Fifth Edition. Tokyo. Sebastopol. Beijing. Cambridge. Koln.

Transition your MCPD Web Developer Skills to MCPD ASP.NET Developer 3.5 (VB)

Visual COBOL ASP.NET Shopping Cart Demonstration

Java Application Developer Certificate Program Competencies

Web Services with ASP.NET. Asst. Prof. Dr. Kanda Saikaew Department of Computer Engineering Khon Kaen University

Dynamic Web Programming BUILDING WEB APPLICATIONS USING ASP.NET, AJAX AND JAVASCRIPT

Part I. Multiple Choice Questions (2 points each):

M2-R3: BUSINESS SYSTEMS

M3-R3: INTERNET AND WEB DESIGN

Module 1: Getting Started with Databases and Transact-SQL in SQL Server 2008

About the Authors About the Technical Reviewer

Supporting Data Set Joins in BIRT

VB.NET - DATABASE ACCESS

Cache Configuration Reference

TECHNOLOGY Computer Programming II Grade: 9-12 Standard 2: Technology and Society Interaction

Visual C# 2012 Programming

2311A: Advanced Web Application Development using Microsoft ASP.NET Course 2311A Three days Instructor-led

Course MS10975A Introduction to Programming. Length: 5 Days

Microsoft.Realtests v by.ERICA.50q

INTRODUCTION TO C# 0 C# is a multi-paradigm programming language which is based on objectoriented and component-oriented programming disciplines.

C++ INTERVIEW QUESTIONS

PART-A Questions. 2. How does an enumerated statement differ from a typedef statement?

SQL Server for developers. murach's TRAINING & REFERENCE. Bryan Syverson. Mike Murach & Associates, Inc. Joel Murach

Skills for Employment Investment Project (SEIP)

Beginning C# 5.0. Databases. Vidya Vrat Agarwal. Second Edition

Software Design Specification

This class is intended for experienced software developers who understand object-oriented programming (OOP) and C# or VB.NET.

.NET Overview. David Smith. Today s s Topics. Why am I here? A tool. Microsoft s s Vision for.net

SimWebLink.NET Remote Control and Monitoring in the Simulink

The Sun Certified Associate for the Java Platform, Standard Edition, Exam Version 1.0

WEB APPLICATION DEVELOPMENT. UNIT I J2EE Platform 9

CS 111 Classes I 1. Software Organization View to this point:

Handout 1. Introduction to Java programming language. Java primitive types and operations. Reading keyboard Input using class Scanner.

.NET Overview. Andreas Schabus Academic Relations Microsoft Österreich GmbH

Advanced Web Application Development using Microsoft ASP.NET

J a v a Quiz (Unit 3, Test 0 Practice)

KITES TECHNOLOGY COURSE MODULE (C, C++, DS)

Expanded contents. Section 1. Chapter 2. The essence off ASP.NET web programming. An introduction to ASP.NET web programming

: provid.ir

Building Views and Charts in Requests Introduction to Answers views and charts Creating and editing charts Performing common view tasks

Object-Oriented Design Lecture 4 CSU 370 Fall 2007 (Pucella) Tuesday, Sep 18, 2007

Praktikum im Bereich Praktische Informatik Entwicklung eines Ray-Tracing Systems. computer graphics & visualization

Course Title: Software Development

Understand State Information in Web Applications

Database Communica/on in Visual Studio/C# using Web Services. Hans- Pe=er Halvorsen, M.Sc.

Writing Queries Using Microsoft SQL Server 2008 Transact-SQL

ASP.NET Using C# (VS2012)

How to create/avoid memory leak in Java and.net? Venkat Subramaniam

Multichoice Quetions 1. Atributes a. are listed in the second part of the class box b. its time is preceded by a colon. c. its default value is

Classes and Objects in Java Constructors. In creating objects of the type Fraction, we have used statements similar to the following:

EXAM PRO:Design & Develop Windows Apps Using MS.NET Frmwk 4. Buy Full Product.

Java CPD (I) Frans Coenen Department of Computer Science

qwertyuiopasdfghjklzxcvbnmqwerty uiopasdfghjklzxcvbnmqwertyuiopasd fghjklzxcvbnmqwertyuiopasdfghjklzx cvbnmqwertyuiopasdfghjklzxcvbnmq

NUTECH COMPUTER TRAINING INSTITUTE 1682 E. GUDE DRIVE #102, ROCKVILLE, MD 20850

EVALUATION. WA1844 WebSphere Process Server 7.0 Programming Using WebSphere Integration COPY. Developer

Crystal Reports for Visual Studio.NET

I PUC - Computer Science. Practical s Syllabus. Contents

Analytics Configuration Reference

CS506 Web Design and Development Solved Online Quiz No. 01

Database Programming with PL/SQL: Learning Objectives

Java EE Web Development Course Program

VB.NET - WEB PROGRAMMING

70-487: Developing Windows Azure and Web Services

Crystal Reports. For Visual Studio.NET. Reporting Off ADO.NET Datasets

Guide to Upsizing from Access to SQL Server

Writing Queries Using Microsoft SQL Server 2008 Transact-SQL

Building Scalable Applications Using Microsoft Technologies

COSC Introduction to Computer Science I Section A, Summer Question Out of Mark A Total 16. B-1 7 B-2 4 B-3 4 B-4 4 B Total 19

Getting Started with STATISTICA Enterprise Programming

Thomas Jefferson High School for Science and Technology Program of Studies Foundations of Computer Science. Unit of Study / Textbook Correlation

CATALOG OF CLASSES IT and Technical Courses

Introducing the.net Framework 4.0

If you wanted multiple screens, there was no way for data to be accumulated or stored

About the Authors Fundamentals p. 1 Introduction to LDAP and Active Directory p. 3 A Brief History of Directory Services p. 3 Definition of LDAP p.

Design and Functional Specification

Object Oriented Databases. OOAD Fall 2012 Arjun Gopalakrishna Bhavya Udayashankar

Synchronizing databases

Getting to Know the Tools

The C Programming Language course syllabus associate level

Track and Keynote/Session Title 9:00:00 AM Keynote 11g Database Development Java Track Database Apex Track.Net Track. 09:30:00 AM with Oracle and

MOVING THE SENIOR DEVELOPMENT CLASS FROM WEB DEVELOPMENT TO LIFE CYCLE DEVELOPMENT A CASE FOR VISUAL STUDIO 2005

Glossary of Object Oriented Terms

Transcription:

M4.1-R4: APPLICATION OF.NET TECHNOLOGY NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions. 2. PART ONE is to be answered in the TEAR-OFF ANSWER SHEET only, attached to the question paper, as per the instructions contained therein. PART ONE is NOT to be answered in the answer book. 3. Maximum time allotted for PART ONE is ONE HOUR. Answer book for PART TWO will be supplied at the table when the answer sheet for PART ONE is returned. However, candidates, who complete PART ONE earlier than one hour, can collect the answer book for PART TWO immediately after handing over the answer sheet for PART ONE. TOTAL TIME: 3 HOURS TOTAL MARKS: 100 (PART ONE 40; PART TWO 60) PART ONE (Answer all the questions) 1. Each question below gives a multiple choice of answers. Choose the most appropriate one and enter in the tear-off answer sheet attached to the question paper, following instructions therein. 1.1. What are the 4 pillars of any object oriented programming language? A) Abstraction, Inheritance, Encapsulation, Constructor B) Abstraction, Inheritance, Encapsulation, Polymorphism C) Abstraction, Object of a class, Inheritance, Polymorphism D) Abstraction, Constructor, Encapsulation, Polymorphism 1.2. Is the following code legal? class ChildClass : ParentClassA, ParentClassB A) Yes, a child class can have 2 base classes at the same time and it does also allow multiple interface inheritance. B) No, you cannot specify 2 base classes at the same time. You can specify only one base class to inherit from. However, it does allow multiple interface inheritance. C) Yes, C# supports multiple class inheritance and it does not allow multiple interface inheritance. D) No, you can specify only one base class at the same time to inherit from. However, it does not allow multiple interface inheritance. 1.3. In C#, Constructor is a class method that is executed when an object of a class is created. A) Yes, usually used to initialize the data members of the new object. B) No, usually not used to initialize the data members of the new object. C) Yes, usually not used to initialize the data members of the new object. D) None of the above 1.4. In C# do structures (struct) support inheritance? A) No, structs do not support inheritance, but they can implement interfaces B) Yes, structs do support inheritance, but they can implement interfaces C) No, structs do not support inheritance, but they can t implement interfaces D) None of the above M4.1-R4 Page 1 of 6 July, 2011

1.5. What will be the output of the following code? using System; public class BaseClass public BaseClass() Console.WriteLine("I am a base class"); public class ChildClass : BaseClass public ChildClass() Console.WriteLine("I am a child class"); static void Main() ChildClass CC = new ChildClass(); A) I am a base class B) I am a child class C) I am a base class and I am a child class D) None of the above 1.6. What are the advantages of properties in C#? i) Properties can validate data before allowing a change. ii) Properties can transparently expose data on a class where that data is actually retrieved from some other source such as a database. iii) Properties can take an action when data is changed, such as raising an event or changing the value of other fields. A) ii) B) i) and ii) C) i) and iii) D) i), ii) and iii) 1.7. Which of the following sentences given below correctly represent the nature of constants in C#: i) Value of a constant in C# is unchangeable, which is to be known at compile time and do not change during the execution of the program at run time. ii) Constant is declared using the const keyword and must be initialized as they are declared. iii) You can assign a value to a constant after it is declared and can be changed during the execution of the program at run time. A) ii) B) i) and ii) C) ii) and iii) D) i), ii) and iii) M4.1-R4 Page 2 of 6 July, 2011

1.8. Which of the sentences given below correctly describe the nature of abstract methods: i) Abstract methods are methods with only the declaration of the method with no implementation. ii) Abstract methods are methods with only the declaration of the method with implementation. iii) Abstract methods cannot have body. The abstract class can override the virtual method with an abstract method. iv) If a class has a single abstract member, the class has to be marked abstract. A) i) B) i) and iii) C) ii) and iii) D) i), iii) and iv) 1.9. In ADO.NET which of the following statements do you agree with i) When you need to populate your bound controls, use the DataAdapter s Fill method on the DataSet the controls are bound to. The DataAdapter will open and close connections as needed. ii) When you need to update the database, use the Update method of the DataAdapter. iii) When the user closes the program, there is no need to worry about closing database connections because they remain closed until needed. A) i) B) i) and iii) C) ii) and iii) D) i), ii) and iii) 1.10 Which of the sentences given below correctly describe the nature of the comments in C#: i) Single Line Comments. You define single line comments with // as shown below. //This is an example for single line comment ii) Multi line comments. You define multi line comments with /* */ as shown below. /*This is an example for Multi Line comments*/ iii) XML Comments. You define XML comments with /// as shown below. ///This is an example for defining XML comments. A) i) is correct B) i) and iii) are correct C) ii) and iii) are correct D) i), ii) and iii) are correct M4.1-R4 Page 3 of 6 July, 2011

2. Each statement below is either TRUE or FALSE. Choose the most appropriate one and ENTER in the tear-off sheet attached to the question paper, following instructions therein. 2.1 In C#, Value type is a user defined data type by using the struct keyword. 2.2 In C#, Boxing - Converting a value type to reference type is called boxing. An example is shown below. int i = 101; object obj = (object)i; // Boxing 2.3 String objects are changeable. 2.4 We use a SqlConnection object to connect to a Microsoft SQL Server Database. SQL database connections use the SqlDataAdapter object to perform commands and return data. 2.5 A partial class is a class whose definition is present in two or more file. 2.6 ADO is a class set providing access to relational data. It provides transparency using a common interface to access various data sources using a core set of objects such as Connection, Command and Recordset. 2.7 The SqlClient set of classes does not use OLEDB 2.8 We cannot acquire multiple pages in a single ASP.Net page by using FrameSet. 2.9 We can have unlimited number of cookies per website 2.10 In C# and.net, the default size of Integer data type is 32 bits. 3. Match words and phrases in column X with the closest related meaning/ word(s)/phrase(s) in column Y. Enter your selection in the tear-off answer sheet attached to the question paper, following instructions therein. X 3.1 Default access modifier for a method A. Cookies.Discard() 3.2 If a is null, returns b, otherwise returns a B. Private 3.3 To kill the cookies in a page C. a?? b 3.4 Explicitly kill a user s session D. Modular 3.5 XML consumer client E. Capacity 3.6 XML Schema definition tool F. Logical Operator 3.7 System.data.dll G. csc.exe 3.8 Operator H. Assembly 3.9 System.Data.OleDb and System.Data.Common I..ashx file 3.10 Structural programming approach J. Session.Abandon() Y K. System Namespace L. a? b M. xsd.exe M4.1-R4 Page 4 of 6 July, 2011

4. Each statement below has a blank space to fit one of the word(s) or phrase(s) in the list below. Enter your choice in the tear-off answer sheet attached to the question paper, following instructions therein. A. reference B. System.object C. 25-30 D. individual E. Control F. eq G. value H..Net Runtime I. memory J. named space K. binary L. inheritance M. && 4.1 Arrays are passed by. 4.2 is a binary operator for filter expressions in ADO.NET environment. 4.3 Maximum size of a viewstate should not be more than around % of the page size. 4.4 In ASP.Net fragment caching refers to the caching of user controls within a web form. 4.5 is the root class in.net. 4.6 The binary operator operates on Boolean operands only. 4.7 Garbage Collection (GC) in.net is invoked by the at regular intervals. 4.8 Structures (structs) cannot support. 4.9 The conditional, iteration, jump, and exception handling statements a program's flow of execution. 4.10 In.Net namespaces are used to provide a in which your application resides. M4.1-R4 Page 5 of 6 July, 2011

PART TWO (Answer any FOUR Questions) 5. a) How can the ADO.Net data be viewed as XML in Internet Explorer? b) How many in built objects are there in ASP.Net? c) List all the steps in order, to access a database through ADO.NET? (4+4+7) 6. a) What data type the RangeValidaton control supports in ASP.Net? What is a Server Object in ASP.Net? b) What is the difference between a DataReader and a DataAdapter? c) Analyze the following code. What will be its output? Give reason. using system; public class DoTest public static void Main ( ) // declaring and initializing of variable k of the type integer int k =13; Test (k) ; console.writeline ( The value of k is + k ); // printing the value of k public static void Test ( int p) p++; (5+4+6) 7. a) Give an example that shows how to execute a stored procedure in ADO.NET? b) What is SqlCommand.CommandTimeout Property used for? c) i) What are the methods that can ensure asynchronous execution of the Transact-SQL statement or stored procedure? ii) Explain what happens if connection pooling is enabled. (5+4+6) 8. a) Write a program to accepts two given integer number and determine the largest among them using VB.Net programming syntax. b) Explain differences between layers and tiers with respect to web technology and organization of code of an enterprise level application. (5+10) 9. a) Write a program in C# syntax to generate and print prime numbers in a given range. Also print the number of prime numbers within the given range. b) Discuss the advantages and disadvantages of the layered architecture for an enterprise level application in context of web based services. (7+8) M4.1-R4 Page 6 of 6 July, 2011