Wednesday, April 13, 2011

iGATE, SYNTEL Placement Paper New Updation

  iGATE,  SYNTEL  Placement Paper New Updation


             1.CLICK HERE TO DOWNLOAD iGATE EXAM CRACKING KIT

         
            
2.CLICK HERE TO DOWNLOAD SYNTEL EXAM CRACKING KIT

 

C,C++,DOTNET, SQL Server Technical Interview Questions


 Hi...............Friends,

                             The following links are most useful for you. Click on this link then download word formated Technical Interview Questions. If you have any queries related this kindly reply at srisurendrareddy@gmail.com

               Click here To Download C Technical Interview Questions

                       Click here To Download C++ Interview Questions

                       Clck here to Download C++ Notes




                                      Click here to download C++ Hints



                             Click here to download SQL-PART-II

                               Click here to download SQL-PART III

                           Click here to download ASP.NET MATERIALS

                       Click here to download .NET Interview Questions

                      Click here to Download C# INTERVIEW QUESTIONS



   C++ Important Questions:

1. Name the operators that cannot be overloaded.?
sizeof, ., .*, .->, ::, ?

2. 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. 

3. How do I call a C function from C++? Just declare the C function ``extern "C"'' (in your C++ code) and call it (from your C or C++ code) 

4. Is C a subset of C++?
In the strict mathematical sense, C isn't a subset of C++. There are programs that are valid C but not valid C++ and even a few ways of writing code that has a different meaning in C and C++. However, C++ supports every programming technique supported by C. Every C program can be written in essentially the same way in C++ with the same run-time and space efficiency. It is not uncommon to be able to convert tens of thousands of lines of ANSI C to C-style C++ in a few hours. Thus, C++ is as much a superset of ANSI C 

5. What is inheritance?
Inheritance is property such that a parent (or super) class passes the characteristics of itself to children (or sub) classes that are derived from it. The sub-class has the option of modifying these characteristics in order to make a different but fundamentally related class from the super-class. 

6. What are instance variables?
These represent an object's private memory. They are defined in an object's class. 

7. What is a super-class?
Given a class, a super-class is the basis of the class under consideration. The given class is defined as a subset (in some respects) of the super-class. Objects of the given class potentially posses all the characteristics belonging to objects of the super-class. 

8. What is an object in C++?
An object is a package that contains related data and instructions. The data relates to what the object represents, while the instructions define how this object relates to other objects and itself. 

9. What is polymorphism?
Polymorphism refers to the ability of an object to respond in a logically identical fashion to messages of the same protocol, containing differing types of objects. Consider 1 + 5 and 1 + 5.1. In the former, the message "+ 5" is sent to an object of class integer (1). In the later, the message "+ 5.1" is sent to the same integer object. The form of the message (its protocol) is identical in both cases. What differs is the type of object on the right-hand side of these messages. The former is an integer object (5) while the later is a floating point object (5.1). The receiver (1) appears (to other objects) to respond in the same way to both messages. Internally, however, it knows that it must treat the two types of objects differently in order to obtain the same overall response. 

10. What is operator overloading?
It is the process of, and ability to redefine the way an object responds to a C++ operator symbol. This would be done in the object's class definition. 

11. Define Copy Constructor.
A copy constructor is invoked when you initialize a new object of a class using an existing object. This will happen when:
• You pass a copy of an object as argument to a function (i.e. when passing by value). 
• When you return an object from a function 
• Or initialize an object during declaration using another object. 
If we don't specify a copy constructor, the compiler already has a default copy constructor.


12. What is the difference between overriding and overloading? 
An overrided method redefines an existing method in a superclass to specify a new behavior. Overloading means that you have multiple methods with the same name but with a different parameter list. 

13. What is inline function?
When you call the function, execution of the program jumps to those instructions, and when the function returns, execution jumps back to the next statement in the calling function. Performance degradation occurs in jumping into and out of functions. When a function is small, the program can be speeded-up using inline functions. The use of inline functions avoids have the program jump into and out of the same function over and over again.If a function is declared with the keyword 'inline', the compiler does not create a real function; it copies the code from the inline function directly into the calling function. No jump is made. 

14. List down the advantages of class templates
• One C++ Class Template can handle different types of parameters. 
• Compiler generates classes for only the used types. If the template is instantiated for int type, compiler generates only an int version for the c++ template class. 
• Templates reduce the effort on coding for different data types to a single set of code. 
• Testing and debugging efforts are reduced. 
15. Write a short notes on recursion with example.
Recursion is defined as a function calling itself. It is in some ways similar to a loop because it repeats the same code, but it requires passing in the looping variable and being more careful. Many programming languages allow it because it can simplify some tasks, and it is often more elegant than a loop. void recurse()
{
recurse();
}
void main()
{
recurse();


16. Is it possible to accept command line argument in C++?
Yes, In C++ it is possible to accept command line arguments. To do so, you must first understand the full definition of int main(). It actually accepts two arguments, one is number of command line arguments, the other is a listing of the command line arguments. Ex.
int main( int argc, char *argv[])
17. Explain typecasting.
Typecasting is making a variable of one type, such as an int, act like another type, a char, for one single operation. To typecast something, simply put the type of variable you want the actual variable to act as inside parentheses in front of the actual variable. (char)a will make 'a' function as a char. 

18. What's the difference between public, private and protected?
• A member (either data member or member function) declared in a private section of a class can only be accessed by member functions and friends of that class 
• A member (either data member or member function) declared in a protected section of a class can only be accessed by member functions and friends of that class, and by member functions and friends of derived classes 
• A member (either data member or member function) declared in a public section of a class can be accessed by anyone 

19. What are some advantages/ disadvantages of using friend functions?
Member functions and friend functions are equally privileged. The major difference is that a friend function is called like f(x), while a member function is called like x.f(). Thus the ability to choose between member functions (x.f()) and friend functions (f(x)) allows a designer to select the syntax that is deemed most readable, which lowers maintenance costs. The major disadvantage of friend functions is that they require an extra line of code when you want dynamic binding. 

20. What's the difference between the keywords struct and class in c++?
The members and base classes of a struct are public by default, while in 


       

M.Rama Subba Reddy

Monday, April 11, 2011

India country profile

India country profile

Map of India

The world's largest democracy and second most populous country emerged as a major power in the 1990s. It is militarily strong, has major cultural influence and a fast-growing and powerful economy.

A nuclear-armed state, it carried out tests in the 1970s and again in the 1990s in defiance of world opinion. However, India is still tackling huge social, economic and environmental problems.

OVERVIEW

The vast and diverse Indian sub-continent - from the mountainous Afghan frontier to the jungles of Burma - was under foreign rule from the early 1800s until the demise of the British Raj in 1947.

The subsequent partition of the sub-continent - into present-day India and Pakistan - sowed the seeds for future conflict. There have been three wars between India and its arch-rival Pakistan since 1947, two of them over the disputed territory of Kashmir.

A peace process, which started in 2004, stayed on track despite tension over Kashmir and several high-profile bombings until the Mumbai attacks of November 2008, which police blamed on Pakistani militants. India announced that the process was on pause the following month.

AT-A-GLANCE
Economy: Fast-growing economy; large, skilled workforce but widespread poverty
Politics: 344m people voted in 2009 election - Congress-led alliance of PM Manmohan Singh won second mandate
International: Ongoing dispute with Pakistan over Kashmir region; nuclear weapons state; world's most prolific film industry - Bollywood

With its many languages, cultures and religions, India is highly diverse. This is also reflected in its federal political system, whereby power is shared between the central government and 28 states.

However, communal, caste and regional tensions continue to haunt Indian politics, sometimes threatening its long-standing democratic and secular ethos.

In 1984 Prime Minister Indira Gandhi was gunned down by her Sikh bodyguards after ordering troops to flush out Sikh militants from the Golden Temple in Amritsar.

And in 1992, widespread Hindu-Muslim violence erupted after Hindu extremists demolished the Babri mosque at Ayodhya.

Independent India's first prime minister, Jawaharlal Nehru, dreamed of a socialist society and created a vast public infrastructure, much of which became a burden on the state.

From the late 1980s India began to open up to the outside world, encouraging economic reform and foreign investment. It is now courted by the world's leading economic and political powers, including its one-time foe China.

The country has a burgeoning urban middle class and has made great strides in fields such as information technology. Its large, skilled workforce makes it a popular choice for international companies seeking to outsource work.

But the vast mass of the rural population and urban slum-dwellers remains impoverished.

Swaminarayan Akshardham Temple, New Delhi; said to be the world's largest Hindu temple

Their lives continue to be influenced by the ancient Hindu caste system, which assigns each person a place in the social hierarchy. Discrimination on the basis of caste is now illegal and various measures have been introduced to empower disadvantaged groups and give them easier access to opportunities - such as education and work.

Poverty alleviation and literacy campaigns are ongoing.

Nuclear tests carried out by India in May 1998 and similar tests by Pakistan just weeks later provoked international condemnation and concern over the stability of the region.

The US quickly imposed sanctions on India, but more recently the two countries have improved their ties, and even agreed to share nuclear technology.

India launches its own satellites and in 2008 sent its first spacecraft to the moon. It also boasts a massive cinema industry, the products of which are among the most widely-watched films in the world.

FACTS

  • Full name: Republic of India
  • Population: 1.2 billion (UN, 2010)
  • Capital: New Delhi
  • Most-populated city: Mumbai (Bombay)
  • Area: 3.1 million sq km (1.2 million sq miles), excluding Indian-administered Kashmir (100,569 sq km/38,830 sq miles)
  • Major languages: Hindi, English and at least 16 other official languages
  • Major religions: Hinduism, Islam, Christianity, Sikhism, Buddhism, Jainism
  • Life expectancy: 64 years (men), 67 years (women) (UN)
  • Monetary unit: 1 Indian Rupee = 100 paise
  • Main exports: Agricultural products, textile goods, gems and jewellery, software services and technology, engineering goods, chemicals, leather products
  • GNI per capita: US $1180 (World Bank, 2009)
  • Internet domain: .in
  • International dialling code: +91

LEADERS

President: Pratibha Patil

Pratibha Patil became India's first female president in July 2007, after being voted into office by members of state assemblies and the national parliament.

President Pratibha Patil
President Pratibha Patil

Mrs Patil, the candidate of the ruling Congress Party, was previously the little-known governor of the northwestern desert state of Rajasthan. She drew criticism during the campaign over scandals involving family members, and over controversial remarks.

Supporters hailed her election as a victory for women, but critics wondered how much influence she would have.

India has had several women in powerful positions - most notably Indira Gandhi, one of the world's first female prime ministers in 1966 - but activists complain that women still face widespread discrimination.

Mrs Patil succeeds APJ Abdul Kalam, a scientist and the architect of the country's missile programme.

Indian presidents have few actual powers, but they can decide which party or individual should form the central government after general elections.

Prime minister: Manmohan Singh

Mr Singh became prime minister in May 2004 after the Congress Party's unexpected success in general elections.

The party's president, Sonia Gandhi, the widow of former prime minister Rajiv Gandhi, shocked her supporters by declining the top post, apparently to protect the party from damaging attacks over her Italian origin.

Prime Minister Manmohan Singh
PM Singh took office after Sonia Gandhi turned down the job

Mr Singh said his priorities were to reduce poverty and to plough on with economic reforms. He stated a desire for friendly relations with India's neighbours, especially Pakistan.

During his first year in office he held together a coalition which included communist allies and ministers accused of corruption. He continued to pursue market-friendly economic policies and oversaw the introduction of nuclear non-proliferation legislation.

But his promised "New Deal" for rural India - an attempt to raise the poorest citizens out of poverty - has still to bear fruit, and by 2011 he was facing demands for inquiries into a series of financial scandals.

Manmohan Singh's government also came under intense pressure after the Mumbai attacks of November 2008, which left nearly 200 people dead and prompted a storm of criticism of security arrangements.

However, Mr Singh's Congress-led coalition scored an emphatic victory at general elections in April and May 2009, coming within 11 seats of winning an absolute majority in parliament.

The emphatic defeat of the opposition Bharatiya Janata Party (BJP) confounded predictions of a close contest.

While still needing the support of some smaller parties, the government looked to be in a much stronger position to pursue economic reforms, particularly against opposition from left.

Mr Singh made his reputation as a finance minister in the early 1990s, under the Narasimha Rao government, when he was the driving force behind economic liberalisation.

A Sikh born in West Punjab, Mr Singh is a former International Monetary Fund official and governor of India's Central Bank. He was educated at Oxford and Cambridge.

MEDIA

Indian broadcasting has flourished since state TV's monopoly was broken in 1992. The array of channels is still growing.

Private cable and satellite stations command large audiences. News programmes often outperform entertainment shows. Many 24-hour news channels are up and running and more are planned.

A man reads the Times of India the day after the Mumbai attacks
Established newspapers are slugging it out with new rivals

Doordarshan, the public TV, operates 21 services including its flagship DD1 channel, which reaches some 400 million viewers.

Multichannel, direct-to-home (DTH) TV has been a huge hit. Five operators - Dish TV, Tata-Sky, Sun Direct, Big TV and Airtel Digital TV - have attracted millions of subscribers. State-owned Doordarshan Direct offers a free-to-air DTH service.

Some industry sources say the number of DTH subscribers could reach 60 million by 2015. The cable TV market is one of the world's largest.

Since they were given the green light in 2000, music-based FM radio stations have proliferated in the cities. But only public All India Radio can broadcast news.

India's press is lively. Driven by a growing middle class, newspaper circulation has risen and new titles compete with established dailies.


Internet use has soared; by late 2008, around 81 million Indians were online (Internetworldstats).

Paris-based Reporters Without Borders says press freedom is threatened by "the violence of political parties as well as religious and separatist groups" (India - Annual report 2008). 

The press

Television

Radio

  • All India Radio - public, operates domestic and external networks
  • Radio Mirchi - commercial network, stations in Mumbai, Delhi and other cities, mainly music, operated by The Times Group
  • Radio City - commercial, FM stations in Delhi, Mumbai and other cities, owned by News Corporation
  • Red FM - commercial, operated by India Today Group

News agency