Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 11 pages
Exam (elaborations)

PHP MySQL FINAL EXAM QUESTIONS AND ANSWERS

Document preview thumbnail
Preview 2 out of 11 pages

PHP MySQL FINAL EXAM QUESTIONS AND ANSWERS

Content preview

PHP MySQL FINAL EXAM QUESTIONS
AND ANSWERS



How do you escape into php? - Answer-<?php... ?>



How do you write php Comments? - Answer-// single line

# also a comment

/star

A whole bunch of comments



Star/



What are variables in php? - Answer-Named container for data.

Can be created, changed, deleted at any time in the script.

All variables denoted with leading ($)

A variable is created as soon as you assign a value to it (=)

Case sensitive ($x !=$X)

Names may contain numbers and/or underscores

Must not start with a number

, What are Data Types in php? - Answer-Intergers = whole numbers (6)

Doubles = floating-point numbers (56.23)

Booleans = TRUE (1). FALSE (0)

Strings = words ('PHP 4 President')

Arrays = list of values (4, 8, 15, 16, 23, 42)

Objects = classes, OOP

Resources = database, connections

Null = no value, empty



What is the difference between 'single' and "double" quotes? - Answer-single quotes taken literally,
that's what you get.

double quotes get parsed. Get's the value that's inside the double quote.



What are some Comparison Operators? - Answer-== Equal

!= Not Equal

<> Not Equal

< Less Than

> Greater Than

<= Less than or equal to

>= Greater than or equal to

=== Identical, must be same type



== - Answer-Equal



!= - Answer-Not equal

Document information

Uploaded on
January 17, 2025
Number of pages
11
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$14.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Zanaya
4.5
(12)
Sold
77
Followers
29
Items
10176
Last sold
3 days ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions