prabhat ojha


{ City } indore
< Country > india
* Profession * student
User No # 92242
Total Questions Posted # 0
Total Answers Posted # 6

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 11
Users Marked my Answers as Wrong # 2
Questions / { prabhat ojha }
Questions Answers Category Views Company eMail




Answers / { prabhat ojha }

Question { Sail, 13129 }

what is the use of "fg" command ?


Answer

fg

Typing fg alone will resume the first job were it was left off.

fg 1

Specifying the job id (in this case 1) will resume that particular job. The job id can be determined by running the bg command.

Is This Answer Correct ?    1 Yes 0 No

Question { MNC, 43125 }

how many types of file in unix?


Answer

There are seven basic types of file types in Linux.

Regular Files
Directories
Character Device Files
Block Device Files
Local Domain Sockets
Named Pipes
Symbolic Links

Is This Answer Correct ?    1 Yes 0 No


Question { Satyam, 8098 }

is compiler do read the data line by line or not.
??


Answer

both compiler and interpreter read the program line by line only

the main deference says

when interpreter read the line it compile and show error hand to hand,
but in case of compiler if it finds an error it points to that error and go for checking further program lines...
and in the end it show all error containing the program

reply me if i am wrong

Is This Answer Correct ?    4 Yes 0 No

Question { 14396 }

what is atmost complete binary tree?


Answer

if we are having an ordinal binary tree..
then No. Of nodes varies from 2^(h-1)-1 to 2^(h)-1

for example if h=3
then No. of node varies from 2^(3-1)-1 = 3 to 2^3-1 = 7

but for complete binary tree

No. Of node will be 2^h-1 only....

don't mind but Iti and Aniket your ans. is not actually correct...

Is This Answer Correct ?    2 Yes 0 No

Question { 9142 }

What is the command for displaying, in which shell we are
working.


Answer

echo "$var_name" this will also work

Is This Answer Correct ?    1 Yes 1 No

Question { TCS, 13659 }

how to swap two integers 1 and 32767 without using third
variable


Answer

a=1;
b=32767;

a=(a+b)-(b=a);

printf("%d %d",a,b);

Is This Answer Correct ?    2 Yes 1 No