PHP

Beschreibung

A simple quiz about PHP
Roger Stegeby
Quiz von Roger Stegeby, aktualisiert more than 1 year ago
Roger Stegeby
Erstellt von Roger Stegeby vor mehr als 9 Jahre
64
0

Zusammenfassung der Ressource

Frage 1

Frage
What does PHP stand for?
Antworten
  • Private Home Page
  • PHP: Hypertext Preprocessor
  • Personal Hypertext Processor
  • Professional Hypertext Processor

Frage 2

Frage
PHP server scripts are surrounded by delimiters, which?
Antworten
  • <&>...</&>
  • <?php...?>
  • <script>...</script>
  • <?php>...</?>

Frage 3

Frage
3. How do you output "Hello World" in PHP
Antworten
  • "Hello World";
  • echo "Hello World";
  • Document.Write("Hello World");

Frage 4

Frage
All variables in PHP start with which symbol?
Antworten
  • &
  • $
  • !
  • #

Frage 5

Frage
What is the correct way to end a PHP statement?
Antworten
  • </php>
  • New line
  • ;
  • .

Frage 6

Frage
The PHP syntax is most similar to:
Antworten
  • Perl and C
  • VBScript
  • JavaScript
  • Assembly

Frage 7

Frage
How do you get information from a form that is submitted using the "get" method?
Antworten
  • Request.Form;
  • $_GET[];
  • Request.QueryString;

Frage 8

Frage
When using the POST method, variables are displayed in the URL:
Antworten
  • True
  • False

Frage 9

Frage
In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:
Antworten
  • True
  • False

Frage 10

Frage
Include files must have the file extension ".inc"
Antworten
  • True
  • False

Frage 11

Frage
What is the correct way to include the file "time.inc" ?
Antworten
  • <?php include "time.inc"; ?>
  • <?php include:"time.inc"; ?>
  • <?php include file="time.inc"; ?>
  • <!-- include file="time.inc" -->

Frage 12

Frage
What is the correct way to create a function in PHP?
Antworten
  • create myFunction()
  • function myFunction()
  • new_function myFunction()

Frage 13

Frage
What is the correct way to open the file "time.txt" as readable?
Antworten
  • fopen("time.txt","r");
  • open("time.txt");
  • open("time.txt","read");
  • fopen("time.txt","r+");

Frage 14

Frage
PHP allows you to send emails directly from a script
Antworten
  • True
  • False

Frage 15

Frage
What is the correct way to connect to a MySQL database?
Antworten
  • mysqli_open(host,username,password,dbname);
  • mysqli_db(host,username,password,dbname);
  • mysqli_connect(host,username,password,dbname);

Frage 16

Frage
What is the correct way to add 1 to the $count variable?
Antworten
  • $count =+1
  • ++count
  • $count++;
  • count++;

Frage 17

Frage
What is a correct way to add a comment in PHP?
Antworten
  • /*...*/
  • *\...\*
  • <!--...-->
  • <comment>...</comment>

Frage 18

Frage
PHP can be run on Microsoft Windows IIS (Internet Information Server)
Antworten
  • True
  • False

Frage 19

Frage
In PHP, the die() and exit() functions do the exact same thing.
Antworten
  • True
  • False

Frage 20

Frage
Which one of these variables has an illegal name?
Antworten
  • $my_Var
  • $my-Var
  • $myVar
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Test I. Introduction to web technologies
Angel Martínez Rodriguez
Evaluación de Programación (MYSQL y PHP)
Mitchel Romero C
OpenSource Programming
Faheem Ahmed
PHP Exam One
tr.badhan
PHP & MySQL
hratg
PHP intro
Māris Ozoliņš
Programming and Scripting Skills Needed
neteng33
Chapter 6: PHP
Rebecca Walton
Plugin Development
Joshua Reeves
WebTervezés
Nagy Ádám