Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

PHP EXAM QUESTIONS AND ANSWERS

Beoordeling
-
Verkocht
-
Pagina's
6
Cijfer
A+
Geüpload op
23-01-2026
Geschreven in
2025/2026

PHP EXAM QUESTIONS AND ANSWERS

Instelling
PHP
Vak
PHP

Voorbeeld van de inhoud

PHP EXAM QUESTIONS AND ANSWERS

How many of the following statements are true for PHP operators? x+=y is the same as
x=x+y x=-y is the same as x=x-y x.=y is the same as x=x.y

1 2 or 3 - Answers -3

In PHP, a constant is set by the - Answers -define()function

t or f

In MySQL, the AND operator displays a record if ALL conditions listed are true. -
Answers -true

In PHP, ID keys in arrays are always assigned automatically. - Answers -true

How many of the following statements are true for PHP? PHP can only run on a Apache
server. PHP is a W3C standard. A PHP file has the file extension ".php". PHP scripts
are executed on the server.

1
2
3
4 - Answers -3

In MySQL, how to return all the records from a table named "Customers" sorted
REVERSE alphabetically by "FirstName"? - Answers -

t or f

In PHP, the setcookie() function must appear BEFORE the <html> tag. - Answers -

Which of the following is true for PHP variables?

Unless a data type is declared, it will be set to String as default
The data type is declared automatically when you use the variable
A variable must always be declared before being used - Answers -

What PHP function fetches a result row (from a MySQL connection) as an associative
array, a numeric array, or both? - Answers -

What PHP function is used to open a new connection to the MySQL server? - Answers
-

In MySQL, how to select all columns from a table named "Customers"?

, Group of answer choicesSELECT * CustomersSELECT * FROM CustomersSELECT
[all] FROM Customers - Answers -

In PHP, large comment blocks are defined by:
Group of answer choices<comment> and </comment>// and \\/* and */<!-- and --> -
Answers -

In PHP, a timestamp can be made with the
Group of answer choicessetdate() functionmktime() functiontimestamp() function -
Answers -

A MySQL connection in PHP will automatically close when the script ends.
Group of answer choicesTrueFalse - Answers -

Which of the following is NOT a valid variable name in PHP?
Group of answer choices$salesPerWeek$sales_per_week$sales-per-week - Answers -

All variables in PHP start with which symbol?
Group of answer choices&#$! - Answers -

In MySQL, how to select all the records from a table named "Customers" where
"FirstName" starts with an "a"?
Group of answer choicesSELECT * FROM Customers WHERE
FirstName=''a%''SELECT * FROM Customers WHERE FirstName LIKE ''a%''SELECT *
FROM Customers WHERE FirstName LIKE ''a'' - Answers -

What is the correct way to create a function in PHP?
Group of answer choicescreate myFunction()new_function myFunction()function
myFunction() - Answers -

What does PHP stand for? - Answers -PHP: Hypertext Preprocessor

In PHP, you can get the value of a constant with the
Group of answer choicesconstant() functionconstant_value() functionget_constant()
function - Answers -

In PHP, you can get the value of a constant with the - Answers -Constant () function

In MySQL, which keyword is used to sort the result?
Group of answer choicesSORT BYORDERORDER BYSORT - Answers -

How do you write "Hello World" in PHP?
Group of answer choicesResponse.Write("Hello World");output "Hello World";echo
"Hello World"; - Answers -

In MySQL, what is the proper syntax for inserting new data in a database?

Geschreven voor

Instelling
PHP
Vak
PHP

Documentinformatie

Geüpload op
23 januari 2026
Aantal pagina's
6
Geschreven in
2025/2026
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$13.49
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
GEEKA YALA UNIVERSITY
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
2107
Lid sinds
4 jaar
Aantal volgers
1446
Documenten
54018
Laatst verkocht
3 dagen geleden

3.8

358 beoordelingen

5
177
4
61
3
48
2
17
1
55

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen