Q1) What does the following statement do in a Linux environment?

g++ -o   dbase.cgi   dbase.cpp

chmod 755 dbase.cgi

Q2) Name the two directories that you must create in a Linux environment to run a web database.

Q3) How would you make your username, the directories, and your html file read and write accessible on public.

Q4) What does the following URL do?

http://pcfox.net/~ebrahimi/

Q5)  What does this do?

http://pcfox.net/~ebrahimi/dbase.htm/

Q6) How does a CGI program handle the following string?

f=John&f=Doe

Q7) Is this statement correct for a CGI program?

cout<<"Content type:text/html\n";

Q8) What does the following statement do?

for(i=2;str[i]!='&';i++){
     fname[n]=str[i];
     n++;}
fname[n++]=0;

Q9) Create a HTML file which contains a database menu includes insert.html and search.html

Q10) What does the following code do?

ifstream record2("employee.txt", ios::in);
cout<<"TABLE BORDER=5"><TR><TD><B>First Name</B></TD>";

while(record2>>emp[i].fname){
     cout<<"<TR><TD>"<<emp[i].fname<<"</TD></TR>"; }

cout<<"</TABLE><BR><BR>";