|
Basic C++ and Unix Interview Questions
Q1:
Could you tell something about the Unix System Kernel? (from
ITCO )
A1: The kernel is the heart of the UNIX operating
system, it’s reponsible for controlling the computer’s
resouces and scheduling user jobs so that each one gets its
fair share of resources.
Q2: What are each of the standard files and what are
they normally associated with? (from ITCO )
A2: 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.
Q3: 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.
Q4: Give 4 examples which belongs application layer
in TCP/IP architecture? (from CISCO )
A4: FTP, TELNET, HTTP and TFTP
Q5: 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. |
|