Sunday, 17 April 2011

ASP.NET

--ASP.NET is not a programming language rather it is a server side technology (or) web technology used to build interactive and dynamic web sites...

DHTML:DHTML is the combination of html & client side scripting langusge..


CLIENT: A CLIENT is the browser using which we send the request to the server in the internet to get the data from the internet.
example for client: IE , Mozzilla,firefox,chrome.....etc

CLIENT SIDE SCRIPTING CODE: the code that will be executed with in the client..i.e.., in browser is known as client side scripting code..


CLIENT SIDE SCRIPTING LANGUAGE: The programming lang used to write the client side scripting code is known as client side scripting language..
ex) VB script ,Java Script, JScript...etc

PARSER: A parser is similar to interpreter which is used to parse or interpret the code
Any browser will contain 3 ty








Thursday, 14 April 2011

JAVA SCRIPT

JAVA SCRIPT is usedd for client side validations and events
-JAVA SCRIpt is develope by Nascape company and later was adopted by sun company due toits flexibility.

--JAVA SCRIPT is case sensitive programming language.
--JAVA Script code can be written in any text edditor and can be executed in any browser.
--every browser will contain client side scripting language parser to execute the java script code.
--JAVA Script is doesn't contain any predefined datatypes
--JAVASCRIPT is flatform independent.
--JAVA SCRIPT code can be implemented along with html code and html tags also.
--save the file with .HTML extension otherwise we can save with .JS extension.
syntax:
<script langusge ="javascript">
code
.
.
.</script>

-- JAVA SCRIPT does not support any predefined datatypes.


HTML


HTML--Hyper Text Markup Language
--HTML code can be written in any text editor
--HTML code can be executed in any browser.browser will contain html parser the html code

TAG--A TAG is a html keyword enclosed with angular bracts like
<keyword> -->opening tag
</keyword> --->closing tag

HTML code can be divided into 3parts
1)CONTAINER TAGS
---it contains both opening & closing tags
---ex) <html>  </html>,<head>  </head>

2)NONCONTAINER TAGS
---it will contain only opening tags & doesn't contain closing tag.
--ex)  <br> , <hr>,<img>

3)SPECIAL ENTITIES
--it indicates special meaning to the HTML parser
--ex) &nbsp(space),&lt,&gt

ATTRIBUTE:
-----An option that can be used along with any html tag is known as an attribute.every attribute can contain one or more values always attribute value should be enclosed with double quotes.
ex)--<H1 align="left">

Division:
---Division tag is used to group the related things togeather i.e.., if we want to perform common settings for group of things then we will use division tag.

HYPERLINK:
----A link that diverts the user request from current location to other location is known as hyperlink..
2types of hyperlinks
1) INTERNAL HYPERLINK:
--A hyperlink created with in the same page or a hyperlink for which source are target location are present with inthe same web pages is known as internal hyperlink.
at source) <A href="#linkname:>Displaytext</A>
at target) <A name="linkname>Dosplaytext</A>

2) EXTERNAL HYPERLINK:
--A hyperlink craedted in b/w te web page or in b/w sites is known as external yperlink

TAGS

<MARQUEE> displaying te data with scrolling effect
<marquee direction="value" behaviour="value">
display data
</marquee>

<FRAME> we can divide the page into required no.of parts. Each frame is identified with a name & with out name.
- to divide the page into frames we use a tag known as frameset
---frameset will contain 2attributes
1)row attribute
2) cols attribute

CSS:Cascading Style Sheets
--CSS are used to apply the different styles to the controls or data
--css are introduced in the year of 1975 in html
-- styles are give very good and diff look for the controls or page
HTML supports 3 types of stylesheets
1)inline stylesheets
2)internal stylesheets
3)external stylesheets

--INLINE stylesheeta are used to write the styles cose with in the same tag for which we want to apply the style.
-INTERNAL stylesheets are written in headpart by using a separate tag style.
like
<style type="text/css">
style code
</style>

EXTERNAL stylesheeta sre stored in a separate file with a default extension of .css and will be linked to the html files

Tuesday, 5 April 2011

C#.net Quens

What is C#.NET?
--C#.NET is the most powerfull programming language among all programing languages of .NET because C#.NET will contain all features of C++ ,VB6.0 ,JAVA and additional features


C#.NET== C++  + VB6.0  +  JAVA  +  Additional features


list of Applications that can be created usig Visual studio.NET ?
--console applictaions
   class lib
   windows forms appplications
   windows control library
   windows services
   WCF Applications
   WPF Applications
    WCF Services
    Web Services


Console Applications:  CA Basic programming for C#.NET completly
                                    CA do not provide any GUI facilities
                                    CA completly work with CUI mode


GUI--Graphical User Interface
CUI--Charecter User Interface


Intellisense:  An Intellisence is the small window can be consider as a small brain which contain all the namespace names , Class names & predefined functions available


ShortCut key is CTRL+SPACEBAR


Console class:
        console is a class available in system namespace.this class will contain various functions which are helpfull to write the code to work with i/p o/p operations.


How many types of Explicit typecasting?
--C#.NET supports $ types of Explicit typeCasting
    Type Casting
     Boxing And Unboxing
      C++ Style of typeCasting
      parsing


What is Array?
--An array is a user defined data type Used to store group of values with the same name.
SYNTAX: Datype[ ] Arrayname = new Datatype [Size] ;


Methods of Array Object?
--Copy To( Arrayname , int index)
   Min( )
   Max( )
   Sum( )
 Properties Of Array Object?
-- Length  Rank


Jagged arrays are used in Gamming programming in Realtime


Boxing supports 2types:
      Implicit Boxing
       Explicit Boxing
Boxing is 20 times costlier than normal Intialization


UnBoxing is 4 times Costlier than normal Intialization


OBJECT ORIENTED PROGRAMMING


CLASS: A class is the collection of things that contain common similarities or features.


OBJECT: An Object is used to represent a class without object we can't represent the class
An object is known as an instance of the class


Features of OOP:
-- Abstraction
   Encapsulation
    Polymorphysm
    Inheritance


Abstraction : Abstarction is the process of hiding the implementation but proving the service or results...


Encapsulation: Encapsulation is the process of binding the member variable of class along with member function.


Polymorphsm:  This word is derived from Greek. Poly means many, morph means behaviour (or) forms
i.e.., same function or operator will show diff behaviour when no.of arguments & datatypes arguements are changed..

Inheritance: Inheritance is the process of creating a new class from an existing class..


kinds of Inheritances:
    single inheritence
     muntli level inheritence
      multiple inheritence
        hybrid inheritence
         hyrarchical inheritence


Access Modifiers like:
     private
     protected
     internal ( default)
     procted internal
     public


In C#.NET a class can contain 7 Members
---Datafields
    Functions
    Constructors
    Destructors
    Properties
    Indexes
    Events


DATA FIELD: Data fields are responcible for to store the data related to the class
syntax:AccessModifier Datatype DataFieldName
ex:  public int empid;


METHOD:A method is a reusable pease of code used to perform same task..
  1) procedure
  2) Functions


Procedure: A procedure is a method which will never return any value to the calling place..
Function: A function is method which always will return a single value to the calling place..


constructors?
--a constructor is a member method of class which is invoked automatically when an object to the class is created.
--a constructor should be same as class name
--a constructor does not have any return type even void also


types of constructor?
--instance constructor
    1) default constructor,
     there are two types
--user defined default constructor and system defined default constructor
     2)parameterized,
    3) copy and
    4) private.


--non instance constructor
1)static constructor


how many constructor can class contain?
-any number of


where static constructor are used?
--Static constructors are also useful when creating wrapper classes for unmanaged code, when the constructor can call the LoadLibrary method.


what is the use of SU24?
--SU24 is being used to display the authorization checks(whether authorization check is there or not) for the Transaction Codes.


What is signature?
-- The signature of a method must be unique in the class in which the method is declared..


Function Overloading :
        A function will be overloading in two situations..
              1) when data types of the argument are changed
               2) when number of argument are changed
--providing new implementation toa function with different signature is known as function overloading..

Function Overriding?
--Providing New implementation to a function with same name and same signature is known as Funtion Overriding


Operator overloading ?
--every operator has some pre-defined work given by the designers if we assign additional work apart from the existing work to any operator then we say operator is overloaded..


List of Operators that can not be overloaded?
--  member selection ( . )
-- pointer to  menber selection ( .* )
-- scope resolution ( :: )
-- Conditional  ( ?: )
-- preprocessor convert to string ( # )
-- preprocessor concatenate ( ## )


ACCESS MODIFIERS:
--Private: private members are accessible only with in the same class.
--protected: protected members are accessible with in the same class and also in the derived class, derived class might be in same assembly or in diff assembly..
--internal:Internal members are accessible in any class with in the same assembly but nor accessible in any class out side the assembly
--proctedinternal:this is combination of both procted and internal i.e.., protected internal members are accessible in any class with in the same assembly.and also from the derived classes out side the assembly, but not accessible from the Non-Derived classes out side the assembly..
--public: public members are accesible in any class in any assembly.

Abstract Function:
     A functioon which contains only Declaration /Signature and doesn.t contain implementation /body /defination is known as Abstract Function

Is Abstract function can be terminated?
--abstract fun can be terminated

What is Abstract Class?
--A class which contains one or more abstract functions is known as Abstract class..

By Default Abstract class Functions are not treated as PUBLIC AND ABSTRACT..

What is INTERFACE?
--An Interface is a contract b/w itself and derived class

Monday, 4 April 2011

Dot net framework interview quens

why Dot .net is used?
-- .net is more powerfull tool used to build distibuted computing applications.

Expaln code Execution process in .net?
--- 2 types
1) language compile compilation-its convert source code to MSILcode
2)CLR compilation- itsconvert MSIL to Native code.

How Many languages .NET supports?
--61

Is .NET platform independent?
-- .NET is independent using .NET framefork
                 Dependent Using Monoframework.

What is platform?
--platform is combination of OS Architecture & process Architecture

what is platform Dependency?
-- If code generated by the language compiler compilation doesn't run / execute on a different processor and in diff OS..

What is platform Independency?
--If code generated by the language compiler compilation  runs on any  processor and any OS..

How many times code is compiled in .NET?
--2

Which code compilation is faster?
--2nd compilation is fast

What are the components of  .NET Framework?
-- CLR(Common Language Runtime)
         --CLS
         --CTS
         --GC
           --JIT
-- BCL( Base Class Library) or FCL (Framework class Library)

What is CLR and Explain its role?
-- CLR(common language runtime) is to convert the MSIL code to native code.

What is CLS and Expain its Role?
--CLS(Common Language Specification) is responcible to provide language interoperability.

What is language interoperability?
--Providing code execution support for that has been written in other programming languages is known as langiage interoperability.
  for example.. if u wirte code C#.NET that can be executed in VB.NET,J#.net.. other progming lang of .net..

What is Managed Code and Managed Code execution?
--The code that has to be written in .NET supporting prog languages will contain MSIL format and is directly executed by the CLR which is known as Managed code.

What is UnManaged code and Un Managed Code execution?
--Code for which there is no MSIL format is available is not executed by the CLR directly which is known as unmanaged code.and the code execution process is known as unmanaged code execution.

Which code execution is faster Managed/UnManaged?
--managed code is faster

What is CTS ?
--CTS(common type system)

What are the catagories of data types in CTS?
--2tyes    value type ......... Reference type

what is value type?
--the Data types which are able to store the data directly into the memory location..

What is Reference type?
--The data types which can't store the data directly into their memory location rather its refers to other memory location..where the data is stored is known as reference type.

examples of value type and reference types?
--value type ex  predifined funs,structures,enums
--Reference type ex Arrays,classes, object, interfaces.

What is boxing?
--it is a process of converting a variable from value type to reference type.

What is UnBoxing?
--it is a process of converting a variable from reference type to value type.

How many Generations are maintained?
--3

how generation sizes are allotted?
--Increasing order/ Decreasing order---- Gen0<Gen1<Gen2 / Gen2>Gen1>Gen0

What is the role of JIT compiler?
--JIT(J ust In Time)compiler responcible to compile the MSIL code & Generates native code.

list out the types of Jitters?
--3types
  prejitter
econo jitter
Normal jitter

In which from a class library / Assembly in .NET exists?
--DLL & EXE

What is DLL?
-- DLL(Dynamic Link Library) is used as a supportive file. DLL doesn't contain any entry point so it can't run individually.
the library functions of the DLL are linked to the applications Dynamically or at runtime so name is DLL

What is EXE?
--An EXE is an executable file. An exe will contain main function or entry point so it can run individually.

What are the types of Assembly?
--private/local Assembly
   public/global/shared Assembly
   static assembly
   Dynamic assembly
   satellite assembly

What is GAC?
-- GAC(Global Assembly Cache)..the global place is known as GAC

What is the Physical Location of GAC?
--C:\windows\assembly

What is strong name explain?
--strong name is the unique name used to identity the assembly in GAC

what is the format of PE file?
--COFF(common object file format)

What is COFF?
--it is a property of ms. i.e..,ma applications can understand only COFF format..