Ask Experts Questions for FREE Help!
  Advanced
Register  |  Log in  
   Ask    
 Answer  
  Help  

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Programming > Compiled Languages > C   »   Some Interview Questions - 1

 
Thread Tools Display Modes
Question
 
 
#1  
Old Mar 4, 2007, 06:12 AM
1emos
New Member
1emos is offline
 
Join Date: Mar 2007
Posts: 1
1emos See this member's comment history on his/her Profile page.
Some Interview Questions - 1

Hi,

I would be thankful if you could provide me the solution to the following questions in C:

1. Given 2 files, f1 and f2 with thousands of name each. Find the common names in the two files. Extend this to 3 files.

2. Algorithm to count most user viewed pages.

3. Code to find dot and cross product

4. Write a function that accepts a function pointer and check the procId of the calling process. Check if the process was alive at a specific interval. If yes, then invoke the function (pointed to by the function pointer) else return. Write another function that would take a request from the process to stop the first function

5. You have 50000 html files, some of which contain phone numbers. How would you create a list of all the files which contain phone numbers?

6. Write C code for 'tr' program.
C:\> tr abc xyz <file name>
replaces all occurances of a by x, b by y and c by z in <file name>

7. Given a sentence, find if a specific word occurs in it.

8. Write the data structure for jigsaw puzzle. Assume that there is some method which can tell if 2 pieces fit together. How would you solve the puzzle, minimizing the number of times the function is called?

Reply With Quote
 
     

Answers
 
 
Old Mar 4, 2007, 06:21 AM   #2  
Ultra Member
shygrneyzs is offline
 
shygrneyzs's Avatar
 
Join Date: Oct 2006
Location: North Dakota
Posts: 5,040
shygrneyzs See this member's comment history on his/her Profile page.shygrneyzs See this member's comment history on his/her Profile page.shygrneyzs See this member's comment history on his/her Profile page.shygrneyzs See this member's comment history on his/her Profile page.shygrneyzs See this member's comment history on his/her Profile page.shygrneyzs See this member's comment history on his/her Profile page.shygrneyzs See this member's comment history on his/her Profile page.shygrneyzs See this member's comment history on his/her Profile page.
Is this your interview questions, that you are supposed to answer, YOUR own answer?
  Reply With Quote
 
     
 
 
Old Mar 15, 2007, 01:31 PM   #3  
Senior Member
Nosnosna is offline
 
Join Date: Jan 2007
Location: East bumble, TN
Posts: 434
Nosnosna See this member's comment history on his/her Profile page.
If these are your interview questions, you really do need to be able to answer them yourself... several of these are fairly trivial problems, with only some efficiency issues to make them interesting. If, for example, you can't conceptualize a solution for 7 (a simple recursive substring match would do it... maybe 10 lines of code), you don't need to be applying for the programming job.
  Reply With Quote
 
     


Thread Tools
Display Modes

 
Similar Sponsors

Similar Threads
Question Asker Forum Answers Last Post
Interview questions tosborne Job Hunting 1 Jul 6, 2008 09:34 AM
interview questions miz_anonymous Teaching 4 Feb 28, 2007 01:46 AM
interview questions jamiescott Teaching 2 Feb 14, 2007 06:32 AM
!Looking for Help Desk interview questions. chuckp235 Interview Questions 2 Aug 31, 2005 02:53 AM
help making interview questions hisoka Interview Questions 0 Sep 28, 2003 01:16 PM




Copyright ©2003 - 2007, Ask Me Help Desk.
All times are GMT -8. The time now is 06:58 PM.