CS 3305: WEB PROGRAMMING 2
What is the name given to Internet technologies supporting user collaboration and data exchange?
Select one:
The correct answer is: Web 2.0
Question 2
What are advantages of scripted applications over compiled applications? Choose all that apply.
Select one or more:
The correct answer is: readability, maintainability
Question 3
What are examples of a scripted language? Choose all that apply.
Select one or more:
The correct answer is: PHP, Perl
Question 4
Which database in the list is Open Source?
Select one:
The correct answer is: MySQL
Question 5
What is a good example of static Internet content?
Select one:
The correct answer is: None of the above
Question 6
True or False: Most of the web sites today are Web 2.0.
Select one:
True
False
The correct answer is 'True'.
Question 7
True or False: Server-side programming allows users to login to web sites and generate content each time the page is visited.
Select one:
True
False
The correct answer is 'True'.
Question 8
True or False: Server-side programming uses some of the same languages as client-side (workstation) programming.
Select one:
True
False
The correct answer is 'True'.
Question 9
Select an example of a server-side programming language:
Select one:
The correct answer is: Perl
Question 10
The speed of writing server code is increased when:
Select one:
The correct answer is: The developer receives immediate upon making changes
What program can be used on a Windows computer to access a command prompt on a Unix/Linux server?
Select one:
The correct answer is: putty.exe
Question 2
What commands can be used on a Linux server?
Select one or more:
The correct answer is: ls, make
Question 3
What are examples of a scripted language? Choose all that apply.
Select one or more:
The correct answer is: PHP, Perl
Question 4
Which system is an example of an Open Source database?
Select one:
The correct answer is: MySQL
Question 5
What Linux command downloads source code?
Select one:
The correct answer is: wget
Question 6
True or False: Source code can be executed.
Select one:
True
False
The correct answer is 'False'.
Question 7
True or False: Software can be compiled at the command prompt.
Select one:
True
False
The correct answer is 'True'.
Question 8
True or False: Apache is called httpd on a Linux server.
Select one:
True
False
The correct answer is 'True'.
Question 9
What is the most common extension for a source code package?
Select one:
The correct answer is: .tgz
Question 10
What command extracts a tarball archive file?
Select one:
The correct answer is: tar –xzvf
What does PHP stand for?
Select one:
The correct answer is: PHP: Hypertext Preprocessor
Question 2
PHP server scripts are surrounded by what delimiters?
Select one:
The correct answer is: <?PHP ?>
Question 3
How do you write "Hello World" in PHP?
Select one:
Your answer is incorrect.
The correct answer is: echo “Hello World”;
Question 4
All variables in PHP start with which symbol?
Select one:
The correct answer is: $
Question 5
What is the correct way to end a PHP statement?
Select one:
The correct answer is: ;
Question 6
True or False:The PHP syntax is similar to many languages including C++ and Java, which makes it easy to learn for programmers:
Select one:
True
False
The correct answer is 'True'.
Question 7
True or False: When using the POST method, variables are displayed in the URL.
Select one:
True
False
The correct answer is 'False'.
Question 8
True or False: In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings.
Select one:
True
False
The correct answer is 'True'.
Question 9
The PHP syntax is most similar to:
Select one:
The correct answer is: Perl and C
Question 10
How do you get information from a form that is submitted using the "get" method?
Select one:
The correct answer is: $_GET[];
Question 11
What is the correct way to create a function in PHP?
Select one:
The correct answer is: function myFunction()
Question 12
What is the correct way to add 1 to the $count variable?
Select one:
The correct answer is: $count++;
Question 13
What is a correct way to add a comment in PHP?
Select one:
The correct answer is: /* */
Question 14
Identify a valid PHP variable:
Select one:
The correct answer is: $x
Question 15
PHP script can perform the following functions:
Select one:
The correct answer is: All of the above