Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more ➡
Standard view
Full view
of .
×
0 of .
Results for:
P. 1
Some of the Questions Based on 'C'

# Some of the Questions Based on 'C'

Ratings: 0|Views: 488|Likes:
INTERVIEW
INTERVIEW

### Availability:

See More
See less

06/29/2010

pdf

text

original

Some of the questions based on 'C' if i remember right are as follows:1. Do u know abt Recursive functions?? YES. Then write a recursive function to display Fibonacci series.2. Fibonacci using normal loops and conditional statements.3. Wat do u mean by scope of variables??4. Then He gave me a program where one was a global, one was extern and so on and he asked me the o/p.5. Write an algorithm to add a node to a linked list using pointers:i) at the start,ii) at the end,iii) in the middle.6. Wat do u mean by Dynamic memory allocation?7. Wat is the difference between Malloc and Calloc??8. Syntax for malloc while initializing a node in linked list9. How do u use malloc to initialize an array?10.Wat is the difference between C and C++?11. An array of numbers from 1 to 100. random selection of 99 numbers. write an efficient algorithm to find theunselected number.12.These and some basic questions based on strings lik strlen, strcmp, concatenating of strings.13. He gave me a program where an array of size 10 was initialized, a string of size 6 was input and afterconcatenating another string of size6 wats the o/p?Then he started asking me puzzles some of which are:1. Two candles, different densities, each burns 4 exactly 30 min. how do u measure 45 minutes.2. A cubic tank filled up to brim. how do u empty exactly half without any additional measuring or emptyingequipment?3. Two circles overlapping. radii given. Find the difference in un common areas?4. Out of n items, in how many ways do u select different number of items.(There seems to be a formula. i didntknow. i just told him how it can be done using Combinations.

## Activity (4)

### Showing

AllMost RecentReviewsAll NotesLikes