100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
PHP Exam Questions With Answers Graded A+ $10.29   Add to cart

Exam (elaborations)

PHP Exam Questions With Answers Graded A+

 5 views  0 purchase
  • Course
  • Institution

PHP Exam Questions With Answers Graded A+ What does php stand for? PHP stands for PHP: Hypertext Preprocessor is PHP server side or client side scripting language? server side how are php files returned to the browser? PHP files are returned to the browser as plain HTML how is a ...

[Show more]

Preview 2 out of 6  pages

  • June 8, 2024
  • 6
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
avatar-seller
PHP Exam Questions With Answers Graded
A+
What does php stand for?
PHP stands for PHP: Hypertext Preprocessor


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


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


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


where can a php script be placed in the document?
anywhere


how must each php code line end?
with a semi colon


what is the purpose of the semi colon?
it is a separator and used to distinguish one set of instructions from another


what are two basic statements to output text with PHP?
echo and print


what happens if the php file has an html extension instead of PHP?
the php code will not be executed


how is a single line comment made in php?
With //


how is a comment block made?
//


What are variables used for?
Variables are used for storing values, such as numbers, strings or function results, so that they can be
used many times in a script.


what do all variables start with?
All variables in PHP start with a $ sign symbol.


The correct way of setting a variable in PHP:

, $var_name = value;


is PHP strongly or loosely typed?
loosely


in php does a variable need to be declared (created) before being set?
no, php automatically creates the variable and sets it to the correct type.


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


in php how must a variable name start?
A variable name must start with a letter or an underscore _


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


should a variable name contain spaces?
no


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


What is a string variable used for?
A string variable is used to store and manipulate a piece of text.


What is the only string operator in php?
The concatenation operator (.)


What is the concatenation operator used for?
to put two string values together.


what are operators used for?
Operators are used to operate on values.


What kinds of different operators exist?
arithmetic, assignment, comparison, and logical


when should the if else statement be used?
if you want to execute a set of code when a condition is true and another if the condition is not true


when should the else if statement be used?
is used with the if...else statement to execute a set of code if one of several condition are true

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 ACADEMICAIDSTORE. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

75632 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
$10.29
  • (0)
  Add to cart