Skip to main content

Interview questions based on important concepts in computer network.

Interview questions based on important concepts in computer network.
Question 1
Can you guess why IPv6 (Internet Protocol version 6) addresses came into existence while still IPv4 is being used by many machines?
Answer :
The only reason could be the enormous growth in the number of machines using v4 addresses. This forces concerned agencies to raise the address pool by some means. One of such ways was the introduction of IPv6 so that more machines can be accommodated.
Question 2
Consider two network layer devices, one operating at network layer and the other operating at data link layer. In very generic terms, which one is more intelligent ? Explain with example.
Answer :
Generally a device that operates at a higher layer in OSI model is intelligent. For example, there are switches that operate at data link layer and some others that operate at network layer. Simply due to the additional capabilities of the switches that operate in network layer they can be considered more intelligent.
Question 3
What is the main drawback when using Hubs in networks ?
Answer :
Hubs are least intelligent devices transmitting whatever data they receive into all the output ports. Though this behaviour can be favourable in some cases, most of the times this behaviour results in unnecessary traffic in the network. More network consumption leads to problems like collision and congestion.
Question 4
In socket communication happening between a client and a server, how can you tell which one is a client and which is a sever ?
Answer :
Consider two network devices communicating through network sockets. In many cases a client initiates a transaction. For example, your computer could request a web page from a server. This implies that your computer is initiating the connection and is a client. The responding machine will be the server

Popular posts from this blog

CIVIL SERVICES' (I.A.S.) EXAMINATION

The Union Public Service Commission (U.P.S.C.)  conducts Civil Services' Examination once a year in two stages. The Preliminary Examination (Objective Type) for selection of candidates for the Main Examination is held in the month of May. The Civil Services Main Examination  is held in the months of October/November. Blank application forms and other particulars are published in the Employment News, generally in the month of December. The last date for the submission of applications to the Secretary, Union Public Service Commission, Dholpur House, Shahjahan Road, NewDelhi-11001 1 is usually the last week of January of the year of examination. The Combined Civil Services Examination is conducted for Recruitment to the following Services/Posts: 1. Indian Administrative Service. 2. Indian Foreign Service. 3. Indian Police Service. 4. Indian P & T Accounts & Finance Service, Group 'A'. 5. Indian Audit and Accounts Service, Group 'A'. 6. Indian Customs and Centr...

Predict the output or error(s) for the following:

1 . void main(){ int const * p=5; printf("%d",++(*p)); } Answer: Compiler error: Cannot modify a constant value. Explanation: p is a pointer to a "constant integer". But we tried tochange the value of the "constant integer". 2. main() {  char s[ ]="man"; int i;  for(i=0;s[ i ];i++) printf("\n%c%c%c%c",s[i],*(s+i),*(i+s),i[s]); } Answer: mmmm aaaa nnnn Explanation: s[i], *(i+s), *(s+i), i[s] are all different ways of expressing the same idea. Generally array name is the base address for that array. Here s is the base address. i is the index number/displacement from the base address. So, indirecting it with * is same as s[i]. i[s] may be surprising. But in the case of C it is same as s[i]. 3 . main(){  float me = 1.1;  double you = 1.1;  if(me==you) printf("I love U"); else printf("I hate U"); } Answer: I hate U Explanation : For floating point numbers (float, double, long double) ...

Cognizant Company Profile and it's information for Interview

Website: www.cognizant.com HQ Teaneck, NJ Industry Information Technology Services Size 130K+ Employees, $6B+ Revenue NASDAQ CTSH Competitors Infosys, Wipro, Tata Consultancy Services   About cognizant Cognizant Corporate view: Cognizant is an American multinational IT services and consulting corporation headquartered in Teaneck, New Jersey, United States. Cognizant has been named to the 2010 Fortune 100 Fastest-Growing Companies List for the eighth consecutive year. Cognizant has also been named to the Fortune 1000 and Forbes Global 2000 lists. It has consistently ranked among the fastest growing companies including the 2010 Business Week 50 list of the top-performing U.S. companies, the Business Week Hottest Tech Companies 2010, and the Forbes Fast Tech 2010 list of 25 Fastest Growing Technology Companies In America. Founded: 1994 Headquarters: Teaneck, New Jersey, U.S. Key people:  Francisco D'Souza (President & CEO) Lakshmi Naray...