Sunday, December 13, 2009

Function overloading

Thus, the name abs represents the general action which is being performed. It is left to the compiler to choose the right specific version for a particular circumstance. You, the programmer, need only remember the general operation being performed. Through the application of polymorphism, several names have been reduced to o...

Saturday, December 12, 2009

c program without main

http://c4learn.com/c-programs/c-program-without-main-function.ht...

Thursday, December 10, 2009

Some basic networking interview questions

1. What are 10Base2, 10Base5 and 10BaseT Ethernet LANs 10Base2—An Ethernet term meaning a maximum transfer rate of 10 Megabits per second that uses baseband signaling, with a contiguous cable segment length of 100 meters and a maximum of 2 segments. 10Base5—An Ethernet term meaning a maximum transfer rate of 10 Megabits per second that uses baseband signaling, with 5 continuous segments not exceeding 100 meters per segment. 10BaseT—An Ethernet term meaning a maximum transfer rate of 10 Megabits per second that uses baseband signaling and twisted...

Wednesday, December 9, 2009

Basic Interview Questions on networking

What is DHCP? DHCP stands for Dynamic Host Configuration Technology. The basic purpose of the DHCP is to assign the IP addresses and the other network configuration such as DNS, Gateway and other network settings to the client computers. DHCP reduces the administrative task of manually assigning the IP addresses to the large number of the computers in a network. What is DNS and how it works? DNS stands for Domain name system and it translates (converts) the host name into the IP address and IP address into to the host name. Every domain and...

Various Software model

Software Process is a particular method, generally involving a number of steps along with ordering constraints on execution, to produce software with desired outcome 2 Major processes : Development, Project Management. Methodologies for Software Development - ETVX  ETVX model (l.w. = ex , tv...entry, exit; task validation) Quality in the processA quality process has the right inputs and performs the right actions to produce outputs...

Tuesday, December 8, 2009

Left most n digits divisible by n

A number of 9 digits has the following properties: The number comprising the leftmost two digits is divisible by 2, that comprising the leftmost three digits is divisible by 3, the leftmost four by 4, the leftmost five by 5, and so on for the nine digits of the number i.e. the number formed from the first n digits is divisible by n, 2<=n<=9. Each digit in the number is different i.e. no digits are repeated. The digit 0 does not occur in the number i.e. it is comprised only of the digits 1-9 in some order. Find the number. Answer The answer...

Aptitude Quesions and answers

1.One of the following is my secret word:AIM  DUE  MOD  OAT  TIE.With the list in front of you, if I were to tell you any one of my secret word, then you would be able to tell me the number of vowels in my secret word.Which is my secret word? Ans.TIE 2.In the following figure:A  B  C                                              ...

math.h

 Mathematics is relatively straightforward library to use again. You must #include and must remember to link in the math library at compilation:    cc mathprog.c -o mathprog -lm A common source of error is in forgetting to include the file (and yes experienced programmers make this error also). Unfortunately the C compiler does not help much. Consider: double x; x = sqrt(63.9); Having not seen the prototype for sqrt the...

Monday, December 7, 2009

Chain Cut Problem

Problem: What is the least number of links you can cut in a chain of 21 links to be able to give someone all possible number of links up to 21 Solution: Assume that a chain of length k for every 1<=k<=length(chain) must be doable with the open links. Then you can reach links length dissection 0 1 1 1 5 1-(1)-3 2 13 1-(1)-3-(1)-7 3 29 1-(1)-3-(1)-7-(1)-15 ...

CTS Aptitude Question paper(Yellow)

Question 1: If all the 6 are replaced by 9, then the algebraic sum of all the numbers from 1 to 100(both inclusive) varies by Answer: 330 Question 2: The total no. of numbers that are divisible by 2 or 3 between 100 and 200(both inclusive) are? Answer: 67 Question 3: From a pack of cards Jack, Queen, King & ace are removed. Then the algebraic sum of rest of the cards is? Answer: 216 Question 4: The average temperature of days from Monday to Wednesday is 37 degree Celsius and that of from Tuesday to Thursday is 34 degrees. The temperature...