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

Assignment07/20/2019

got an Hd grade in my paper. I was totally depressed but after taking help from you i feel free from all of my burden, Thank you

Naomi
Essay help07/20/2019

Good writing All the topics I wanted in this assignment were covered Thank you very much.

O Brian
Statistics07/19/2019

very impressive quick service the solution, very nice support team thanx for the instant help

John Williams
Biology assignment07/19/2019

Well presented assignment, managed to get a good score, just a few minor gaps from the marker's feedback

Emilia Adam
Psychology07/18/2019

Great job, received great grade on paper will be using again, Highly recommended from my side.

Abby Jones

Read More...