Haryana Engineering College , Engineering Institutes in Haryana, Engineering Colleges in Haryana, Haryana Engineering Colleges , Engineering Colleges in Haryana, Haryana Engineering Colleges, Engineering Institutes in Haryana, Haryana Engineering Institutes, List of Engineering Colleges in Haryana, Haryana Engineering Colleges List, List of Engineering Institutes in Haryana, Haryana Engineering Institutes List , Haryana Engineering College Exams in India , Ranking of haryana engineering colleges , Engineering Colleges in Haryana Institutes in India

Friday, August 22, 2008

HCTM Kaithal









For HCTM Kaithal Info
Haryana College of Technology and Management (HCTM)
Ambala Road (NH-65),
Kaithal
Haryana - 136 027

Haryana College of Technology and Management (HCTM Kaithal) Info regarding College and Admission

1. Chairman : 0124-26223431 (R), 0124-26333250 (O), 09810005965 (M)
2. Managing Director: 01746-280101 (O), 01746-235890, 235879 (R) , 09810003430 (M)
3. Principal: 01746-280100 (O), 01746-235940(R), 09996038003 (M)
4. Administrator: 09996038006(M)

HCTM kaithal Info regarding respective department of committee

1. Chairman : ranjan@hctmkaithal-edu.org
2. Managing Director: gksethi@hctmkaithal-edu.org
3. Principal: dpgupta@hctmkaithal-edu.org
4. Administrator: sumit@hctmkaithal-edu.org
5. Coordinator: vinona@hctmkaithal-edu.org
6. Computer Dept: computer@hctmkaithal-edu.org
7. Information Technology Dept: it@hctmkaithal-edu.org
8. Electronics and Communication Dept: electronics@hctmkaithal-edu.org
9. Mechanical Engg. Dept.: mechanical@hctmkaithal-edu.org
10. Electrical and Electronics Dept. : electrical@hctmkaithal-edu.org
11. Library: balesh@hctmkaithal-edu.org


HCTM kaithal B.Tech Courses

Computer Science & Engg.
Information Technology
Electronics & Comm. Engg.
Mechanical Engg
Civil Engg
Electrical & Electronics Engg

[B] Master of Business Administration (MBA), 2 year programme







Name of the Affiliating University.
Kurukshetra University, KurukshetraPermanent, Vide Letter No. CG-II/2003/9748, 25.08.03
Governance.

1. Members of the Board and their brief background [Annex-I]
2. Members of Academic Advisory Body [Annex-II]
3. Frequency of the Board Meetings and Academic Advisory Body - 2 per year
4. Organizational chart and processes [Annex-III]
5. Nature and Extent of involvement of faculty and students in academic affairs/improvements [Annex-IV]
6. Mechanism/Norms & Procedure for democratic/good Governance [Annex-V]
7. Student Feedback on Institutional Governance/faculty performance [Annex-VI]
8. Grievance redressal mechanism for faculty, staff and students [Annex-VII]

3. For each programme following detail is given.

Programme name
No. of seats
Duration
Computer Science & Engineering
120
4 Years

Electronics & Communication Engg
120
4 Years

Mechanical Engineering
120
4 Years




Civil Engineering
60
4 Years

Electrical & Electronics Engineering
60
4 Years

Information Technology
60
4 Years

Master of Business Administration (MBA)
60
2 Years




Cut off mark/rank for admission during the last three years

2005- 18479(CEET), 2006- 490071(AIEEE), 2007- 578979(AIEEE)





Fee
Tuition Fees & Security (Refundable)
(Rs. 36500/- + Rs. 1000*) + Rs. 2000/-(one time charged)

Hostel Charges Per Annum

Rs. 38000/-

* This additional fee is applicable for students in the accredited discipline i.e. ECE, EEE, ME



Placement Facilities



Campus placement in last three years with minimum salary, maximum salary and average salary [Annex-VIII]

Contact here:-


Haryana College of Technology and Management(HCTM) Ambala Road (NH-65)
, Kaithal, Haryana - 136 027


For Info regarding College and Admission,

Chairman: 0124-26223431 (R), 0124-26333250 (O), 09810005965 (M),

Managing Director: 01746-280101 (O), 01746-235890, 235879 (R), 09810003430 (M), Principal: 01746-280100 (O), 01746-235940(R), 09996038003 (M),
Administrator: 09996038006(M)


College: HCTM Kaithal, Kurukshetra University

Tags HCTM HCTMK Kaithal Engineering College HCTM Kaithal Kaithal College HCTM Building

A SHORT LIST OF TICO TRAINED UNDER-GRADUATE STUDENTS In 2005-2006 HCTM Kaithal

1 Nikhil malik HCTM,Kaithal K.U Electronics 2005

2 Kaushalkishore gupta HCTM,Kaithal K.U Electronics 2005

3 Ashish Thakur HCTM,Kaithal K.U Electronics 2005

4 Amit HCTM,Kaithal K.U Electronics 2005

5 Sumit Mathur HCTM,Kaithal K.U Electronics 2005

6 Akshay HCTM,Kaithal K.U Electronics 2005

List of selected students of 2007 batch in L&T Infotech campus held at LIET.


Archit Bansal HCTM,KAITHAL
varun kapoor HCTM,KAITHAL
sonia narula HCTM,KAITHAL
Rohan kapoor HCTM,KAITHAL
Himanshu makkar HCTM,KAITHAL
megha pasricha HCTM

Read more...

Tuesday, August 19, 2008

Al-Falah School of Engineering & Technology

Al-Falah School of Engineering & Technology (AFSET) Programmes in Mechanical Engineering and Electronics and Communication are Accreditated by national Board of Accreditation A Muslim Minority Institution under the Article 30 (1) of the Constitution of India Affiliated to M.D.University, Rohtak, Haryana Approved by AICTE, New Delhi. It was established in 1997 as an endeavour of Al-Falah Charitable Trust in keeping approach for professional training and guidance. The emphasis at the AFSET is on nurturing technical talent by providing need based educations and to create a resource pool for developing cutting edge technologies for the country. This technical talent would enrich the national fabric and shall act as a driving force for transforming the country into a technical savy nation. With this vision, AFSET has excelled in importing quality education and has developed into a premier engineering institute with emphasis on promoting suitably trained technical manpower at the regional as well as national level for meeting the challenges faced by global corporate world of today.





Courses Offered !


Offering P.G. Courses (M. Tech) in following Branches of Engineering:-
M. Tech. (Mechanical Engineering)
M. Tech. (Electronics & Communication Engineering)
M. Tech. (Computer Science & Engineering)
M.B.A (Master in Business Administration)
Offering Degree courses (B. Tech.) in following Branches of Engineering:


Mechanical Engineering (ME)
Electronics & Communication.Engineering (ECE)
Computer Science & Engineering (CSE)
Electrical & Electronics Engineering (EEE)
Mechanical & Automation Engineering (MAE)
Civil Engineering

Al-Falah School of Engineering and Technology
Head - Office
Address : 274-A, AL-FALAH HOUSE, Jamia Nagar Okhla,
New Delhi - 110 025 (India)Phone : +(91)-9818834908/9873025162E-
mail : info@afset.org, jasiddiqui@rediffmail.com, fardeenbeg786@rediffmail.com

Institute:Dhauj, Faridabad Haryana (India)Phone : +(91)-9818834908/9873025162E-mail : info@afset.org, jasiddiqui@rediffmail.com, fardeenbeg786@rediffmail.com

Read more...

SHRI KRISHAN INSTITUTE OF ENGINEERING & TECHNOLOGY

Shri Krishan Institute of Engineering and Technology was established in 1997 under the aegis of Shri Krishan Educational TRUST, Kurukshetra with a mission of imparting QUALITY engineering Education in various disciplines of Engineering & Technology for the welfare of Technical and Social Community. The Institute is conveniently located in the holy land of Mahabharat, Kurukshetra on its self-sustained beautiful campus of 23 acres amidst lush green surroundings. The Institute since its inception has been growing in strength and importance with the years, and has become established as one of the premier engineering education institute of the country. The institute’s strategic plan, since its very establishment, has moved forward on the principle that an intellectually stimulating environment and a lively, engaging campus life will attract outstanding students and help them realize their fullest potential. With an aim to give students an extraordinary engineering experience, this principle has always influenced our academic, residential & co-curricular planning.

Program Annual Intake
B.Tech. Electronics & Comm. 90

B.Tech. Computer 90

B.Tech. Information Tech. 60

B.Tech. Mechanical Engg. 60

Contact for more information:

SHRI KRISHAN INSTITUTE OF ENGINEERING & TECHNOLOGY

Rattan Dera Road,

Kurukshetra – 136 118
Ph.: 01744-224221, 229641 , 227040

President(Trust) :98120 36346,

Chairman(SKIET): 94160 39993

Principal : 9215909094Fax: 01744-229641

Email : skietkurukshetra@rediffmail.com






Read more...

Monday, August 18, 2008

C++ Interview Question




What is object?

An object is an instantiation of a class.


What is class?


A class is a combination of data and member functions.which hold the behavoiur of an objects.
It is declared with keyword Class.
As like this

Class name
{
Access specifier
Members
} objest name


Disadvantages of copy constructor?


When new variable is created then copy constructor is called.when we are not creating any copy constructor then C++ uses the default copy constructor and makes shallow copy means copies each field.

What are the operators we can not overload ?

. ,:? ,::. .* these are the oprator we cannot overload.


What is difference between constructor and copy constructor?
  • In copy constructor it accept reference of own class but in constructor its not.
  • the major difference between the copy constructor and the simple constructor is that in copy constructor we are first creating the object instance on which it is called and then we are initializing the values in its member variables.but in the constructor , we only assign the values to the member variables of the object instance which is already being created.

What do you means by friend function?


A friend function is a non member function of a class.with the help of friend function all access permissions are given to function. Friend function allows the functions of outside class to access the private data members.

what is the difference between procedure oriented language and object oriented language?

Procedure oriented language is based on function not on objects. Means no concept of class and encapsulation. But in object oriented language there is concept of class and objects and object oriented language is also used the concept of inheritance.

when is memory allocated to class?


When we create a class and define the data and member functions then no memory is allocated. Memory is allocated when we instantiate an objects of the class .

What is the Difference between realloc() and free()?


Realloc means reallocation of memory. With the help of realloc function we can reallocate the memory or we can say we can decrease or increase the memory size.

realloc(ptest,sizeof(test));

where ptest is the structure. After realloc ptest contains new address and memory allocated will double the size of pervious memory.

Free function is used to free the memory which is previously allocated.

What is function overloading?


Function overloading means same name with different parameter . when an overloaded function is called then compiler select the proper function finding out the number and type of argument .

What is operator overloading?


Operator overloading means we can overload exiting operator . we can redefined operator so that we can work on user defined class.

What do you mean by inline function?


When we add the inline keyword to function then code of the function is inserted instead of jump to function .
Inline specifier is just suggestion to the compiler then its depend on the compiler to ignore or performed.

What are the condition when the compiler is ignored the function to convert to inline ?

  • When the function contain static variable
  • When function is recursive .
  • When it contain loop and goto statement .
  • Inline function is used for small function only.

What is RTTI?

  • RTTI : Run Time Type Identification.
  • RTTI is used to find out what type of objects it is at run time .
  • For this we used operators dynamic_cast and typeid.
  • RTTI is used to cast derived class object into base class

What is pure virtual function?


A pure virtual functions doesn't have a body. You cannot create an instance of a class with a pure virtual function.And you must overloaded that function.

Class A
{
Public:
Virtual void func()=0;
}


Here is the example in which function func() is pure virtual. We can make pure virtual function with function equal zero.

What is virtual destructors?


When the object is destroyed explicitly by applying delete operator for the base class then base class destructor is called. But there is one problem is created when derived class inherit the base class then how it is referenced to solve the problem of this we use virtual destructor in which first derived class destructor is called after that base class .

What are the advantages of inheritance?

  • Code reusability
  • Save time during program development .
  • It is use for developing high quality software.
  • Reduce time during development.
  • Increase understandability .

What is the difference between Function and Member function?


Function define outside the scope of class but member function is define with in scope of class and member function we can access with the help of scope resolution operator.

What is the difference between Object and Instance?


Object is obtained when it has a life, means it has occupied some memory. Instance is the copy of the Reference that points to object at a point of time.



Difference between macro and inline()?

  • Inline follows strict parameter type checking, macros do not.
  • Macros are always expanded by preprocessor, whereas compiler may or may not replace the inline definitions.
  • Compiler can check in case of inline but not in case of macro.

What do you means by static ?


Static means that when it is initialized, it remains in memory until the end of program

Can destructor be private?


Yes destructors can be private.


What is this pointer?


The this pointer is a pointer accessible only within the nonstatic member functions of a class, struct, or union type. It points to the object for which the member function is called. Static member functions do not have a this pointer.


What is template?


Template are generic data type which can operate on different data type of information. Use templates in situations that result in duplication of the same code for multiple types.

What is "strstream”?


Class that reads and writes to an array in memory .

What is namespace?

Namespaces allow to group entities like classes, objects and functions under a name. This way the global scope can be divided in "sub-scopes", each one with its own name.

The format of namespaces is:

namespace identifier

{

entities

}

Can you allocate the memory using malloc() in C and deallocate the same memory using free() in c++?


No, we should not do that. if we do that we can have un-defined or un-predictable results. Which can corrupt other memory too. Instead, we should make a simple rule not to do that.

What are the things contains in .obj file ? ( compiled result of .cpp file )


C++ .obj file holds code and data suitable for linking with other object files to create an executable or a shared object file.

what is the use of volatile keyword? Give me one example?


The volatile type qualifier is applied to a definition of a variable that may be altered from outside the program (i.e., the variable is not completely under the control of the program). Thus, the compiler cannot perform optimizations (such as speeding program execution or reducing memory consumption, for example) that depend on "knowing a variable's behavior is influenced only by program activities the compiler can observe."

(notes:)

1) volatile indicate the object is modified by something not directly under the compiler's control (i.e., the hardware itself)

2) one use of volatile qualifier is to provide access to memory locations used by asynchronous processes such as interrupt handlers.

3) Another example might be the global variables that keeps track of the total number of timer interrrupts.

What is function overriding?


The function overloading is the technique in which you can make the function with more than one name but only if you will change the paramaters or the number of the paramaters.

Can we take "main function" as of type float,char etc?


Its possible only with int.If a function is declared as void that it may return anything by default.

what is the difference betwen wait() and delay()?


Wait() and delay() works same but works on different platforms. Wait(2) will wait processing fro 2 second on Linux/Unix while delay(2000) with wait for 2 second but on DOS or Windows.

so wait(2) on linux == delay(2000) on DOS

Delay() is under while one can directly use wait in his/her program.

What is the difference between macro and inline()?


1. Inline follows strict parameter type checking, macros do not.

2. Macros are always expanded by preprocessor, whereas compiler may or may not replace the inline definitions.

What is operator overloading?what r the advantages of operator overloading?


programming which gives an extra ability to an operator to act on a User-defined operand(Objects).Uses of Operator Overloading:Extensability: An operator will act differently depending on the operands provided.Operator is not limited to work only with primitive Data type.

In c++ have a default constructor ?


Yes C++ does have a default constructor provided by the compiler.In this case all the members of the class are initialized to null values.These values act as the default values .For eg: MyClass me;In the above case since the object is not initialized to any value so the default constructor will be called which will initialize the class with the default values.

What are the types of STL containers?
deque

hash_map

hash_multimap

hash_multiset

hash_set

list map

multimap

multiset

set

vector

Difference between a "assignment operator" and a "copy constructor" ?


Copy constructor is called every time a copy of an object is made. When you pass an object by value, either into a function or as a function return value, a temporary copy of that object is made. Assignment operator is called whenever you assign to an object.

Assignment operator must check to see if the right-hand side of the assignment operator is the object itself. It executes only the two sides are not equal.

What is the Basic nature of "cin" and "cout" and what concept or principle we are using on those two?


Basically "cin and cout" are INSTANCES of istream and ostream classes respectively.And the concept which is used on cin and cout is operator overloading. Extraction and Insertion operators are overloaded for input and ouput operations.

What is conversion constructor?
constructor with a single argument makes that constructor as conversion ctor and it can be used for type conversion.


for example:


class Boo

{

public: Boo( int i );

};
Boo BooObject = 10 ; // assigning int 10 Boo object

What is conversion operator?


class can have a public method for specific data type conversions.
for example:

class Boo{

double value;

public: Boo(int i )

operator double()

{ return value;

}

};
Boo BooObject;
double i = BooObject; // assigning object to variable i of type double. now conversion operator gets called to assign the value.

What is difference between template and macro?


There is no way for the compiler to verify that the macro parameters are of compatible types. The macro is expanded without any special type checking.
If macro parameter has a postincremented variable ( like c++ ), the increment is performed two times.
Because macros are expanded by the preprocessor, compiler error messages will refer to the expanded macro, rather than the macro definition itself. Also, the macro will show up in expanded form during debugging.
for example:
Macro:
#define min(i, j) (i <>template:

template

T min (T i, T j)

{

return i <>

}

What are storage qualifiers in C++ ?


They are..
const

volatile

mutable

Const keyword indicates that memory once initialized, should not be altered by a program.


volatile keyword indicates that the value in the memory location can be altered even though nothing in the programcode modifies the contents. for example if you have a pointer to hardware location that contains the time, where hardware changes the value of this pointer variable and not the program. The intent of this keyword to improve the optimization ability of the compiler.


mutable keyword indicates that particular member of a structure or class can be altered even if a particular structure variable, class, or class member function is constant.

What is reference ?
reference is a name that acts as an alias, or alternative name, for a previously defined variable or an object.
prepending variable with "&" symbol makes it as reference.
for example:

int a;

int &b = a;

When do use "const" reference arguments in function?

a) Using const protects you against programming errors that inadvertently alter data.

b) Using const allows function to process both const and non-const actual arguments, while a function without const in the prototype can only accept non constant arguments.

c) Using a const reference allows the function to generate and use a temporary variable appropriately.

What is Memory alignment?

The term alignment primarily means the tendency of an address pointer value to be a multiple of some power of two. So a pointer with two byte alignment has a zero in the least significant bit. And a pointer with four byte alignment has a zero in both the two least significant bits. And so on. More alignment means a longer sequence of zero bits in the lowest bits of a pointer.

What is the use of 'using' declaration?


A using declaration makes it possible to use a name from a namespace without the scope operator.

What is a dangling pointer?


A dangling pointer arises when you use the address of an object after its lifetime is over. This may occur in situations like returning addresses of the automatic variables from a function or using the address of the memory block after it is freed.

What do you mean by Stack unwinding?

It is a process during exception handling when the destructor is called for all local objects in the stack between the place where the exception was thrown and where it is caught.

What is Dynamic memory allocation?

The process of allocating Memory Reallocation in C at run time is known as dynamic memory allocation(Memory Reallocation in C ). Although c does not inherently have this facility there are four library routines which allow this function. Many languages permit a programmer to specify an array size at run time. Such languages have the ability to calculate and assign during executions, the memory space required by the variables in the program. But c inherently does not have this facility but supports with memory management functions, which can be used to allocate and free memory during the program execution. The following functions are used in c for purpose of memory management.

malloc : Allocates Memory Reallocation in C requests size of bytes and returns a pointer to the Ist byte of allocated space

calloc : Allocates space for an array of elements initializes them to zero and returns a pointer to the memory

free : Frees previously allocated space

realloc : Modifies the size of previously allocated space.

Memory Reallocation in C process : According to the conceptual view the program instructions and global and static variable in a permanent storage area and local area variables are stored in stacks. The memory space that is located between these two regions in available for dynamic allocation during the execution of the program. The free memory region is called the heap. The size of heap keeps changing when program is executed due to creation and death of variables that are local for functions and blocks. Therefore it is possible to encounter memory overflow during dynamic allocation process. In such situations, the memory allocation functions mentioned above will return a null pointer.


Read more...

MFC and WIN32 Interviews Question




What is the difference between GetMessage and PeekMessage ?


GetMessage function waits for a message to be placed in the queue before returning where as PeekMessage function does not wait for a message to be placed in the queue before returning.

What’s the difference between PostMessage and SendMessage?


The PostMessage function places (posts) a message in the message queue associated with the thread that created the specified window and then returns without waiting for the thread to process the message.The SendMessage function sends the specified message to a window or windows. The function calls the window procedure for the specified window and does not return until the window procedure has processed the message.

How to create a Modeless Dialog?


Offtopic comment:
Coderzone thanks for letting me know about this thread. I have made it sticky and I hope other members will definitely have some replies coming.m_pModeless is a variable of type CDialog or any of its descendants.

m_pModeless->Create(IDD_DIALOG1, this);

m_pModeless->ShowWindow(SW_SHOW);

this pointer as a paramter suggest we are creating a child dialog of the current dialog/window.

Name the Synchronization objects ?

Following are the synchronization objects

1) Critical Section

2) Event

3) Mutex

4) Semaphore

Classes provided for above synchronization objects are:

1) CCriticalSection

2) CEvent

3) CMutex

4) CSemaphore

What Is CMutex ?
An object of class CMutex represents a “mutex” — a synchronization object that allows one thread mutually exclusive access to a resource. Mutexes are useful when only one thread at a time can be allowed to modify data or some other controlled resource. For example, adding nodes to a linked list is a process that should only be allowed by one thread at a time. By using a CMutex object to control the linked list, only one thread at a time can gain access to the list.To use a CMutex object, construct the CMutex object when it is needed. Specify the name of the mutex you wish to wait on, and that your application should initially own it. You can then access the mutex when the constructor returns. Call CSyncObject::Unlock when you are done accessing the controlled resource.An alternative method for using CMutex objects is to add a variable of type CMutex as a data member to the class you wish to control. During construction of the controlled object, call the constructor of the CMutex data member specifying if the mutex is initially owned, the name of the mutex (if it will be used across process boundaries), and desired security attributes.To access resources controlled by CMutex objects in this manner, first create a variable of either type CSingleLock or type CMultiLock in your resource’s access member function. Then call the lock object’s Lock member function (for example, CSingleLock::Lock). At this point, your thread will either gain access to the resource, wait for the resource to be released and gain access, or wait for the resource to be released and time out, failing to gain access to the resource. In any case, your resource has been accessed in a thread-safe manner. To release the resource, use the lock object’s Unlock member function (for example, CSingleLock::Unlock), or allow the lock object to fall out of scope.

What is the difference between ASSERT and VERIFY?

The main difference between ASSERT and VERIFY is when you compile the release build of the program.ASSERT will not be present in the release build version of the executables/dlls, and its expression that would have been evaluated will be deleted.

VERIFY will be present in the release build version of the executables/dlls but its expression that would have been evaluated will be left intact.

What is thread & process?
Threads are similar to processes, but differ in the way that they share resources. Threads are distinguished from processes in that processes are typically independent, carry considerable state information and have separate address spaces. Threads typically share the memory belonging to their parent process.

what is the use of AFX_MANAGE_STATE ?

By default, MFC uses the resource handle of the main application to load the resource template. If you have an exported function in a DLL, such as one that launches a dialog box in the DLL, this template is actually stored in the DLL module. You need to switch the module state for the correct handle to be used. You can do this by adding the following code to the beginning of the function:AFX_MANAGE_STATE(AfxGetStaticModuleState( ));This swaps the current module state with the state returned from AfxGetStaticModuleState until the end of the current scope.If all your resources lies in the single DLL you can even change the default handle to the DLL handle with the help of AfxSetResourceHandle function.

Why wizards generate enum IDD for dialogs?
It's good programming practice to do it this way, as from the client code you can always refer to the CMyDlg::IDD without worrying what the actual constant is.

What is CArchive class does?

The CArchive class allows you to save a complex network of objects in a permanent binary form (usually disk storage) that persists after those objects are deleted. Later you can load the objects from persistent storage, reconstituting them in memory. This process of making data persistent is called “serialization.”

What is the base class for MFC Framework ?
CObject

If I derive a new class from CObject what are the basic features my derived will get?
Searialization, Debugging support, Runtime time class information, compatibility with collection classes.

What is the use of CCmdTarget ?
It is the base class for the MFC library message map architecture.Which maps commands/messages to the member functions to handle them. Classes derived from this are CWnd,CWinApp,CFrameWnd,CView, CDocument

What is document-view architecture ? Give me one real time example for SDI ?
Document/view architecture, which defines a program structure that relies on document objects to hold an application's data and on view objects to render views of that data. MFC provides the infrastructure for documents and views in the classes CDocument and CView.example of SDI is a wordpad application.

Can you explain the relashionship between document,frame and view ?


The frame window is the application's top-level window. It's normally a WS_OVERLAPPEDWINDOW-style window with a resizing border, a title bar, a system menu, and minimize, maximize, and close buttons. The view is a child window sized to fit the frame window so that it becomes the frame window's client area. The application's data is stored in the document object, a visible representation of which appears in the view. For an SDI application, the frame window class is derived from CFrameWnd, the document class is derived from CDocument, and the view class is derived from CView or a related class such as CScrollView.

How to access document object from view ?

Using GetDocument() function within a CView class.


What is the entry point for window based applications ?


WinMain() is the entry point for window based applications


Explain the flow for a simple win32 based application ?
Starting point for win32 based applications is WinMain()

WinMain begins by calling the API function RegisterClass to register a window class.

The window class(WNDCLASS) defines important characteristics of a window such as its window procedure address, its default background color, and its icon.Once the WNDCLASS is registered, WinMain calls the all-important CreateWindow function to create the application's window.

WinMain follows CreateWindow with calls to ShowWindow and UpdateWindow, which make the window visible and ensure that its WM_PAINT handler is called immediately.

Next comes the message loop. In order to retrieve and dispatch messages, WinMain executes a simple while loop that calls the GetMessage, TranslateMessage, and DispatchMessage API functions repeatedly.

GetMessage checks the message queue. If a message is available, it is removed from the queue and copied to msg;

TranslateMessage converts a keyboard message denoting a character key to an easier-to-use WM_CHAR message,

and DispatchMessage dispatches the message to the window procedure. The message loop executes until GetMessage returns 0, which happens only when a WM_QUIT message is retrieved from the message queue. When this occurs, WinMain ends and the program terminates.

What is model and modeless dialog box ? Give some examples?


When we create Modal Dialog Box we can't move to other windows until this dialog is closed. For eg: MessageBox, where we can't move to the other window until we press ok or cancel. When we create Modeless Dilaog Box we can swap to the other windows. For eg: like a conventional window.

What is CSingleDocTemplate?

It’s a document template class used to create single document interface SDI applications. Only one document can be opened at a time. It identifies the document class used to manage the application's data, the frame window class that encloses views of that data, and the view class used to draw visual representations of the data. The document template also stores a resource ID that the framework uses to load menus, accelerators, and other resources that shape the application's user interface.

What is the difference between hinstance and hprevinstance in WinMain function?

hInstance is used for things like loading resources and any other task which is performed on a per-module basis. A module is either the EXE or a DLL loaded into your program. hPrevInstance used to be the handle to the previously run instance of your program (if any) in Win16. It is always NULL for Win32 programs.

Explain about MDI and CMultiDocTemplate ?

MDI applications are designed using the doc-view architectures in which there could be many views associated with a single document object and an application can open multiple docuements at the same time for eg:WORD.In MDI terms, your main window is called the Frame, this is probably the only window you would have in a SDI (Single Document Interface) program. In MDI there is an additional window, called the MDI Client Window which is a child of your Frame window. CMultiDocTemplate is the document template class used to create MDI applications..The document template also stores a resource ID that the framework uses to load menus, accelerators, and other resources that shape the application's user interface.

Tell me the different controls in MFC ?
CAnimateCtrl,CButton,CEdit,CListBox,CComboBox,CRic hEditCtrl,CStatic, CTreeCtrl,CToolTipCtrl,CIPAddressCtrl,CTabCtrl,CDa teTimeCtrl,CHeaderCtrl,CListCtrl,CMonthCalCtrl,COl eCtrl,CProgressCtrl,CScrollBar,CSliderCtrl,CStatus BarCtrl,CTollBarCtrl etc.,

What is the use of OnInitDialog ?
This message is sent to the dialog box during the Create, CreateIndirect, or DoModal calls, which occur immediately before the dialog box is displayed. This can be used to intialize the dialog controls or show/hide the controls etc.,


What is the functioning of UpdateData() funciton ?

This is to initialize data in a dialog box, or to retrieve and validate dialog data.The framework automatically calls UpdateData with bSaveAndValidate set to FALSE when a modal dialog box is created in the default implementation of CDialog::OnInitDialog. The call occurs before the dialog box is visible. The default implementation of CDialog::OnOK calls this member function with bSaveAndValidate set to TRUE to retrieve the data, and if successful, will close the dialog box. If the Cancel button is clicked in the dialog box, the dialog box is closed without the data being retrieved.

How to update all the views whenever document got updated ?

call UpdateAllViews()- which updates all views associated with the document by calling OnUpdate() function of all the views.


How to handle RTTI in MFC ?


Run-Time Type Information is a mechanism that allows the type of an object to be determined during the program execution.3 main elements to RTTI in MFC are

1.Dynamic_cast operatorUsed for conversion of polymorphic types.

2.typeid - used for identifying the exact type of an object 3. type_info classused to hold the type information returned by typeid.


What is serialization ?which function is responsible for serializing data ?
Searialization is the process of streaming the object data to or from a persistent storage medium. It's useful in Doc-View Architecture. CObject :: Serialize() function is used to do serialization.


Explain about different kinds of threads in MFC?


2 types of thread in MFc are UserInterface thread and worker thread. UserInterface threads maintain the message loops and used to handles user input,creates windows and process messges sent to those windows.Worker thread don't use message loops and mainly used to perform background operations such as printing etc.,Created using AfxBeginThread bypassing ThreadFunction to create worker thread and Runtime class object to create a user interface thread.


what is the use of Mutex and critical section ?


Mutex as the name suggest allows a mutullay exclusive access to a shared resource among the threads. Critical section is a piece of code that can be executed safely to be accessed by two or more threads. Criticalsection provides synchronization means for one process only, while mutexes allow data synchronization across processes. Means two or more threads can share the common resources among more than one application or process boundaries in mutex.


What is socket?
A "socket" is an endpoint of communication: an object through which your application communicates with other Windows Sockets applications across a network.The two MFC Windows Sockets programming models are supported by the following classes: CAsyncSocket and CSocket


What is the difference between Synchronous sockets and asynchronous sockets?


Consider a server application that is listening on a specific port to get data from clients. In synchronous receiving, while the server is waiting to receive data from a client, if the stream is empty the main thread will block until the request for data is satisfied. Hence, the server cannot do anything else until it receives data from the client. If another client attempts to connect to the server at that time, the server cannot process that request because it is blocked on the first client. This behavior is not acceptable for a real-world application where we need to support multiple clients at the same time. In asynchronous communication, while the server is listening or receiving data from a client, it can still process connection requests from other clients as well as receive data from those clients. When a server is receiving asynchronously, a separate thread (at the OS level) listens on the socket and will invoke a callback function when a socket event occurs. This callback function in turn will respond and process that socket event.


Have you ever used win32 APIs ?


MFC is a wrapper around win32 API, It provides classes which uses the win32 API, Some of the API's we usually work with are : GetDlgItemInt,GetDlgItemText,GetWindowTextA,Messag eBoxA,CreateFile,CreateMutex,CreateEvent,WaitForSi ngleObject,CreateWindow,ShowWindow etc.,


What is the difference between ANSI Code and UNICODE ?


ANSI code represents 8bytes data where UNICODE represents 16bytes data for supporting universal languages. One major draw back to ASCII was you could only have 256 different characters. However, languages such as Japanese and Arabic have thousands of characters. Thus ASCII would not work in these situations. The result was Unicode which allowed for up to 65,536 different characters


What is the difference between regular dlls and extended dlls?


Regular dlls wraps only the c/c++ functions. Where extention dlls include c++ interfaces where we can create the objects of it and use in our classes. Extended dlls support object oriented concepts.Regural dlls uses mfc internally and exported functions can be used by any mfc or non-mfc applications.Extention dlls implements reusable classes derived from mfc library,built using dll version of mfc.Only mfc executables(applications/dll-shared version of mfc) can use extention dlls.extention dlls used for passing mfc derived objects b/w applications and dlls. Regulardlls linked both statically and dynamically but extended dlls links dynamically.


What is a message map, and what is the advantage of a message map over virtual function


MessageMap is a logical table that maps the windows messages to the member functions of the class. We use message maps over virtual function because of lots of overhead. If every windows message had a virtual function associated with it , there would be several hundred bytes per window class of vtable. Message maps means we only pay for the messages we use.


Given two processes, how can they share memory?


Processes and thread are very similar but they differ in the way they share their resources. Processes are independent and have its own address space. If two independent processes want to communicate they do this by using the following techniques 1.Message Passing 2.Sockets 3. named pipes


How to restrict only one instance of a class object to be created?


Create a Named Mutex.HANDLE hMutex=CreateMutex(TRUE,_T(“NamedMutex”))


How do I dynamically change the mainframe menu?


CMenu newMenu;newMenu.LoadMenu (IDR_MENU1);AfxGetMainWnd()->SetMenu( &newMenu );AfxGetMainWnd()->DrawMenuBar();newMenu.Detach ();



Read more...

HR Interviews Questions







Tell me about yourself?

I am down-to-earth, sweet, smart, creative, industrious, and thorough.


How has your experience prepared you for your career?

Coursework: Aside from the discipline and engineering foundation learning that I have gained from my courses, I think the design projects, reports, and presentations have prepared me most for my career.

Work Experience: Through internships, I have gained self-esteem, confidence, and problem-solving skills. I also refined my technical writing and learned to prepare professional documents for clients.

Student Organizations: By working on multiple projects for different student organizations while keeping up my grades, I've built time management and efficiency skills. Additionally, I've developed leadership, communication, and teamwork abilities.

Life Experience: In general, life has taught me determination and the importance of maintaining my ethical standards.


Describe the ideal job.

Ideally, I would like to work in a fun, warm environment with individuals working independently towards team goals or individual goals. I am not concerned about minor elements, such as dress codes, cubicles, and the level of formality. Most important to me is an atmosphere that fosters attention to quality, honesty, and integrity.



What type of supervisor have you found to be the best?

I have been fortunate enough to work under wonderful supervisors who have provided limited supervision, while answering thoughtful questions and guiding learning. In my experience, the best supervisors give positive feedback and tactful criticism.


What do you plan to be doing in five years' time?

Taking the PE exam and serving in supervisory/leadership roles both at work and in professional/community organization(s).


What contributions could you make in this organization that would help you to stand out from other applicants?

In previous internships, my industriousness and ability to teach myself have been valuable assets to the company. My self-teaching abilities will minimize overhead costs, and my industriousness at targeting needs without prompting will set me apart from others. Additionally, one thing that has always set me apart from my scientific/engineering peers are my broad interests and strong writing abilities. I am not your typical "left-brained" engineer, and with my broad talents, I am likely to provide diverse viewpoints.


What sort of criteria are you using to decide the organization you will work for?

Most importantly, I am looking for a company that values quality, ethics, and teamwork. I would like to work for a company that hires overachievers.


What made you choose your major?

My academic interests are broad, so I sought civil engineering to achieve a great balance of mathematics, chemistry, biology, physics, and writing.


Which subjects have you enjoyed studying the most and why?

I have enjoyed hydrology, fluids, solid & hazardous waste management, water and wastewater treatment, and oceanography because I love water and environmental topics. Calculus and linear algebra excite me because I love logic. I enjoyed the writing and analysis in economic history. Business law thrilled me because I have a strong interest in legal matters.


How would a professor who knows you well describe you?

One who does not know you well? A professor who knows me well would likely describe my personal qualities: sweet, down-to-earth, smart, hard-working, and conscientious. As specific examples of those who did not know me well, my soils professor and soils teaching assistant each considered me smart and respectful, and both thought that I must have enjoyed the class a lot, due to my performance.


Do you drink alcohol socially?

No, but I enjoy Shirley Temples quite a bit.


What is your definition of success?

Being a good person by improving the quality of the lives of others, whether it be through work, doing sweet things, improving the environment/community, taking care of one's family, etc. Superficially, I tend to measure success by level of education and abilities within one's career however, I try to remind myself of the things that are more important.

How would you develop team spirit among the people that you supervise? My experience in student groups has taught me that people work best when their friends (teammates) are counting on them to do well; therefore, I believe that bonding motivates people. I would also foster team pride by promoting our team's assets.



How would you resolve conflicts with employees, coworkers, and supervisors?

If possible, I would refresh my memory on what I've learned about conflict communication, and then I would discuss things, honestly and tactfully. I am a big fan of kind sincerity and honesty, as well as humility (when appropriate).


Describe the ideal job.

Ideally, I would like to work in a fun, warm environment with individuals working independently towards team goals or individual goals. I am not concerned about minor elements, such as dress codes, cubicles, and the level of formality. Most important to me is an atmosphere that fosters attention to quality, honesty, and integrity.



How do you handle stress or pressure?

You could answer this question by saying that stress is an important issue to you. While high levels of stress can be negative, I use stress in a productive way that can allow me to work harder. It is important for me to make sure I have the correct balance of positive stress and negative stress. You could also answer this question by saying you perform better when you are under reasonable levels of stress.


What do you find motivates you the most?

This is a question that does not require an answer that is right or wrong. The employer is trying to see how you are motivated. It is also a method they will use to determine if you are compatible for the job. It doesn't make much sense to put you in a position where you will not be motivated by the work you do. The best way to answer this question is to be honest. Let the interviewer know what motivates you the most. Don't tell them what they want to hear because you are trying to get the job. While this may help you in the short term, it can hurt you in the long run.



Why should we hire you?

This is one of the most difficult questions in the interview process. However, it is a good question, especially if you are competing for a position against people who are equally qualified. To answer this question, describe how your skills can be valuable to the company. Not only will you want to direct the towards your accomplishments, but you will also want to demonstrate your personality and desire. Explain that you are impressed with the history of the company, and you want to play a role in the success of the organization.


What about the job offered do you find the most attractive?

Least attractive?List three or more attractive factors and only one minor unattractive factor.


Have your university and major met your expectations?

The College of Engineering at MSU has exceeded my expectations by providing group activities, career resources, individual attention, and professors with genuine interest in teaching.My major has met my expectations by about 90%. I would have enjoyed more choices in environmental courses, and would have preferred more calculus-based learning.


Do you have plans to continue your education?

Yes, but not immediately. I plan to continue part time with either an MBA or an environmental engineering masters, depending on which will be more beneficial to my work.


Do you or have you in the past experimented with illegal drugs?

No. My only addictions are caffeine and sugar.


Which is more important to you, your salary or your job?

Salary is important, but I couldn't stay with a job that brought me misery when I could support myself doing something else; hence, my job is more important.


What is your definition of success?

Being a good person by improving the quality of the lives of others, whether it be through work, doing sweet things, improving the environment/community, taking care of one's family, etc. Superficially, I tend to measure success by level of education and abilities within one's career; however, I try to remind myself of the things that are more important.


How would you resolve conflicts with employees, coworkers, and supervisors?

If possible, I would refresh my memory on what I've learned about conflict communication, and then I would discuss things, honestly and tactfully. I am a big fan of kind sincerity and honesty, as well as humility (when appropriate).


In what areas do you need to improve your skills?

I would like to improve my public speaking skills.



In what ways have you learned from your mistakes?

Upon getting myself overwhelmed with involvement in too many projects, I changed my approach. When possible, I now start with less than I can handle and add more only as time allows, and in small increments.


How would you develop team spirit among the people that you supervise?

My experience in student groups has taught me that people work best when their friends (teammates) are counting on them to do well; therefore, I believe that bonding motivates people. I would also foster team pride by promoting our team's assets.


Which part-time job did you enjoy the most and why?

Working for PM Environmental was most enjoyable to me, since I felt like I was significantly contributing to the company, and I enjoyed learning on my own.

Read more...

Java Interview Questions




What is JAVA?
Java is a programming language expressly designed for use in the distributed environment of the Internet.
What happen when the main method is declared as private?
When the main method is private then it compiles but on run time it give Main method not public message.

What is the Java API?

  • Collection of ready made software component
  • Provide many useful capabilities , Like graphical user interface(GUI) widgets

Can you call one constructor from another if a class has multiple constructors

Yes. Use this() syntax.

Difference between notify and notify All methods ?

A call to notify causes at most one thread waiting on the same object to be notified (i.e., the object that calls notify must be the same as the object that called wait). A call to notifyAll causes all threads waiting on the same object to be notified. If more than one thread is waiting on that object, there is no way to control which of them is notified by a call to notify (so it is often better to use notifyAll than notify).

What is the Java Virtual Machine (JVM)?

The Java Virtual Machine, or JVM, is an abstract computer that runs compiled Java programs. All Java programs are compiled for the JVM. Therefore, the JVM must be implemented on a particular platform before compiled Java programs will run on that platform.

What do you understand by downcasting?

Down Casting means : Casting down the hierarchy. It refers to casting from a general to a more specific type.

What is OOPS?
OOPS : Object-Oriented Programming

  • It allows the creation of an object
  • It consider the programming simulated to real world objects.
  • It help in programming approach in order to built robust,user friendly and efficient software's and provide the efficient way to maintain real world software's.

What is Hash Map and Map?

Map is Interface and Hash map is class that implements that.

Difference between Application Server and web server?

Web Server is limited to Web Technology and more over it can't deploy the Enterprise applications. So in order to deploy Enterprise applications(EAR Files), we need Application Server. And More Over Web server supports all kinds of protocols not only http.It can support FTP and any, provided the concern jar files must be placed in the lib folder of the Web Server.

What is Overriding?

Overriding methods:

  • appear in subclasses
  • Same name as in super Class .
  • same parameter list
  • same return type

what is Overloading?

  • appear in the same class or a subclass
  • same name
  • different parameter lists
  • different return types

Explain the different forms of Polymorphism.

Java : polymorphism exists in three distinct forms
Method overloading
Method overriding through inheritance
Method overriding through the Java interface

What is the common usage of serialization?

Whenever an object is to be sent over the network, objects need to be serialized. Moreover if the state of an object is to be saved, objects need to be serialized.

Explain the Polymorphism principle.

Polymorphism in simple terms means one name many forms. Polymorphism enables one entity to be used as a general category for different types of actions. The specific action is determined by the exact nature of the situation.

Different types of access modifiers?

Access specifiers are used to determine type of access to the member of the class .

These are :

  • Public : Used for all classes means all class can accessible .
  • Protected : accessible to the classes within the same package and any subclasses.
  • Private : accessible only to the class to which they belong
  • Default : accessible to the class to which they belong and to subclasses within the same package

Which class is the super class of every class?
Object.

Explain different way of using thread?

The thread could be implemented by using runnable interface or by inheriting from the Thread class. The former is more advantageous, 'cause when you are going for multiple inheritance..the only interface can help.

Can I have multiple main methods in the same class?

No the program fails to compile. The compiler says that the main method is already defined in the class.

If you’re overriding the method equals() of an object, which other method you might also consider?
hashCode()

When the method invokeLater() be used?
To ensure that Swing components are updated through the event-dispatching thread.

what is a collection ?

Collection is a group of objects. java.util package is important.

  • Collection types hold a group of objects, Eg. Lists and Sets
  • where as Map types hold group of objects as key, value pairs Eg. HashMap and Hashtable.

What's the difference between constructors and other methods?

  • Constructors must have the same name as the class
  • can not return a value.
  • They are only called once while regular methods could be called many times.

What’s the difference between an interface and an abstract class?

  • An abstract class may contain code in method bodies, which is not allowed in an interface.
  • With abstract classes, you have to inherit your class from it and Java does not allow multiple inheritance. On the other hand, you can implement multiple interfaces in your class.

What methods java providing for Thread communications ?

Java provides three methods

  • Wait
  • Notify
  • NotifyAll

The idea is that a method called by a thread may need to wait for some condition to be satisfied by another thread; in that case, it can call the wait method, which causes its thread to wait until another thread calls notify or notifyAll.

What is serialization ?

Serialization is the process of writing complete state of java object into output stream, that stream can be file or byte array or stream associated with TCP/IP socket.

Explain the usage of Java packages.

  • Organize file when it contain multiple modules
  • Help in naming conflict when different packages have class with same name.
  • Packages access level also allows you to protect data from being used by the non-authorized classes.

Can I call a abstract method from a non abstract method ?

Yes

In System.out.println(), what is System, out and println?

  • System is a predefined final class
  • out is a PrintStream object
  • and println is a built-in overloaded method in the out object.

What happens to the static fields of a class during serialization?

There are three exceptions in which serialization does not necessarily read and write to the stream.

These are

  • Serialization ignores static fields, because they are not part of any particular state state.
  • Base class fields are only handled if the base class itself is serializable.
  • Transient fields.

Difference between the methods sleep() and wait() ?

The code sleep(1000); puts thread aside for exactly one second. The code wait(1000), causes a wait of up to one second.
  • A thread could stop waiting earlier if it receives the notify() or notifyAll() call. The method wait() is defined in the class Object and the method sleep() is defined in the class Thread.
  • -------------------Updated Jan 28 2007

    What is the difference between an Interface and an Abstract class?

    An abstract class can have instance methods that implement a default behavior. An Interface can only declare constants and instance methods, but cannot implement default behavior and all methods are implicitly abstract. An interface has all public members and no implementation. An abstract class is a class which may have the usual flavors of class members (private, protected, etc.), but has some abstract methods.

    What is the purpose of garbage collection in Java, and when is it used?

    The purpose of garbage collection is to identify and discard objects that are no longer needed by a program so that their resources can be reclaimed and reused. A Java object is subject to garbage collection when it becomes unreachable to the program in which it is used.


    Describe synchronization in respect to multithreading.

    With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchonization, it is possible for one thread to modify a shared variable while another thread is in the process of using or updating same shared variable. This usually leads to significant errors.

    Explain different way of using thread?

    The thread could be implemented by using runnable interface or by inheriting from the Thread class. The former is more advantageous, 'cause when you are going for multiple inheritance..the only interface can help.

    What are pass by reference and passby value?

    Pass By Reference means the passing the address itself rather than passing the value. Passby Value means passing a copy of the value to be passed.

    What is HashMap and Map?

    Map is Interface and Hashmap is class that implements that

    Difference between HashMap and HashTable?

    The HashMap class is roughly equivalent to Hashtable, except that it is unsynchronized and permits nulls. (HashMap allows null values as key and value whereas Hashtable doesnt allow). HashMap does not guarantee that the order of the map will remain constant over time. HashMap is unsynchronized and Hashtable is synchronized.

    Difference between Vector and ArrayList?

    Vector is synchronized whereas arraylist is not.

    Difference between Swing and Awt?

    AWT are heavy-weight componenets. Swings are light-weight components. Hence swing works faster than AWT.


    What is the difference between a constructor and a method?

    A constructor is a member function of a class that is used to create objects of that class. It has the same name as the class itself, has no return type, and is invoked using the new operator.A method is an ordinary member function of a class. It has its own name, a return type (which may be void), and is invoked using the dot operator.

    State the significance of public, private, protected, default modifiers both singly and in combination and state the effect of package relationships on declared items qualified by these modifiers.

    public : Public class is visible in other packages, field is visible everywhere (class must be public too)private : Private variables or methods may be used only by an instance of the same class that declares the variable or method, A private feature may only be accessed by the class that owns the feature.protected : Is available to all classes in the same package and also available to all subclasses of the class that owns the protected feature.This access is provided even to subclasses that reside in a different package from the class that owns the protected feature.default :What you get by default ie, without any access modifier (ie, public private or protected).It means that it is visible to all within a particular package.


    What is static in java?

    Static means one per class, not one for each object no matter how many instance of a class might exist. This means that you can use them without creating an instance of a class.Static methods are implicitly final, because overriding is done based on the type of the object, and static methods are attached to a class, not an object. A static method in a superclass can be shadowed by another static method in a subclass, as long as the original method was not declared final. However, you can't override a static method with a nonstatic method. In other words, you can't change a static method into an instance method in a subclass.

    What is final?

    A final class can't be extended ie., final class may not be subclassed. A final method can't be overridden when its class is inherited. You can't change value of a final variable (is a constant).

    What if the main method is declared as private?

    The program compiles properly but at runtime it will give "Main method not public." message.



    Read more...

    .Net Interview Questions




    What is Common Language Runtime (CLR)?

    The CLR is a major component of the .NET framework. The Common Language Runtime is the engine that compiles the source code in to an intermediate language. It managed the execution of .net program code and provides services as memory and exception management,debugging and profiling, and security.

    What is the difference between ASP.NET and VB.NET?

    asp.net is simple a library that makes it easy for you to create web applications that run against the .NET runtime (similar to the java runtime).
    vb.net is a language that compiles against the common language runtime, like C#. Any .NET compliant language can use the asp.net libraries to create web applications.

    What is .net framework?

    A programming structure provide by microsoft for building , deploying and running applications .

    The .NET Framework contains three major parts:

    • CLR
    • Framework class Library
    • ASP.Net

    Explain the differences between Server-side and Client-side code?

    Server side code get executed on the web server in the response of request for any aspx page where as client-side code get executed on the client browser .

    Difference between inline and code behind?

    Inline code is written with HTML code but code behind is written in seprate file.

    What is the difference between ASP and ASP.net

    • ASP is interpreted and asp.net is compiled
    • In ASP control events for text button can be handeled at client javascript only but in asp.net we have server controls events van handle at server side .

    What is the sequence of event firing during page load of asp.net page life cycle?

    • page_init
    • Loadviewstate
    • page_load
    • LoadPostData
    • RaisePostBackEvent
    • prerender
    • saveviewstate
    • Unload/Dispose

    What namespace does the Web page belong in the .NET Framework class hierarchy?

    System.Web.UI.Page

    What is the Global.asax used for?

    It is used to implement application and session level events.

    Whats an assembly?

    Assemblies are the building blocks of the .NET framework.

    Whats MSIL?

    • MSIL : Microsoft Intermediate Language
    • All .NET compatible languages will get converted to MSIL
    • MSIL also allows the .NET Framework to JIT compile the assembly on the installed computer.

    Which method do you invoke on the DataAdapter control to load your generated dataset with data?

    The Fill() method.

    Name two properties common in every validation control?

    ControlToValidate property and Text property.

    How many classes can a single .NET DLL contain?

    Many classes

    Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box?

    DataTextField property.

    Can you edit data in the Repeater control?

    No, it reads the info. from its data source.

    What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other?

    Server.Transfer transfers page processing from one page directly to the next page without making a round-trip back to the client's browser. This provides a faster response with a little less overhead on the server. Server.Transfer does not update the clients url history list or current url. Response.Redirect is used to redirect the user's browser to another page or site. This performas a trip back to the client where the client's browser is redirected to the new page. The user's browser history list is updated to reflect the new address.

    What data types do the RangeValidator control support?

    Integer, String, and Date


    What is bubbled event?

    When you have a complex control, like DataGrid, writing an event processing routine for each object is quite difficult. The controls can bubble up their eventhandlers, allowing the main DataGrid event handler to take care of its constituents.



    What do you mean by Share Point Portal ?

    Here I have taken information regarding Share Point Portal Server 2003 provides mainly access to the crucial business information and applications.With the help of Share Point Server we can server information between Public Folders, Data Bases, File Servers and the websites that are based on Windows server 2003. This Share Point Portal is integrated with MSAccess and Windows servers,So we can get a Wide range of document management functionality. We can also create a full featured portal with readymade navigation and structure.

    How many types of cookies are there in .NET ?
    Two type of cookeies.

    a) single valued eg request.cookies(”UserName”).value=”dotnetquestion”
    b)Multivalued cookies. These are used in the way collections are used examplerequest.cookies(”CookiName”)(”UserName”)=”dotnetquestionMahesh”request.cookies(”CookiName”)(”UserID”)=”interview"



    What is different between WebUserControl and in WebCustomControl ?

    Web user controls :- Web User Control is Easier to create and another thing is that its support is limited for users who use a visual design tool one gud thing is that its contains static layout one more thing a seprate copy is required for each application.
    Web custom controls:-Web Custom Control is typical to create and gud for dynamic layout and another thing is it have full tool support for user and a single copy of control is required because it is placed in Global Assembly cache.


    What do you mean by three-tier architecture?

    The three-tier architecture was comes into existence to improve management of code and contents and to improve the performance of the web based applications.

    There are mainly three layers in three-tier architecture.the are define as follows

    (1)Presentation
    (2)Business Logic
    (3)Database

    (1)First layer Presentation contains mainly the interface code, and this is shown to user. This code could contain any technology that can be used on the client side like HTML, JavaScript or VBScript etc.

    (2)Second layer is Business Logic which contains all the code of the server-side .This layer have code to interact with database database and to query, manipulate, pass data to user interface and handle any input from the UI as well.

    (3)Third layer Data represents the data store like MS Access, SQL Server, an XML file, an Excel file or even a text file containing data also some addtional database are also added to that layers.


    What is Satellite Assemblies ?

    Satellite assemblies are often used to deploy language-specific resources for an application. These language-specific assemblies work in side-by-side execution because the application has a separate product ID for each language and installs satellite assemblies in a language-specific subdirectory for each language. When uninstalling, the application removes only the satellite assemblies associated with a given language and .NET Framework version. No core .NET Framework files are removed unless the last language for that .NET Framework version is being removed. For example, English and Japanese editions of the .NET Framework version 1.1 share the same core files. The Japanese .NET Framework version 1.1 adds satellite assemblies with localized resources in a \ja subdirectory. An application that supports the .NET Framework version 1.1, regardless of its language, always uses the same core runtime files.


    What is CAS ?

    CAS is the part of the .NET security model that determines whether or not a piece of code is allowed to run, and what resources it can use when it is running. For example, it is CAS that will prevent a .NET web applet from formatting your hard disk. How does CAS work? The CAS security policy revolves around two key concepts - code groups and permissions. Each .NET assembly is a member of a particular code group, and each code group is granted the permissions specified in a named permission set. For example, using the default security policy, a control downloaded from a web site belongs to the 'Zone - Internet' code group, which adheres to the permissions defined by the 'Internet' named permission set. (Naturally the 'Internet' named permission set represents a very restrictive range of permissions.)


    What’s a Windows process?

    It’s an application that’s running and had been allocated memory.

    Explain what relationship is between a Process, Application Domain, and Application?

    A process is an instance of a running application. An application is an executable on the hard drive or network. There can be numerous processes launched of the same application (5 copies of Word running), but 1 process can run just 1 application.

    What are the consideration in deciding to use .NET Remoting or ASP.NET Web Services?

    Remoting is a more efficient communication exchange when you can control both ends of the application involved in the communication process. Web Services provide an open-protocol-based exchange of informaion. Web Services are best when you need to communicate with an external organization or another (non-.NET) technology.

    What are channels in .NET Remoting?

    Channels represent the objects that transfer the other serialized objects from one application domain to another and from one computer to another, as well as one process to another on the same box. A channel must exist before an object can be transferred.


    What is a formatter?

    A formatter is an object that is responsible for encoding and serializing data into messages on one end, and deserializing and decoding messages into data on the other end.

    How do you define the lease of the object?

    By implementing ILease interface when writing the class code.


    How can you automatically generate interface for the remotable object in .NET with Microsoft tools?

    Use the Soapsuds tool.


    Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?

    A DataSet can represent an entire relational database in memory, complete with tables, relations, and views.

    · A DataSet is designed to work without any continuing connection to the original data source.
    · Data in a DataSet is bulk-loaded, rather than being loaded on demand.
    · There's no concept of cursor types in a DataSet.
    · DataSets have no current record pointer You can use For Each loops to move through the data.
    · You can store many edits in a DataSet, and write them to the original data source in a single operation.
    · Though the DataSet is universal, other objects in ADO.NET come in different versions for different data sources.



    Whats MSIL, and why should my developers need an appreciation of it if at all?

    MSIL is the Microsoft Intermediate Language. All .NET compatible languages will get converted to MSIL.

    Read more...

    About This Blog

    Lorem Ipsum

    Back to TOP