KyaPoocha.com

Huge Collection of Interview Questions


Archive for April, 2007

When are temporary variables created by C++ compiler? 

Provided that function parameter is a “const reference”, compiler generates temporary variable in following 2 ways. a) The actual argument is the correct... Read more »

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,... Read more »

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... Read more »

What are C++ storage classes? 

auto register static extern auto: the default. Variables are automatically created and initialized when they are defined and are destroyed at the end of the block... Read more »

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... Read more »

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... Read more »

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... Read more »

What is assignment operator? 

Default assignment operator handles assigning one object to another of the same class. Member to member copy (shallow copy)  Read more »

When are copy constructors called? 

Copy constructors are called in following cases: a) when a function returns an object of that class by value b) when the object of that class is passed by value... Read more »

What is copy constructor? 

Constructor which initializes the it’s object member variables ( by shallow copying) with another object of the same class. If you don’t implement one... Read more »

How can we create custom controls in ASP.NET? 

Custom Controls can be created in either of the following 3 methods. 1. Creating as a composite control : This method uses and combines the existing controls to... Read more »

How many types of validation controls are provided by ASP.NET ? 

RequiredField Validator Control,Range Validator Control, RegularExpression Validator Control,Custom Validator Control and Validation Summary Control are provided... Read more »

Can you explain what is “AutoPostBack” feature in ASP.NET ? 

AutoPostBack is built into the form-based server controls, and when enabled, automatically posts the page back to the server whenever the value of the control in... Read more »

How can you enable automatic paging in DataGrid ? 

Using the Built-In Paging Controls To use default paging, you set properties to enable paging, set the page size, and specify the style of the paging controls. Paging... Read more »

What is the difference between login controls and Forms authentication? 

Login controls are an easy way to implement Forms authentication without having to write any code. For example, the Login control performs the same functions you... Read more »

Page 1 of 1612345»...Last »