Wednesday, April 9, 2008

Basic C++ and Unix Questions and Answers - 14

C++ and Unix Operating System / OS Important mostly asked questions

1. Could you tell something about the Unix System Kernel? (from ITCO )
Ans. The kernel is the heart of the UNIX openrating system, it?s reponsible for controlling the computer?s resouces and scheduling user jobs so that each one gets its fair share of resources.

2. What are each of the standard files and what are they normally associated with? (from ITCO )
Ans. They are the standard input file, the standard output file and the standard error file. The first is usually associated with the keyboard, the second and third are usually associated with the terminal screen.

3. Detemine the code below, tell me exectly how many times is the operation sum++ performed ? (from ITCO )
for ( i = 0; i < 100; i++ )
for ( j = 100; j > 100 - i; j?)
sum++;
A3: (99 * 100)/2 = 4950
The sum++ is performed 4950 times.

4. Give 4 examples which belongs application layer in TCP/IP architecture? (from CISCO )
A4: FTP, TELNET, HTTP and TFTP

5. What?s the meaning of ARP in TCP/IP? (from CISCO )
A5: The "ARP" stands for Address Resolution Protocol. The ARP standard defines two basic message types: a request and a response. a request message contains an IP address and requests the corresponding hardware address; a replay contains both the IP address, sent in the request, and the hardware address.

6.What is a Make file?(Fujitsu)

Make file is a utility in Unix to help compile large programs. It helps by only compiling the portion of the program that has been changed.

7.What is deadlock? (Novell)

Deadlock is a situation when two or more processes prevent each other from running.Example: if T1 is holding x and waiting for y to be free and T2 holding y and waiting for x to be free deadlock happens.

8.What is semaphore? (Novell)

Semaphore is a special variable, it has two methods: up and down. Semaphore performs atomic operations, which means ones a semaphore is called it can not be inturrupted.

9.Is C an object-oriented language? (Microsoft)

C is not an object-oriented language, but limited object-oriented programming can be done in C.

10.Name some major differences between C++ and Java.

C++ has pointers; Java does not. Java is platform-independent; C++ is not. Java has garbage collection; C++ does not.

Latest / Recent Technical Interview Questions for Developers jobs / software companies selection, college graduate admission, project interview exam questions for 2008, C++ Tutorials, etc. only on PreviousPapers.blogspot.com Good luck for your exam. Let me know if we could help you any other way. Email here.

No comments: