How can you tell what shell you are
running on UNIX system?
You can do the Echo $RANDOM. It will return a undefined variable if you
are from the C-Shell, just a return prompt if you are from the Bourne
shell, and a 5 digit random numbers if you are from the Korn shell. You
could also do a ps -l and look for the shell with the highest PID.
What is Boyce Codd Normal form?
A relation schema R is in BCNF with respect to a set F of functional
dependencies if for all functional dependencies in F+ of the form a->b,
where a and b is a subset of R, at least one of the following holds:
* a->b is a trivial functional dependency (b is a subset of a)
* a is a superkey for schema R
What is pure virtual function?
A class is made abstract by declaring one or more of its virtual
functions to be pure. A pure virtual function is one with an initializer
of = 0 in its declaration
Write a Struct Time where integer m, h, s are its members
struct Time
{
int m;
int h;
int s;
};
How do you traverse a Btree in Backward in-order?
Process the node in the right subtree
Process the root
Process the node in the left subtree
What is the two main roles of Operating System?
As a resource manager
As a virtual machine
In the derived class, which data member of the base class are
visible?
In the public and protected sections.
C++ programming on UNIX
Could you tell something about the Unix System Kernel?
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.
What are each of the standard files and what are they normally
associated with?
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.
Detemine the code below, tell me exectly how many times is the
operation sum++ performed ?
for ( i = 0; i < 100; i++ )
for ( j = 100; j > 100 - i; j–)
sum++;
(99 * 100)/2 = 4950
The sum++ is performed 4950 times.
Give 4 examples which belongs application layer in TCP/IP
architecture?
FTP, TELNET, HTTP and TFTP
What’s the meaning of ARP in TCP/IP?
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.
What is a Makefile?
Makefile is a utility in Unix to help compile large programs. It helps
by only compiling the portion of the program that has been changed.
A Makefile is the file and make uses to determine what rules to apply.
make is useful for far more than compiling programs.
What is deadlock?
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.
Page Numbers :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 16
17