Web Programming Quiz

CS 3305: WEB PROGRAMMING 2

What is the name given to Internet technologies supporting user collaboration and data exchange?

Select one:

  1. Web 2.0 
  2. SQL Server
  3. Mobile technology
  4. Android

 

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:

  1. performance
  2. readability 
  3. maintainability 
  4. functionality

 

The correct answer is: readability, maintainability


Question 
3

What are examples of a scripted language? Choose all that apply.

Select one or more:

  1. C++
  2. PHP 
  3. Perl 
  4. Objective-C

 

The correct answer is: PHP, Perl


Question 
4

Which database in the list is Open Source?

Select one:

  1. SQL Server
  2. MySQL 
  3. Oracle
  4. Apache

 

The correct answer is: MySQL


Question 
5

What is a good example of static Internet content?

Select one:

  1. CNN news page
  2. Yahoo home page
  3. Facebook Wall
  4. None of the above 

 

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:

  1. JavaScript
  2. Perl 
  3. HTML
  4. CSS

 

The correct answer is: Perl


Question 
10

The speed of writing server code is increased when:

Select one:

  1. The developer receives immediate upon making changes 
  2. The software is compiled before it is executed
  3. The developer uses discussion forums to debug code
  4. The software interpreted and error reporting is turned off

 

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:

  1. putty.exe 
  2. SQL Server
  3. cmd
  4. Internet Explorer

 

The correct answer is: putty.exe


Question 
2

What commands can be used on a Linux server?

Select one or more:

  1. putty.exe
  2. ls 
  3. make 
  4. Click on Start button

 

The correct answer is: ls, make


Question 
3

What are examples of a scripted language? Choose all that apply.

Select one or more:

  1. C++
  2. PHP 
  3. Perl 
  4. Objective-C

 

The correct answer is: PHP, Perl


Question 
4

Which system is an example of an Open Source database?

Select one:

  1. SQL Server
  2. MySQL 
  3. Oracle
  4. Apache

 

The correct answer is: MySQL


Question 
5

What Linux command downloads source code?

Select one:

  1. mput
  2. get
  3. Internet Explorer
  4. wget 

 

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:

  1. .zip
  2. .tgz 
  3. .txt
  4. .os

 

The correct answer is: .tgz


Question 
10

What command extracts a tarball archive file?

Select one:

  1. tar -xzvf 
  2. tar -czvf
  3. tar -out
  4. tar -v

 

The correct answer is: tar –xzvf

 

What does PHP stand for?

Select one:

  1. PHP: Hypertext Preprocessor 
  2. Private Home Page
  3. Personal Home Page
  4. Personal Hypertext Processor

 

The correct answer is: PHP: Hypertext Preprocessor


Question 
2

PHP server scripts are surrounded by what delimiters?

Select one:

  1. <&></&>
  2. <?PHP  ?> 
  3. <?PHP > </?>
  4. <script></script>

 

The correct answer is: <?PHP  ?>


Question 
3

How do you write "Hello World" in PHP?

Select one:

  1. Document.Write("Hello World");
  2. echo “Hello World”;
  3. “Hello World” 
  4. system.out.println(“Hello World”);

 

Your answer is incorrect.

The correct answer is: echo “Hello World”;


Question 
4

All variables in PHP start with which symbol?

Select one:

  1. &
  2. !
  3. --

 

The correct answer is: $


Question 
5

What is the correct way to end a PHP statement?

Select one:

  1. </php>
  2. :
  3. .

 

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:

  1. JavaScript
  2. Perl and C 
  3. HTML
  4. CSS

 

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:

  1. $_GET[]; 
  2. Request.Form;
  3. Request.QueryString;
  4. .getParameter();

 

The correct answer is: $_GET[];


Question 
11

What is the correct way to create a function in PHP?

Select one:

  1. new_function myFunction()
  2. function myFunction() 
  3. create myFunction()
  4. create myFunction(function)

 

The correct answer is: function myFunction()


Question 
12

What is the correct way to add 1 to the $count variable?

Select one:

  1. $count =+1
  2. ++count
  3. $count++; 
  4. count++;

 

The correct answer is: $count++;


Question 
13

What is a correct way to add a comment in PHP?

Select one:

  1. <comment> </comment>
  2. <!-- -->
  3. *\ *\
  4. /* */ 

 

The correct answer is: /* */


Question 
14

Identify a valid PHP variable:

Select one:

  1. x
  2. x$
  3. $x 
  4. $x$

 

The correct answer is: $x


Question 
15

PHP script can perform the following functions:

Select one:

  1. Generate an email to one or more receipients.
  2. Insert data into a database
  3. Display data from a database
  4. All of the above 

 

The correct answer is: All of the above

 

 

CallTutors Guarantees

  • Work Within Deadline
  • Lowest Price Guranteed
  • Plagiarism Free Guranteed
  • 24 * 7 Availability
  • Native Experienced Experts
  • Free Revisions

Avg Client Rating: 4.8/5

Total Reviews: 9,835

Essay Writing Help11/15/2019

I’ve tried a few essay writing help providers during my first 4th sessions. But later on, I tried a new one in my 5th sessions. This time I tried CallTurtors to provide me the best essay writing help at nominal charges. I got a surprise from them, they completed my essay writing task within a few days, and the essay was professionally written. I would like you to recommend their services to you.

Beau Murray
Math Assignment Help11/15/2019

It was quite tough for me to get the math assignment help from the experts at nominal charges. Because there are a lot of assignment helpers over the internet. But one of my friends suggested to me Calltutors for the best math assignment help. I headed over to them to submit my assignment and told them all my requirements. After a few days, they give me my maths assignment just before my deadline. They helped me to score an A grade in my math assignment.

Timothy Rivera
Tristan REED11/14/2019

I was struggling to find out the best MATLAB assignment to help company in my local area. Suddenly I headed over to the internet and search for the Matlab assignment help company. I clicked on the top 3 results and told them my assignment requirements. Only calltutors among the other assignment helpers agreed to do my assignment within my given time period. I was surprised when I received the assignment before the deadline. Thanks, Calltutors.

Matlab Assignment Help
Marketing Plan Assignment Help11/14/2019

Excellent work is done by the CallTutors team. But the only issue I’ve found in the assignment is that it is not up to the mark. But the assignment helped me to score an A grade in my assignment. Thanks, CallTutors, for the excellent assignment help.

Genesis Jones
Auto CAD Assignment Help11/13/2019

I am not impressed with the assignment that I’ve received from CallTutors. But the best part of the assignment, that it has solved all questions with perfection. The only thing that restricts me to impress is their price. They should consider some price cuts on their charges.

Adriana Diaz

Read More...