100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
PHP Exam Questions And Correct Answers $9.99   Add to cart

Exam (elaborations)

PHP Exam Questions And Correct Answers

 3 views  0 purchase
  • Course
  • PHP
  • Institution
  • PHP

PHP Exam Questions And Correct Answers...

Preview 2 out of 7  pages

  • October 22, 2024
  • 7
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • PHP
  • PHP
avatar-seller
Easton
PHP Exam Questions And Correct Answers


What does php stand for? - ANSWER PHP: Hypertext Preprocessor



is PHP server side or client side scripting language? - ANSWER server side



how are php files returned to the browser? - ANSWER PHP files are returned to the
browser as plain HTML



how is a php started and ended? - ANSWER A PHP scripting block always starts with
<?php and ends with ?>



Where in the document can a PHP script be placed? - ANSWER anywhere



How must every line of php code end? - ANSWER with a semi colon



What is the function of the semi colon? - ANSWER it is a separator and used to
distinguish one set of instructions from another



Two very basic statements to output text with PHP are: - ANSWER echo and print



what would happen if the file has HTML extension rather than PHP? - ANSWER the php
code would not be run



how is a one line comment made in php? - ANSWER With //



how is a comment block done? - ANSWER /* */

, What are variables used for? - ANSWER Variables are used to hold values such as
numbers, strings or function results, so they can be used numerous times in a script.



what do all variables start with? - ANSWER In PHP, all variables start with a $ sign
symbol.



The correct way of setting a variable in PHP: - ANSWER $var_name = value;



is PHP strongly or loosely typed? - ANSWER loosely



In PHP, must a variable be declared created before it is set? ANSWER no - PHP creates
the variable for you and sets it to the correct type.



What is meant by the term strongly typed? ANSWER variables must be defined before
they can be used



In PHP how must a variable name start? ANSWER A variable name must start with a
letter or an underscore _



What types of characters can a variable name include? - ANSWER A variable name can
only include alpha-numeric characters and underscores (a-z, A-Z, 0-9, and _ )



should a variable name include spaces? - ANSWER no



if a variable name is more than one word how should it be formatted? - ANSWER with an
underscore between words or with the second word capitalized



String variables are used for what purpose? - ANSWER To store and manipulate, a piece
of text.

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Easton. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $9.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

75323 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$9.99
  • (0)
  Add to cart