GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  Motorola  >  Technical
Next Question 
 Technical  |  Question 1 of 2    Print  
Technical test Questions

Q. write a C code
    1.to reverse a string using a recursive function, without
    swapping or using an extra memory.
    2.To reverse a linked list as above.

Q. what will MAX(i++,j),MAX(i,j++) return.

Q. Difference between Macro and ordinary definition.

Q. Difference between Class and Struct.

Q. Give the outputs of a compiler and assembler and loader and linker etc.

Q. If a new data structure, suppose a queue is to be added like int, long  etc.,
    where shall the changes be -- lex or yacc or where.

Q. what is a Real Time OS.

Q. Describe VRTX in few words.

Q. How does the scheduler know the time how it should be scheduled.

Q. Name some sockets, TLI, streams. and much about project.

Q. What is deadlock? How do you avoid it?

Q. What is a semaphore?

Q. What exactly happens after each system call in sockets, both at the client and at the server.

Q. What is the difference between widget & gadget in XWindows?

Q. Tell about strtok & strstr functions.

Q. Matricide:Mother:: Homicide:? Ans HumanQ.20%loss;20 % gain Ans 4% loss

Q.Calls:Tissus::Atom:? Ans:Molecules




  
Total Answers and Comments: 3 Last Update: July 05, 2007   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
March 24, 2006 02:14:01   #1  
Rohini        

RE: Technical test Questions

What is a deadlock?How will you avoid it?

Deadlock is a situation where a group of process competes for a particular resource and acquires it partially. This is the position when none of the process can complete its work.

It can be avoided using the deadlock avoidance algorithm.


 
Is this answer useful? Yes | No
April 24, 2006 01:15:14   #2  
Deepak        

What is a semaphore?

A semaphore is a protected variable (or abstract data type) and constitutes the classic method for restricting access to shared resources (e.g. storage) in a multiprogramming environment

The value of a semaphore is the number of units of the resource which are free. (If there is only one resource a binary semaphore with values 0 or 1 is used.)
The P operation busy-waits (or maybe sleeps) until a resource is available whereupon it immediately claims one.
V is the inverse; it simply makes a resource available again after the process has finished using it.
Init is only used to initialize the semaphore before any requests are made. The P and V operations must be
atomic which means that no process may ever be preempted in the middle of one of those operations to run another operation on the same semaphore.


 
Is this answer useful? Yes | No
July 05, 2007 06:11:44   #3  
Shashikant Chattar        

RE: Technical test Questions
strtok - extracts tokens from strings
char *strtok(char *str const char *delim);
The strtok() function parses a string into a sequence of tokens. On
the first call to strtok() the string to be parsed should be specified
in str. In each subsequent call that should parse the same string str
should be NULL.

strstr - locate a substring
char *strstr(const char *haystack const char *needle);
The strstr() function finds the first occurrence of the substring needle in the string
haystack. The terminating ` ' characters are not
compared.



 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
Related Categories
Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape