INTERNAL ASSESSMENT TEST 1 ANSWER KEY

Size: px
Start display at page:

Download "INTERNAL ASSESSMENT TEST 1 ANSWER KEY"

Transcription

1 INTERNAL ASSESSMENT TEST 1 ANSWER KEY Subject & Code: C# Programming and.net-101s761 Name of the faculty: Ms. Pragya Q.No Questions 1 a) What is an assembly? Explain each component of an assembly. Answers:- Marks 5 Assembly is really a logical grouping of one or more related modules that are intended to be deployed and versioned as a single unit. When a *.dll or *.exe has been created using a.net-aware compiler, the resulting module is bundled in to an "assembly." Regardless of which.net language you choose to program with,.net binaries take the same file extension as classic COM binaries (*.dll or *.exe), they have absolutely no internal similarities. Building a.net *.dll, it is to consider that the binary and the assembly are one and the same. Building a.net *.exe desktop application, the *.exe can simply be referred to as the assembly itself. For example, *.dll.net binaries do not export methods to facilitate communications with the classic COM runtime (given that.net is not COM). Furthermore,.NET binaries are not described using IDL and are not registered into the system registry. Perhaps most important, unlike classic COM servers,.net binaries do not contain platform-specific instructions, but rather platform-agnostic "intermediate language" (IL). Components of assembly a) Assemblies also contain metadata that describes in vivid detail the characteristics of every "type" living within the binary. For example, if you have a class named Car contained within a given assembly, the type metadata describes details such as Car's base class, which interfaces are implemented by Car (if any), as well as a full description of each member supported by the Car type. b) An assembly contains CIL code which is conceptually similar to java byte code in that it is not compiled to platform specific instructions until absolutely necessary. Typically "absolutely necessary" is the point at which a block of CIL instructions are referenced for use by the.net runtime engine. c) Assemblies themselves are also described using metadata, which is officially termed a manifest. The manifest contains information about the current version of the assembly, culture information (used for localizing string and image resources), and a list of all externally b) What is the difference between single file and multi file assemblies? 5 Answers:- Assembly is really a logical grouping of one or more related modules that are intended to be deployed and versioned as a single unit. If an assembly is composed of a single *.dll or *.exe module, you have a "single file assembly." Single file assemblies contain all the necessary CIL, metadata and associated manifest in an autonomous, single, well-defined

2 package. Multifile assemblies, on the other hand, are composed of numerous.net binaries, each of which is termed a module. When building a multifile assembly, one of these modules, termed the primary module, must contain the assembly manifest and possibly CIL instructions and metadata for various types. The other related modules contain a module level manifest, CIL and type metadata. When an assembly is partitioned into discrete modules, we end up with a more flexible deployment option. For example, if a user is referencing a remote assembly that needs to be downloaded onto his or her machine, the runtime will only download the required modules. Therefore, you are free to construct your assembly in such a way that less frequently required types, such as a type named HardDriveReformatter are kept in a separate standalone module. In contrast, if all your types were placed in a single file assembly, the end user may end up downloading a large chunk of data that is not really needed and which is obviously a waste of time. 2 a) What are the building blocks of.net platform? Briefly explain the role of following 10 i) CLS ii) CTS iii) CLR iv) Base class libraries. Answers:- The building blocks of.net are:- a) CLR b) CTS, c) CLS. i) CLS: - The Common Language Specification (CLS) is a set of rules that define a subset of common types and programming constructs that all.net programming languages can agree on. Thus, if we build.net types that only expose CLScompliant features, you can rest assured that all.net-aware languages could make use of your types. Conversely, if you make use of a data type or BE ISE IV Semester 2

3 programming construct that is outside of the CLS, you cannot guarantee that every.net programming language can interact with your binary code library. The CLS is a set of guidelines that describe in vivid detail, the minimal and complete set of features a given.net-aware compiler must support to produce code that can be hosted by the CLR, while at the same time be accessed in a uniform manner by all languages that target the.net platform. In many ways the CLS can be viewed as a physical subset of the full functionality defined by the CTS. The CLS is ultimately a set of rules that compiler builders must conform to, if they intend their ii) CTS: - Another building block of the.net platform is the Common Type System, or CTS. The CTS fully describes all possible data types and programming constructs supported by the runtime, specifies how these entities can interact with each other and details how they are represented in the.net metadata format. Common Type System (CTS) is a formal specification that describes how a given type i.e. class, structure, interface, etc. must be defined in order to be hosted by the CLR. Understand that a given.net-aware language might not support each and every entity defined by the CTS. iii) CLR: - The runtime layer is properly referred to as the common language runtime, or CLR. The primary role of the CLR is to locate, load, and manage.net types on your behalf. The CLR also takes care of a number of low-level details such as automatic memory management, language integration, and ensuring type safety. Runtime can be referred to as a collection of external services that are required to execute a given compiled unit of code. When an assembly is referenced for use, mscoree.dll is loaded automatically, which in turn loads the required assembly into memory. The runtime engine is responsible for a number of tasks. First and foremost, it is the entity in charge of resolving the location of an assembly and finding the requested type (e.g., class, interface, structure, etc.) within the binary by reading the contained metadata. The execution engine lays out the type in memory, compiles the associated CIL into platform-specific instructions, performs any (optional) security checks and then executes the code in question. iv) Base class libraries: - the.net platform provides a base class library that is available to all.net programming languages. Not only does this base class library encapsulate various primitives such as threads, file IO, graphical rendering and interaction with various hardware devices, but it also provides support for a number of services required by most real-world applications. For example, the base class libraries define types that facilitate database manipulation, XML integration, programmatic security, and the construction of Web-enabled (as well as traditional desktop and console based front ends. 3 a) Explain how csc.exe compiler is used to build c # application. Explain any five flags with appropriate examples. 10 answers: - We can compile our.net assemblies using the stand-alone compiler, csc.exe. now that development machine recognizes csc.exe as sdk(software development kit) for.net has been installed and path variables is set, the next goal is to build a simple single file assembly named testapp.exe using the raw c# compiler. first, some source code is written.

4 open a text editor (notepad.exe is fine), and enter the source code as shown in following example once finished, save the file by the name of the class containing the main method i.e. testapp.cs, with.cs extension. to compile testapp.cs into a console application named textapp.exe, you would use the following command set csc testapp.cs or csc /target:exe testapp.cs or csc /t:exe testapp.cs given that the /t:exe flag is the default output used by the c# compiler, we can compile without using target flag also. both results to the same thing. flags which are used while compiling the program in c# are as follows: - Examples: - For the above source code example, if we need to compile the code and get the output by some other name then we use out option. Here, the file name is TestApp.cs but when the file is compiled the output file will have the name as Test.cs. csc /out Test.cs TestApp.cs BE ISE IV Semester 2

5 For the above source code example, if we need to compile the code and get the output as a library file then we use the following option csc /target:library TestApp.cs For the above source code example, if we need to compile the code and get the output as a module file then we use the following option csc /target:module TestApp.cs 4 a) Is it necessary to make Main( ) method as static? Justify your answer, with example. 5 Answers: - Yes, it is necessary to make main method as static. When a method is marked with the "static" keyword, it may be called directly from the class level, and does not require an object variable. For this very reason, Main() is declared static to allow the runtime to invoke this function without needing to allocate a new instance of the defining class. If we use static keyword before any method name to make it static than it means no object variable is required to access that method. In the above example main method has been defined static so, no new instance is required to access this main method. It can be directly accessed by the compiler. b) Explain the concept of namespaces. Explain with example. 5 Answers: - It is worth reiterating that a namespace is nothing more than a convenient way for us to logically understand and organize related types. As you build your custom types, you have the option of organizing your items into a custom namespace. Again, a namespace is a logical naming scheme used by.net languages to group related types under a unique umbrella. When you group your types into a namespace, you provide a simple way to circumvent possible name clashes between assemblies. For example, if you were building a new Windows Forms application that references two external assemblies, and each assembly contained a type named GoCart, you would be able to specify which GoCart class you are interested in by appending the type name to its containing namespace Assume you are developing a collection of geometric classes named Square, Circle, and

6 Hexagon. Given their similarities, you would like to group them all together into a shared custom namespace. You have two basic approaches. First, you may choose to define each class within a single file (shapeslib.cs) Split a single namespace into multiple c# files We can have nested namespaces also that is namespaces within other namespaces. The.NET base class libraries do so in numerous places to provide an even deeper level of type organization. 5 a) Explain the following with respect to compilation of the C# program in command prompt 10 i) Referencing external assemblies ii) Compiling multiple source files iii) Response files iv) Generating bug reports Answers: - i) The process of referencing external assemblies, let's take an example source code i.e. TestApp application to display a Windows Forms message box. The reference to the System.Windows.Forms namespace is done via the C# "using" directive. When we explicitly list the namespaces used within a given *.cs file, we avoid the need to make use of fully qualified names. In addition to using the "using" keyword, you must also inform csc.exe which assembly contains the referenced namespace. Given that we have made use of the System.Windows.FormsMessageBox class, then we must specify the System.Windows.Forms.dll assembly using the /reference flag. ii) It is permissible to have all the codes in the same file but most projects preferred multiple *.cs files to keep the code base a bit more flexible. To illustrate, assume you have authored an additional class contained in a new file named HelloMsg.cs. BE ISE IV Semester 2

7 // The HelloMessage Class using System; using System.Windows.Forms; using System.Drawing; class HelloMessage public void Speak() MessageBox.Show("Hello..."); To compile the above code which is using two external assemblies we use the following commands from the command prompt: - The C# compiler allows to make use of the wildcard character (*) to inform csc.exe to include all *.cs files contained in the project directory as part of the current build. When this option is used, you will typically want to specify the name of the output file (/out) as well, to directly control the name of the resulting assembly: csc /r:system.windows.forms.dll /out:testapp.exe *.cs iii) if we build a complex C# application at the command prompt, it would be troublesome as we are required to type in the flags that specify numerous referenced assemblies and *.cs input files. To help lessen typing burden, the C# compiler honors the use of "response files." C# response files contain all the instructions to be used during the compilation of your current build. By convention, these files end in a *.rsp (response) extension and can be used as an alternative to pounding out lines and lines of flags manually at the command prompt. To illustrate, assume that we have created a response file named TestApp.rsp that contains the following arguments /r:system.windows.forms.dll /target:exe /out:testapp.exe *.cs Now, assuming this file is saved in the same directory as the C# source code files to be compiled, we can now build entire application as follows Again, the output of the compiler is identical. If the need should arise, we can also specify multiple *.rsp files as input, for If we take this approach, we have to be aware that the compiler processes the command options as they are encountered! Therefore, command line arguments in a later *.rsp file can override options in a previous response file. iv) The raw C# compiler provides a helpful flag named /bugreport. As gathered by its name, this flag allows to specify a file that will be populated (by csc.exe) with various statistics regarding your current build, including any errors encountered during the compilation process.

8 6 a) Write a program to find factorial using default constructor and customized constructor. 10 Answers: - //program to find factorial of a number by implementing default and customized constructor using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace FactExample class Program public static void main(string[] args) Program f1 = new Program(); Program f2 = new Program(5); int n, fact; public Program() n = 1; fact = 1; public Program(int a) n = a; for (int i = 1; i <= n; i++) fact = fact * i; Console.WriteLine("factorial is 0", fact); BE ISE IV Semester 2

