100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

Question Bank in line with PHP Programming with MySQL The Web Technologies Series,Gosselin,2e

Rating
-
Sold
-
Pages
178
Grade
A+
Uploaded on
25-06-2024
Written in
2023/2024

Take your exam prep efforts reach new levels and new highs with practice test bank questions developed specifically for PHP Programming with MySQL The Web Technologies Series,Gosselin,2e. The number one factor in preparing for exams is practice. and the test bank provides just that. You will enter the exam with high confidence since you have practiced with various test questions. You basically have an idea on anything your professor would test you on. Don't wait any longer. Buy these exams and start studying in no time!

Show more Read less











Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
June 25, 2024
Number of pages
178
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Content preview

Chapter 1: Getting Started with PHP




TRUE/FALSE



1. All Web pages containing PHP code must have an extension of .php.


ANS: T PTS: 1 REF: 2



2. The source code for PHP can be viewed in the client browser.


ANS: F PTS: 1 REF: 2



3. It is a good practice to name all Web files with a .php extension even if they contain no PHP
code.


ANS: F PTS: 1 REF: 3



4. In PHP, you are limited to ten (10) code blocks in a single page.


ANS: F PTS: 1 REF: 3



5. Using the standard method of writing PHP blocks, the <?php and ?> are used to begin and
end a code block.


ANS: T PTS: 1 REF: 3



6. The primary purpose of a semicolon in PHP is to identify the end of a line.


ANS: F PTS: 1 REF: 4

, 7. In PHP, each statement must be placed on a separate line.


ANS: F PTS: 1 REF: 4



8. When using the <script> element, a value of “php” must be assigned to the type attribute.


ANS: F PTS: 1 REF: 6



9. When using multiple arguments in a function, you must separate the arguments with a comma.


ANS: T PTS: 1 REF: 11



10. Both the echo and print statements return a value of 1 if successful and 0 if not successful.


ANS: F PTS: 1 REF: 13



11. A text string can be contained in either double or single quotation marks.


ANS: T PTS: 1 REF: 14



12. A line comment must be placed at the end of the line to which the comment refers.


ANS: F PTS: 1 REF: 21



13. $_ABC1 is a valid variable identifier.


ANS: F PTS: 1 REF: 23

,14. In PHP, you can declare a variable without assigning a value to it.


ANS: F PTS: 1 REF: 23



15. When you pass a variable name to the echo statement, you must enclose the variable name in
double quotation marks.


ANS: F PTS: 1 REF: 24



16. If you use a variable name in a text string enclosed by single quotation marks, the name of the
variable will display.


ANS: T PTS: 1 REF: 25



17. Constant names, like variable names, must begin with a $.


ANS: F PTS: 1 REF: 28



18. Constant names are always case sensitive.


ANS: F PTS: 1 REF: 28



19. Data types that can be assigned only a single value are called primitive types.


ANS: T PTS: 1 REF: 30



20. When you assign a NULL value to a variable, you ensure that the variable does not contain any
data.


ANS: T PTS: 1 REF: 30

, 21. Arrays and objects are examples of the primitive data type.


ANS: F PTS: 1 REF: 30



22. In PHP programming, you can only use TRUE or FALSE to indicate Boolean values.


ANS: T PTS: 1 REF: 33



23. Array names are often referred to with the array operators [ and ] at the end of the name to
clearly define them as arrays.


ANS: T PTS: 1 REF: 33



24. The numbering of elements within an array starts with an index number of one (1).


ANS: F PTS: 1 REF: 34



25. The values assigned to different array elements of the same array can be of different data types.


ANS: T PTS: 1 REF: 36



26. A unary operator requires an operand before or after the operator.


ANS: T PTS: 1 REF: 41



27. The modulus operator returns the remainder left from the division of two integers.


ANS: T PTS: 1 REF: 41

Get to know the seller

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.
TestBank4Textbooks Harvard Law School
View profile
Follow You need to be logged in order to follow users or courses
Sold
200
Member since
1 year
Number of followers
25
Documents
2972
Last sold
3 days ago
Practice tests and quizzes

You can find bunch of tests, quizzes, and practice exams for a lot of college-level textbooks and classes. We cover colleges in the U.S. , Canada and worldwide.

4.1

34 reviews

5
22
4
2
3
4
2
2
1
4

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

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

Student with book image

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

Alisha Student

Frequently asked questions