|
Fall Semester 2004
|
Review Questions: Final Exam
This is the first batch of questions.
There will be others, soon.
- If you type "
touch smile"
at command line what will happen next?
- What is this command doing "
chmod -r *"?
- What do you need to know when using "
kill" command?
- Why do we learn MySQL database rather than other databases such
Oracle/Sybase/Microsoft Access?
- In Unix what is an absoulte path name?
- In Unix what is a relative path name?
- Why is it not recommended to create files with mode 777?
- What is
umask?
- What is the
.. directory?
- What information is stored in the 'lockfile' file?
- What information is contained in the following
folders, located in Apache's root directory:
bin,
cgi-bin, conf, htdocs,
man, phpsessions, logs.
- What is the main difference between Apache and Tomcat?
- Why is there a need for both Java and Javascript?
- What does .cshrc mean, and why is it called by its file
extension rather than the file name?
- What does the command 'grep' stand for?
- Why is software still 'sold' for profit, when we have so
many free tools like Apache and Tomcat?
- What do the
cvf and xvf stand for
in tar and jar archiving commands?
- List 6 ways in which we can save/keep state.
- What are some of the advantages of XML?
- What is the difference between POST and GET?
- What is DBI used for?
- What is the web.xml file in tomcat used for?
- What's the relationship between Java RMI and XML-RPC?
- What is the difference between a servlet and a CGI script?
- Describe how XML differs from HTML.
- When transfering information through GET or POST, how
(and why) is the information encoded special characters to
ASCII code in hexidecimal form?
- What's the function of
du in Unix?
- How to display your current running program(s) in Unix?
- What is the function of "
netstat" command in Unix?
- What is Perl and what is its advantage(s) comparing to other programming languages?
- Please briefly describe the steps of installing Apache server.
- Where should the protected file be located?
- How to add multiple users to the protected folder?
- What does HTTP mean?
- What direction do you think web development should/will go?
- What do you think should be added to the text content for A348
- What is the difference between
insert and update,
delete and drop in mySQL?
- Please briefly describe the steps of installing PHP.
- Please list at least 4 techniques for including Javascript
in HTML.
- Please briefly describe the steps of installing Tomcat.
- What is the biggest problem for Tomcat server right now?
- Where are the servlets generated from JSP placed in Tomcat?
- What is XSLT?
- What is the difference between internet and World Wide Web (WWW)?
- In Unix, what does
-r-x--x--- mean?
- What does CGI stand for?
- In Java, what is the difference between
= and == ?
- What does DOM stand for?
- What are "cookies"?
- What does XML stand for?
- What does SGML stand for?
- What Is MIME?
- What's
%ENV?
- What is
tar and where in the
class did it matter which tar
we were using?
- What's the purpose of a
web.xml file?
- What's the purpose of a server.xml file?
- What is a web service and why is it a useful concept?
- How does a PHP refer to itself (by name)?
- How does a CGI script in Perl refer to itself (by name)?
- How does a Java servlet refer to itself (by name)?
- What's the purpose of the lib folder (under WEB-INF)?
- What's CGI.pm and what is it used for?
- What's DBI.pm and what is it used for?
- What does it mean to keep state and why is
it hard to do that over HTTP?
- Why do I need JSP technology if I already have servlets?
- In the context of Apache, what is Jakarta?
- What does SOAP stands for?
- What is the difference between
doPost and doGet method?
- What does the file extension "phps" do for you?
- Where should we place PHP files?
- Where should we place JSP files?
- Where should we place servlets?
- What does the term "relational" means in RDBMS?
- What is HTTP?
- Discuss the three parts which each HTTP client request and
HTTP server response has.
- Which file contains the port number that the server runs (in Apache
and Tomcat)?
- What does the "more" command do?
- What does the command "du" do?
- What does the
.crshc file in your home directory contain?
- What is the difference between
~/.cshrc and
/.cshrc?
- What is the difference between
./cshrc and
/.cshrc?
- What is the command to create a symbolic file that references
another existing file?
- Why is a symbolic link a useful tool?
- What does
cronatb -l do?
- How do you ensure that a variable used in a
subroutine in Perl stays as a local variable instead
of global?
- How do you ensure that a variable used in a
subroutine in PHP stays as a local variable instead
of global?
- When using forms, what is the significance of
changing the
type="submit" value to
type="button" when using JavaScript?
- What is an "event handler" in JavaScript and what does it do?
- What features does JavaScript lack when compared to Java?
- What is the purpose of the webapps directory under Tomcat?
- What is the difference between the
<% and <%!
syntax when using JSP?
- If SOAP is considered to be preferred
protocol for understanding remote procedure
calls for XML, why did we focus on XML-RPC in class?
- XML and Java both address portability. In what (respective) way(s)?
- In installing apache in your burrowww account, what are
the functions of
configure, make and
make install?
- Why is it usually necessary to call
source command
after you edit your .cshrc or .login files?
- What is inheritance in Java?
- What are the components of a simple WWW interaction?
- When you configure
httpd.conf in the new Apache server's
conf directory, what do you need to change at the very least?
- How do you exit from
vi?
- What is ASP?
- How do you shut down and start up your tomcat?
- What is Java RMI and how does it compare with XML-RPC.
- What is the Unix command that remove a directory including the all the files inside it?
- What does the "
make" command do?
- Explain what
$x[$#x] means in Perl.
- Among CGI environment variables, what is
QUERY_STRING?
- In SQL how do you select "
id_num" and "name" of
those people whose "income" is more than $50,000 if all the information
is in a table called "people"?
- In how many ways can you configure PHP (at least two)?
- Why are Java applets and servlets similar?
- Why are Java applets and servlets different?
- What's the relationship between
GenericServlet and HttpServlet?
- We talked so much about keeping state... What does state mean?
- What's the purpose of the command
cp if there is such a thing?
- Why do we need to create tables in a MySQL database?
- What was the purpose of this course?
- How do you access the
QUERY_STRING from a servlet?
- What's the advantage of the
HttpSession object?
- Name some predefined variables in JSP.
- What's the purpose of a form in an HTML document?
- What is the purpose of the
action atribute in an HTML form?
- HTTP is a stateless protocol. What does that mean?
- Name the different parts that make a URL and give an example.
- Can apache be configured to host programs written in Java?
- List three advantages of PHP over Perl for web programming.
- List three advantages of Perl over any other programming language.
- Which
crontab statement executes every Monday at midnight?
- What separates the second two elements of every HTTP transaction?
- Why did we change
session.save_path = /tmp
to
session.save_path = /u/username/apache/apache_1.3.26/phpsessions
and where did we make this change?
- How does the development of a PHP script most differ from the developoment of Perl/CGI scripts?
- What indicates that a segment of text is PHP code?
- Which command is used to list all tables in a MySQL database which contain
dgerman within their name?
- What company is associated with the development of JavaScript?
- What is Mosaic?
- Why is Tomcat sometimes refered to as a "container"?
- What is the difference between the terms
"overloading" and "overriding" with respect to
Java programming?
- What Java packages do you import when defining a servlet classes?
- What is Struts?
- What is Xalan?
- What is Xerces?
- Which one is more general: HTML, SGML, or XML?
- What type of file can be used to define the presentation of XML?
- What is the port number traditionally used by SSH?
- What's the most significant difference between an instance of a Perl/CGI or PHP script
and a JSP or Java Servlet?
- What's JDBC and where did we use it?
- What is put in the body of a GET request?
- In an HTML form, what is the difference between having a text input field be READONLY and DISABLED?
- In the Apache
logs directory, there is a very helpful file called error_logs
where the error messages print when you have errors running a Perl script from the browser. It can get very
large. So you delete it and create a new empty one. You once again have errors that should show up in this new
error_log, but nothing gets written to it. How do you get Apache to start writing to your new
error_log?
- What is in the httpd.pid file? When would you use this file?
- In the
httpd.conf file, we had the
parameter KeepAlive On. What does this
mean in this context?
- Since PHP allows for easy server-side data storage with session files,
why would you ever store user data in a MySQL table?
- What is the difference between an
int and an Integer in Java?
- In a JAVA class, how can you distinguish the constructor from the other methods?
- Define a simple
BankAccount class in Java, Perl, and Javascript.
- What is polymorphism?
- The answer is: "Ahhah! They refer to basically the same thing. URI's (Uniform
Resource Identifier) are the "generic set of all names/addresses that are short strings
that refer to resources." URL (Uniform Resource Locator) is "an informal term associated
with popular URI schemes: http, ftp, mailto, etc.". So, there you have it. " What was the question?
- In order to view a web page, a client makes a request to a server.
Once the response has been sent from the server, what happens to the http connection?
- What is a port number on a server?
- What is a "dot file"? How can one view all hidden files?
- Why is it important to restart the server regularly?
- How is a hash table different from an array in Perl?
- Is there any relationship between PHP and CGI?
Last updated: Dec 2, 2004 by Adrian German for A348/A548