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

Question text

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

Question text

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

Question text

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

Question text

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

Question text

True or False: Most of the web sites today are Web 2.0.

Select one:

True 

False

 

The correct answer is 'True'.

Question 7

Question text

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

Question text

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

Question text

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

Question text

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

Question text

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

Question text

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

Question text

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

Question text

What Linux command downloads source code?

Select one:

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

 

The correct answer is: wget

Question 6

Question text

True or False: Source code can be executed.

Select one:

True

False 

 

The correct answer is 'False'.

Question 7

Question text

True or False: Software can be compiled at the command prompt.

Select one:

True 

False

 

The correct answer is 'True'.

Question 8

Question text

True or False: Apache is called httpd on a Linux server.

Select one:

True 

False

 

The correct answer is 'True'.

Question 9

Question text

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

Question text

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

Question text

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

Question text

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

Question text

All variables in PHP start with which symbol?

Select one:

  1. &
  2. !
  3. --

 

The correct answer is: $

Question 5

Question text

What is the correct way to end a PHP statement?

Select one:

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

 

The correct answer is: ;

Question 6

Question text

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

Question text

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

Question text

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

Question text

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

Question text

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

Question text

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

Question text

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

Question text

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

Question text

Identify a valid PHP variable:

Select one:

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

 

The correct answer is: $x

Question 15

Question text

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

Reviews

Total Reviews: 81

Research essay writing02/18/2018

Hi, i have given them my research essay writing work and these guys are just awesome. They have some of the best UK writers. Just love them for their quality service and delivery.

Tani J.
so much perfection02/17/2018

They handle each order with so much perfection. I got the assignment well before the time and it was written nicely. I never knew they could be of such a great help, and after seeing the quality of their work I’ve decided to hire them only for future projects.

Charlie Cassandra
Management Assignment02/16/2018

The subject assigned to me was not clear and as I couldn’t take risk my marks, I made a decision to hire Management Assignment Help service. I got my assignment in time and it was written perfectly. All the important things and points were properly covered and wonderfully written.

Russell Ash
Accounting Assignment Help02/12/2018

I was searching Accounting Assignment Help. I got professionals help and their services are really very good. Thanks

Nadeem Aslam
Great Support Team02/09/2018

Great experience, great service!!

George

Read More...