PESIT Bangalore South Campus Hosur road, 1km before Electronic City, Bengaluru -100 Department of Computer Science And Engineering

PESIT Bangalore South Campus Hosur road, 1km before Electronic City, Bengaluru -100 Department of Computer Science And Engineering INTERNAL ASSESSMENT TEST 1 Date : 19 08 2015 Max Marks : 50 Subject & Code : C# Programming and.net & 10CS761 Section : VII CSE A & C Name of faculty : Mrs. Shubha Raj K B Time : 11.30 to 1PM 1. a What

More information

vtuplanet.com C#Programming with.net C# Programming With.NET (06CS/IS761)

vtuplanet.com C#Programming with.net C# Programming With.NET (06CS/IS761) C# Programming With.NET (06CS/IS761) Chapter wise questions and Answers appeared in previous years: UNIT I: 1 Philosophy of the.net What are the building blocks of.net platform? Give the relationship between.net

More information

CHAPTER 2: BUILDING C# APPLICATIONS

CHAPTER 2: BUILDING C# APPLICATIONS CHAPTER 2: BUILDING C# APPLICATIONS BUILDING A C# APPLICATION USING csc.exe Consider the following code: using System; class TestApp public static void Main() Console.WriteLine("Testing 1 2 3"); Once you

More information

BUILDING C# APPLICATIONS

BUILDING C# APPLICATIONS BUILDING C# APPLICATIONS The C# Command-Line Compiler (csc.exe) Configuring the C# Command-Line Compiler To equip your development machine to compile *.cs files from any directory, follow these steps (which

More information

PES INSTITUTE OF TECHNOLOGY

PES INSTITUTE OF TECHNOLOGY Seventh Semester B.E. IA Test-I, 2014 USN 1 P E I S PES INSTITUTE OF TECHNOLOGY C# solution set for T1 Answer any 5 of the Following Questions 1) What is.net? With a neat diagram explain the important

More information

UNIT I An overview of Programming models Programmers Perspective

UNIT I An overview of Programming models Programmers Perspective UNIT I An overview of Programming models Programmers Perspective 1. C/Win32 API Programmer It is complex C is short/abrupt language Manual Memory Management, Ugly Pointer arithmetic, ugly syntactic constructs

More information

This lecture notes is prepared according to the syllabus of the following subjects

This lecture notes is prepared according to the syllabus of the following subjects 1 This lecture notes is prepared according to the syllabus of the following subjects C# Programming and.net (10IS761), a 7 th semester BE Information Science and Engineering syllabus according to 2010

More information

A NET Refresher

A NET Refresher .NET Refresher.NET is the latest version of the component-based architecture that Microsoft has been developing for a number of years to support its applications and operating systems. As the name suggests,.net

More information

Module 2: Introduction to a Managed Execution Environment

Module 2: Introduction to a Managed Execution Environment Module 2: Introduction to a Managed Execution Environment Contents Overview 1 Writing a.net Application 2 Compiling and Running a.net Application 11 Lab 2: Building a Simple.NET Application 29 Review 32

More information

Vtusolution.in C# PROGRAMMING AND.NET. Subject Code: 10IS761/10CS761 I.A. Marks : 25 Hours/Week : 04 Exam Hours: 03 Total Hours : 52 Exam Marks: 100

Vtusolution.in C# PROGRAMMING AND.NET. Subject Code: 10IS761/10CS761 I.A. Marks : 25 Hours/Week : 04 Exam Hours: 03 Total Hours : 52 Exam Marks: 100 C# PROGRAMMING AND.NET Subject Code: 10IS761/10CS761 I.A. Marks : 25 Hours/Week : 04 Exam Hours: 03 Total Hours : 52 Exam Marks: 100 PART A UNIT 1 6 Hours The Philosophy of.net: Understanding the Previous

More information

Chapter 12 Microsoft Assemblies. Software Architecture Microsoft Assemblies 1

Chapter 12 Microsoft Assemblies. Software Architecture Microsoft Assemblies 1 Chapter 12 Microsoft Assemblies 1 Process Phases Discussed in This Chapter Requirements Analysis Design Framework Architecture Detailed Design Key: x = main emphasis x = secondary emphasis Implementation

More information

Objective of the Course: (Why the course?) Brief Course outline: (Main headings only) C# Question Bank Chapter1: Philosophy of.net

Objective of the Course: (Why the course?) Brief Course outline: (Main headings only) C# Question Bank Chapter1: Philosophy of.net Objective of the Course: (Why the course?) To provide a brief introduction to the.net platform and C# programming language constructs. Enlighten the students about object oriented programming, Exception

More information

UNIT-1 The Philosophy of.net

UNIT-1 The Philosophy of.net 1 UNIT-1 The Philosophy of.net Understanding the Previous State of Affairs Life As a C/Win32 API Programmer: Developing software for the Windows family of operating systems involved using the C programming

More information

Chapter 1 Getting Started

Chapter 1 Getting Started Chapter 1 Getting Started The C# class Just like all object oriented programming languages, C# supports the concept of a class. A class is a little like a data structure in that it aggregates different

More information

New programming language introduced by Microsoft contained in its.net technology Uses many of the best features of C++, Java, Visual Basic, and other

New programming language introduced by Microsoft contained in its.net technology Uses many of the best features of C++, Java, Visual Basic, and other C#.NET? New programming language introduced by Microsoft contained in its.net technology Uses many of the best features of C++, Java, Visual Basic, and other OO languages. Small learning curve from either

More information

Department of Computer Applications

Department of Computer Applications MCA 512:.NET framework and C# [Part I : Medium Answer type Questions] Unit - 1 Q1. What different tools are available and used to develop.net Applications? Hint a).net Framework SDK b) ASP.NET Web Matrix

More information

1. Introduction to the Common Language Infrastructure

1. Introduction to the Common Language Infrastructure Miller-CHP1.fm Page 1 Wednesday, September 24, 2003 1:50 PM to the Common Language Infrastructure The Common Language Infrastructure (CLI) is an International Standard that is the basis for creating execution

More information

Chapter 4 Defining Classes I

Chapter 4 Defining Classes I Chapter 4 Defining Classes I This chapter introduces the idea that students can create their own classes and therefore their own objects. Introduced is the idea of methods and instance variables as the

More information

Uka Tarsadia University MCA ( 3rd Semester)/M.Sc.(CA) (1st Semester) Course : / Visual Programming Question Bank

Uka Tarsadia University MCA ( 3rd Semester)/M.Sc.(CA) (1st Semester) Course : / Visual Programming Question Bank Unit 1 Introduction to.net Platform Q: 1 Answer in short. 1. Which three main components are available in.net framework? 2. List any two new features added in.net framework 4.0 which is not available in

More information

DEPARTMENT OF INFORMATION TECHNOLOGY Academic Year 2015-2016 QUESTION BANK-EVEN SEMESTER NAME OF THE SUBJECT SUBJECT CODE SEMESTER YEAR DEPARTMENT C# and.net Programming CS6001 VI III IT UNIT 1 PART A

More information

Appendix G: Writing Managed C++ Code for the.net Framework

Appendix G: Writing Managed C++ Code for the.net Framework Appendix G: Writing Managed C++ Code for the.net Framework What Is.NET?.NET is a powerful object-oriented computing platform designed by Microsoft. In addition to providing traditional software development

More information

S.Sakthi Vinayagam Sr. AP/CSE, C.Arun AP/IT

S.Sakthi Vinayagam Sr. AP/CSE, C.Arun AP/IT Chettinad College of Engineering & Technology CS2014 C# &.NET Framework Part A Questions Unit I 1. Define Namespace. What are the uses of Namespace? A namespace is designed for providing a way to keep

More information

INTRODUCTION TO.NET. Domain of.net D.N.A. Architecture One Tier Two Tier Three Tier N-Tier THE COMMON LANGUAGE RUNTIME (C.L.R.)

INTRODUCTION TO.NET. Domain of.net D.N.A. Architecture One Tier Two Tier Three Tier N-Tier THE COMMON LANGUAGE RUNTIME (C.L.R.) INTRODUCTION TO.NET Domain of.net D.N.A. Architecture One Tier Two Tier Three Tier N-Tier THE COMMON LANGUAGE RUNTIME (C.L.R.) CLR Architecture and Services The.Net Intermediate Language (IL) Just- In-

More information

2. A GUI A. uses buttons, menus, and icons B. should be easy for a user to manipulate C. both (a) and (b) D. stands for Graphic Use Interaction

2. A GUI A. uses buttons, menus, and icons B. should be easy for a user to manipulate C. both (a) and (b) D. stands for Graphic Use Interaction 1. Which language is not a true object-oriented programming language? A. VB 6 B. VB.NET C. JAVA D. C++ 2. A GUI A. uses buttons, menus, and icons B. should be easy for a user to manipulate C. both (a)

More information

Unit 1: Visual Basic.NET and the.net Framework

Unit 1: Visual Basic.NET and the.net Framework 1 Chapter1: Visual Basic.NET and the.net Framework Unit 1: Visual Basic.NET and the.net Framework Contents Introduction to.net framework Features Common Language Runtime (CLR) Framework Class Library(FCL)

More information

UNIT V *********************************************************************************************

UNIT V ********************************************************************************************* Syllabus: 1 UNIT V 5. Package Diagram, Component Diagram, Deployment Diagram (08 Hrs, 16 Marks) Package Diagram: a. Terms and Concepts Names, Owned Elements, Visibility, Importing and Exporting b. Common

More information

C# Programming in the.net Framework

C# Programming in the.net Framework 50150B - Version: 2.1 04 May 2018 C# Programming in the.net Framework C# Programming in the.net Framework 50150B - Version: 2.1 6 days Course Description: This six-day instructor-led course provides students

More information

Programming in Visual Basic with Microsoft Visual Studio 2010

Programming in Visual Basic with Microsoft Visual Studio 2010 Programming in Visual Basic with Microsoft Visual Studio 2010 Course 10550; 5 Days, Instructor-led Course Description This course teaches you Visual Basic language syntax, program structure, and implementation

More information

INFORMATICS LABORATORY WORK #2

INFORMATICS LABORATORY WORK #2 KHARKIV NATIONAL UNIVERSITY OF RADIO ELECTRONICS INFORMATICS LABORATORY WORK #2 SIMPLE C# PROGRAMS Associate Professor A.S. Eremenko, Associate Professor A.V. Persikov 2 Simple C# programs Objective: writing

More information

COPYRIGHTED MATERIAL. Part I The C# Ecosystem. ChapTEr 1: The C# Environment. ChapTEr 2: Writing a First Program

COPYRIGHTED MATERIAL. Part I The C# Ecosystem. ChapTEr 1: The C# Environment. ChapTEr 2: Writing a First Program Part I The C# Ecosystem ChapTEr 1: The C# Environment ChapTEr 2: Writing a First Program ChapTEr 3: Program and Code File Structure COPYRIGHTED MATERIAL 1The C# Environment What s in This ChapTEr IL and

More information

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING ACADEMIC YEAR (ODD SEMESTER) QUESTION BANK

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING ACADEMIC YEAR (ODD SEMESTER) QUESTION BANK KINGS COLLEGE OF ENGINEERING DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING ACADEMIC YEAR 2011 2012(ODD SEMESTER) QUESTION BANK SUBJECT CODE / NAME: IT1402-MIDDLEWARE TECHNOLOGIES YEAR/SEM : IV / VII UNIT

More information

Building non-windows applications (programs that only output to the command line and contain no GUI components).

Building non-windows applications (programs that only output to the command line and contain no GUI components). C# and.net (1) 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

PROGRAMMING IN VISUAL BASIC WITH MICROSOFT VISUAL STUDIO Course: 10550A; Duration: 5 Days; Instructor-led

PROGRAMMING IN VISUAL BASIC WITH MICROSOFT VISUAL STUDIO Course: 10550A; Duration: 5 Days; Instructor-led CENTER OF KNOWLEDGE, PATH TO SUCCESS Website: PROGRAMMING IN VISUAL BASIC WITH MICROSOFT VISUAL STUDIO 2010 Course: 10550A; Duration: 5 Days; Instructor-led WHAT YOU WILL LEARN This course teaches you

More information

Top 40.NET Interview Questions & Answers

Top 40.NET Interview Questions & Answers Top 40.NET Interview Questions & Answers 1) Explain what is.net Framework? The.Net Framework is developed by Microsoft. It provides technologies and tool that is required to build Networked Applications

More information

12/22/11. Java How to Program, 9/e. public must be stored in a file that has the same name as the class and ends with the.java file-name extension.

12/22/11. Java How to Program, 9/e. public must be stored in a file that has the same name as the class and ends with the.java file-name extension. Java How to Program, 9/e Education, Inc. All Rights Reserved. } Covered in this chapter Classes Objects Methods Parameters double primitive type } Create a new class (GradeBook) } Use it to create an object.

More information

3A01:.Net Framework Security

3A01:.Net Framework Security 3A01:.Net Framework Security Wolfgang Werner HP Decus Bonn 2003 2003 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Agenda Introduction to

More information

M4.1-R4: APPLICATION OF.NET TECHNOLOGY

M4.1-R4: APPLICATION OF.NET TECHNOLOGY 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 OMR

More information

Compiling and Running an Application from the Command Line

Compiling and Running an Application from the Command Line Appendix A Compiling and Running an Application from the Command Line This appendix describes how to run applications at the command line without using the integrated development environment (IDE) of Visual

More information

.Net Technologies. Components of.net Framework

.Net Technologies. Components of.net Framework .Net Technologies Components of.net Framework There are many articles are available in the web on this topic; I just want to add one more article over the web by explaining Components of.net Framework.

More information

CHAPTER 7 COM and.net

CHAPTER 7 COM and.net 1 CHAPTER 7 COM and.net Evolution of DCOM Introduction to COM COM clients and servers COM IDL & COM Interfaces COM Threading Models. Marshalling, Custom and standard marshalling. Comparison COM and CORBA.

More information

Assemblies. necessary and sufficient to make that file self describing. This unit is called Assembly.

Assemblies. necessary and sufficient to make that file self describing. This unit is called Assembly. Assemblies Any.NET application written by a developer may be a component that is designed to provide some service to other applications or itself a main application. In both cases when that.net application

More information

Chapter 10. Class & Objects in JAVA. By: Deepak Bhinde PGT Com.Sc.

Chapter 10. Class & Objects in JAVA. By: Deepak Bhinde PGT Com.Sc. Chapter 10 Class & Objects in JAVA By: Deepak Bhinde PGT Com.Sc. Objective In this presentation you will learn about the classes and objects which leads to Object Oriented Programming (OOP) in tha JAVA.

More information

.Net Interview Questions

.Net Interview Questions .Net Interview Questions 1.What is.net? NET is an integral part of many applications running on Windows and provides common functionality for those applications to run. This download is for people who

More information

UNIT 1. Introduction to Microsoft.NET framework and Basics of VB.Net

UNIT 1. Introduction to Microsoft.NET framework and Basics of VB.Net UNIT 1 Introduction to Microsoft.NET framework and Basics of VB.Net 1 SYLLABUS 1.1 Overview of Microsoft.NET Framework 1.2 The.NET Framework components 1.3 The Common Language Runtime (CLR) Environment

More information

Saikat Banerjee Page 1

Saikat Banerjee Page 1 1.What is.net? NET is an integral part of many applications running on Windows and provides common functionality for those applications to run. This download is for people who need.net to run an application

More information

The Microsoft.NET Framework

The Microsoft.NET Framework Microsoft Visual Studio 2005/2008 and the.net Framework The Microsoft.NET Framework The Common Language Runtime Common Language Specification Programming Languages C#, Visual Basic, C++, lots of others

More information

DOT NET Syllabus (6 Months)

DOT NET Syllabus (6 Months) DOT NET Syllabus (6 Months) THE COMMON LANGUAGE RUNTIME (C.L.R.) CLR Architecture and Services The.Net Intermediate Language (IL) Just- In- Time Compilation and CLS Disassembling.Net Application to IL

More information

UNIT 1 PART A PART B

UNIT 1 PART A PART B UNIT 1 PART A 1. List some of the new features that are unique to c# language? 2. State few words about the two important entities of.net frame work 3. What is.net? Name any 4 applications that are supported

More information

Introduction to Programming Using Java (98-388)

Introduction to Programming Using Java (98-388) Introduction to Programming Using Java (98-388) Understand Java fundamentals Describe the use of main in a Java application Signature of main, why it is static; how to consume an instance of your own class;

More information

Using COM and COM+ in.net -P/invoke: The mechanism to call unmanaged functions in Win32 DLLs from.net

Using COM and COM+ in.net -P/invoke: The mechanism to call unmanaged functions in Win32 DLLs from.net Using COM and COM+ in.net -P/invoke: The mechanism to call unmanaged functions in Win32 DLLs from.net Ways in which.net is better than COM: -For distributed applications communication,.net uses.net remoting

More information

Microsoft..NET Framework. Overview

Microsoft..NET Framework. Overview Microsoft.NET Framework Overview .NET Enterprise Vision Users Any device, Any place, Any time XML Web Services Scheduling Authentication Integrate business applications and processes Notification Back

More information

University of West Bohemia in Pilsen. Faculty of Applied Sciences. Department of Computer Science and Engineering DIPLOMA THESIS

University of West Bohemia in Pilsen. Faculty of Applied Sciences. Department of Computer Science and Engineering DIPLOMA THESIS University of West Bohemia in Pilsen Faculty of Applied Sciences Department of Computer Science and Engineering DIPLOMA THESIS Pilsen, 2003 Ivo Hanák University of West Bohemia in Pilsen Faculty of Applied

More information

C# Syllabus. MS.NET Framework Introduction

C# Syllabus. MS.NET Framework Introduction C# Syllabus MS.NET Framework Introduction The.NET Framework - an Overview Framework Components Framework Versions Types of Applications which can be developed using MS.NET MS.NET Base Class Library MS.NET

More information

Microsoft Visual Basic 2005: Reloaded

Microsoft Visual Basic 2005: Reloaded Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 1 An Introduction to Visual Basic 2005 Objectives After studying this chapter, you should be able to: Explain the history of programming languages

More information

Developing Microsoft.NET Applications for Windows (Visual Basic.NET)

Developing Microsoft.NET Applications for Windows (Visual Basic.NET) Developing Microsoft.NET Applications for Windows (Visual Basic.NET) Course Number: 2555 Length: 1 Day(s) Certification Exam This course will help you prepare for the following Microsoft Certified Professional

More information

Introduction to.net Framework

Introduction to.net Framework Introduction to.net Framework .NET What Is It? Software platform Language neutral In other words:.net is not a language (Runtime and a library for writing and executing written programs in any compliant

More information

EEE-425 Programming Languages (2013) 1

EEE-425 Programming Languages (2013) 1 2 Computer programming: creating a sequence of instructions to enable the computer to do something Programmers do not use machine language when creating computer programs. Instead, programmers tend to

More information

Authoring Installations for Microsoft s.net Framework

Authoring Installations for Microsoft s.net Framework Authoring Installations for Microsoft s.net Framework using Wise for Windows Installer Vanessa Wasko Wise Solutions, Inc. Abstract This paper provides an overview of creating an installation for an application

More information

B.E /B.TECH DEGREE EXAMINATIONS,

B.E /B.TECH DEGREE EXAMINATIONS, B.E /B.TECH DEGREE EXAMINATIONS, November / December 2012 Seventh Semester Computer Science and Engineering CS2041 C# AND.NET FRAMEWORK (Common to Information Technology) (Regulation 2008) Time : Three

More information

M301: Software Systems & their Development. Unit 4: Inheritance, Composition and Polymorphism

M301: Software Systems & their Development. Unit 4: Inheritance, Composition and Polymorphism Block 1: Introduction to Java Unit 4: Inheritance, Composition and Polymorphism Aims of the unit: Study and use the Java mechanisms that support reuse, in particular, inheritance and composition; Analyze

More information

Darshan Institute of Engineering & Technology for Diploma Studies

Darshan Institute of Engineering & Technology for Diploma Studies Overview of Microsoft.Net Framework: The Dot Net or.net is a technology that is an outcome of Microsoft s new strategy to develop window based robust applications and rich web applications and to keep

More information

Chapter 1: A First Program Using C#

Chapter 1: A First Program Using C# Chapter 1: A First Program Using C# Programming Computer program A set of instructions that tells a computer what to do Also called software Software comes in two broad categories System software Application

More information

Building Windows Applications with.net. Allan Laframboise Shelly Gill

Building Windows Applications with.net. Allan Laframboise Shelly Gill Building Windows Applications with.net Allan Laframboise Shelly Gill Introduction Who are we? Who are you? What is your experience Developing with ArcGIS Desktop, Engine and Server ArcGIS 8.x, 9.x and

More information

Visual Studio.NET.NET Framework. Web Services Web Forms Windows Forms. Data and XML classes. Framework Base Classes. Common Language Runtime

Visual Studio.NET.NET Framework. Web Services Web Forms Windows Forms. Data and XML classes. Framework Base Classes. Common Language Runtime Intro C# Intro C# 1 Microsoft's.NET platform and Framework.NET Enterprise Servers Visual Studio.NET.NET Framework.NET Building Block Services Operating system on servers, desktop, and devices Web Services

More information

Component models. Page 1

Component models. Page 1 Component Models and Technology Component-based Software Engineering Ivica Crnkovic ivica.crnkovic@mdh.se Page 1 Overview Introduction ACME Architectural Description Language Java Bean Component Model

More information

What is ASP.NET? ASP.NET 2.0

What is ASP.NET? ASP.NET 2.0 What is ASP.NET? ASP.NET 2.0 is the current version of ASP.NET, Microsoft s powerful technology for creating dynamic Web content. is one of the key technologies of Microsoft's.NET Framework (which is both

More information

Object-Oriented Programming

Object-Oriented Programming Object-Oriented Programming 1. What is object-oriented programming (OOP)? OOP is a technique to develop logical modules, such as classes that contain properties, methods, fields, and events. An object

More information

C# 6.0 in a nutshell / Joseph Albahari & Ben Albahari. 6th ed. Beijin [etc.], cop Spis treści

C# 6.0 in a nutshell / Joseph Albahari & Ben Albahari. 6th ed. Beijin [etc.], cop Spis treści C# 6.0 in a nutshell / Joseph Albahari & Ben Albahari. 6th ed. Beijin [etc.], cop. 2016 Spis treści Preface xi 1. Introducing C# and the.net Framework 1 Object Orientation 1 Type Safety 2 Memory Management

More information

Cookbook for using SQL Server DTS 2000 with.net

Cookbook for using SQL Server DTS 2000 with.net Cookbook for using SQL Server DTS 2000 with.net Version: 1.0 revision 15 Last updated: Tuesday, July 23, 2002 Author: Gert E.R. Drapers (GertD@SQLDev.Net) All rights reserved. No part of the contents of

More information

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

PESIT- Bangalore South Campus Hosur Road (1km Before Electronic city) Bangalore PESIT- Bangalore South Campus Hosur Road (1km Before Electronic city) Bangalore 560 100 Department of MCA COURSE INFORMATION SHEET Programming Using C#.NET (13MCA53) 1. GENERAL INFORMATION: Academic Year:

More information

Fundamental C# Programming

Fundamental C# Programming Part 1 Fundamental C# Programming In this section you will find: Chapter 1: Introduction to C# Chapter 2: Basic C# Programming Chapter 3: Expressions and Operators Chapter 4: Decisions, Loops, and Preprocessor

More information

AC73/AT73 C# &.NET DEC 2015

AC73/AT73 C# &.NET DEC 2015 Q.2 a. What features makes.net Platform suitable for developing applications which integrates programs in different languages? (6) The.NET Framework is a rather radical and brute-force approach to making

More information

An Introduction to.net for the J2EE Programmer

An Introduction to.net for the J2EE Programmer An Introduction to.net for the J2EE Programmer Jeroen Frijters Sumatra Software b.v. jeroen@sumatra.nl http://weblog.ikvm.net/ Page Overview.NET Framework overview and terminology A Quick Look at C# A

More information

Learning to Program in Visual Basic 2005 Table of Contents

Learning to Program in Visual Basic 2005 Table of Contents Table of Contents INTRODUCTION...INTRO-1 Prerequisites...INTRO-2 Installing the Practice Files...INTRO-3 Software Requirements...INTRO-3 Installation...INTRO-3 Demonstration Applications...INTRO-3 About

More information

Programming in C# for Experienced Programmers

Programming in C# for Experienced Programmers Programming in C# for Experienced Programmers Course 20483C 5 Days Instructor-led, Hands-on Introduction This five-day, instructor-led training course teaches developers the programming skills that are

More information

The C# Language PART I. CHAPTER 1: Introducing C# CHAPTER 2: Writing a C# Program. CHAPTER 3: Variables and Expressions. CHAPTER 4: Flow Control

The C# Language PART I. CHAPTER 1: Introducing C# CHAPTER 2: Writing a C# Program. CHAPTER 3: Variables and Expressions. CHAPTER 4: Flow Control PART I RI AL The C# Language MA CHAPTER 2: Writing a C# Program TE CHAPTER 1: Introducing C# CHAPTER 3: Variables and Expressions D CHAPTER 4: Flow Control TE CHAPTER 5: More About Variables GH CHAPTER

More information

HCIM SUMMER WORKSHOP Introduction to C#

HCIM SUMMER WORKSHOP Introduction to C# HCIM SUMMER WORKSHOP Introduction to C# .NET.NET is: Microsoft s Platform for Windows Development CLR (Common Language Runtime) the Virtual Machine that runs MSIL (Microsoft Intermediate Language Code)

More information

C++\CLI. Jim Fawcett CSE687-OnLine Object Oriented Design Summer 2017

C++\CLI. Jim Fawcett CSE687-OnLine Object Oriented Design Summer 2017 C++\CLI Jim Fawcett CSE687-OnLine Object Oriented Design Summer 2017 Comparison of Object Models Standard C++ Object Model All objects share a rich memory model: Static, stack, and heap Rich object life-time

More information

Demo: Controlling.NET Windows Forms from a Java Application. Version 8.2

Demo: Controlling.NET Windows Forms from a Java Application. Version 8.2 Demo: Controlling.NET Windows Forms from a Java Application Version 8.2 JNBridge, LLC www.jnbridge.com COPYRIGHT 2002 2017 JNBridge, LLC. All rights reserved. JNBridge is a registered trademark and JNBridgePro

More information

Symbol Tables Symbol Table: In computer science, a symbol table is a data structure used by a language translator such as a compiler or interpreter, where each identifier in a program's source code is

More information

C#.Net. Course Contents. Course contents VT BizTalk. No exam, but laborations

C#.Net. Course Contents. Course contents VT BizTalk. No exam, but laborations , 1 C#.Net VT 2009 Course Contents C# 6 hp approx. BizTalk 1,5 hp approx. No exam, but laborations Course contents Architecture Visual Studio Syntax Classes Forms Class Libraries Inheritance Other C# essentials

More information

Building, Packaging, Deploying, and Administering Applications and Types

Building, Packaging, Deploying, and Administering Applications and Types C02621632.fm Page 33 Thursday, January 12, 2006 3:50 PM Chapter 2 Building, Packaging, Deploying, and Administering Applications and Types In this chapter:.net Framework Deployment Goals......................................

More information

MSIT-120: Dot Net Technologies

MSIT-120: Dot Net Technologies 1 MSIT-120: Dot Net Technologies 2 Course Design and Editorial Committee Prof. M.G.Krishnan Prof. Vikram Raj Urs Vice Chancellor Dean (Academic) & Convener Karnataka State Open University Karnataka State

More information

.NET-6Weeks Project Based Training

.NET-6Weeks Project Based Training .NET-6Weeks Project Based Training Core Topics 1. C# 2. MS.Net 3. ASP.NET 4. 1 Project MS.NET MS.NET Framework The.NET Framework - an Overview Architecture of.net Framework Types of Applications which

More information

Hierarchical inheritance: Contains one base class and multiple derived classes of the same base class.

Hierarchical inheritance: Contains one base class and multiple derived classes of the same base class. 1. What is C#? C# (pronounced "C sharp") is a simple, modern, object oriented, and type safe programming language. It will immediately be familiar to C and C++ programmers. C# combines the high productivity

More information

COPYRIGHTED MATERIAL PART I. CHAPTER 1: Introducing C# CHAPTER 2: Writing a C# Program. CHAPTER 3: Variables and Expressions. CHAPTER 4: Flow Control

COPYRIGHTED MATERIAL PART I. CHAPTER 1: Introducing C# CHAPTER 2: Writing a C# Program. CHAPTER 3: Variables and Expressions. CHAPTER 4: Flow Control PART I CHAPTER 1: Introducing C# CHAPTER 2: Writing a C# Program CHAPTER 3: Variables and Expressions CHAPTER 4: Flow Control CHAPTER 5: More about Variables CHAPTER 6: Functions CHAPTER 7: Debugging and

More information

.NET CLR Framework. Unmanaged Hosts - Assembly Access

.NET CLR Framework. Unmanaged Hosts - Assembly Access Unmanaged Hosts - Assembly Access ptrex 8/08/2017 WHAT : is.net Common Language Runtime (CLR) Framework The Common Language Runtime (CLR) is a an Execution Environment. Common Language Runtime (CLR)'s

More information

Introduction to Programming Microsoft.NET Applications with Visual Studio 2008 (C#)

Introduction to Programming Microsoft.NET Applications with Visual Studio 2008 (C#) Introduction to Programming Microsoft.NET Applications with Visual Studio 2008 (C#) Course Number: 6367A Course Length: 3 Days Course Overview This three-day course will enable students to start designing

More information

CS112 Lecture: Defining Instantiable Classes

CS112 Lecture: Defining Instantiable Classes CS112 Lecture: Defining Instantiable Classes Last revised 2/3/05 Objectives: 1. To describe the process of defining an instantiable class 2. To discuss public and private visibility modifiers. Materials:

More information

Weiss Chapter 1 terminology (parenthesized numbers are page numbers)

Weiss Chapter 1 terminology (parenthesized numbers are page numbers) Weiss Chapter 1 terminology (parenthesized numbers are page numbers) assignment operators In Java, used to alter the value of a variable. These operators include =, +=, -=, *=, and /=. (9) autoincrement

More information

C#: framework overview and in-the-small features

C#: framework overview and in-the-small features Chair of Software Engineering Carlo A. Furia, Marco Piccioni, Bertrand Meyer C#: framework overview and in-the-small features Chair of Software Engineering Carlo A. Furia, Marco Piccioni, Bertrand Meyer

More information

I pledge by honor that I will not discuss this exam with anyone until my instructor reviews the exam in the class.

I pledge by honor that I will not discuss this exam with anyone until my instructor reviews the exam in the class. Name: Covers Chapters 1-3 50 mins CSCI 1301 Introduction to Programming Armstrong Atlantic State University Instructor: Dr. Y. Daniel Liang I pledge by honor that I will not discuss this exam with anyone

More information

High-Level Language VMs

High-Level Language VMs High-Level Language VMs Outline Motivation What is the need for HLL VMs? How are these different from System or Process VMs? Approach to HLL VMs Evolutionary history Pascal P-code Object oriented HLL VMs

More information

Preview from Notesale.co.uk Page 3 of 36

Preview from Notesale.co.uk Page 3 of 36 all people who know the language. Similarly, programming languages also have a vocabulary, which is referred to as the set of keywords of that language, and a grammar, which is referred to as the syntax.

More information

Pace University. Fundamental Concepts of CS121 1

Pace University. Fundamental Concepts of CS121 1 Pace University Fundamental Concepts of CS121 1 Dr. Lixin Tao http://csis.pace.edu/~lixin Computer Science Department Pace University October 12, 2005 This document complements my tutorial Introduction

More information

CS1004: Intro to CS in Java, Spring 2005

CS1004: Intro to CS in Java, Spring 2005 CS1004: Intro to CS in Java, Spring 2005 Lecture #13: Java OO cont d. Janak J Parekh janak@cs.columbia.edu Administrivia Homework due next week Problem #2 revisited Constructors, revisited Remember: a

More information

JAVA: A Primer. By: Amrita Rajagopal

JAVA: A Primer. By: Amrita Rajagopal JAVA: A Primer By: Amrita Rajagopal 1 Some facts about JAVA JAVA is an Object Oriented Programming language (OOP) Everything in Java is an object application-- a Java program that executes independently

More information

Expert C++/CLI:.NET for Visual C++ Programmers

Expert C++/CLI:.NET for Visual C++ Programmers Expert C++/CLI:.NET for Visual C++ Programmers Marcus Heege Contents About the Author About the Technical Reviewer Acknowledgments xiii xv xvii CHAPTER 1 Why C++/CLI? 1 Extending C++ with.net Features

More information

Introduction To C#.NET

Introduction To C#.NET Introduction To C#.NET Microsoft.Net was formerly known as Next Generation Windows Services(NGWS).It is a completely new platform for developing the next generation of windows/web applications. However

More information

Chapter 1:- Introduction to.net. Compiled By:- Ankit Shah Assistant Professor, SVBIT.

Chapter 1:- Introduction to.net. Compiled By:- Ankit Shah Assistant Professor, SVBIT. Chapter 1:- Introduction to.net Compiled By:- Assistant Professor, SVBIT. What is.net? 2 Microsoft s vision of the future of applications in the Internet age Increased robustness over classic Windows apps

More information