Quiz
PHP
Erstelle ein kostenloses Konto, um dieses Quiz zu beenden
Speichere deinen Fortschritt und sieh dir dein Endergebnis an.
oder mit deiner E-Mail registrieren
Schon ein Konto? Anmelden
Fragen in diesem Quiz (20)
1What does PHP stand for?
- APrivate Home Page
- BPHP: Hypertext Preprocessor
- CPersonal Hypertext Processor
- DProfessional Hypertext Processor
2PHP server scripts are surrounded by delimiters, which?
- A<&>...</&>
- B<?php...?>
- C<script>...</script>
- D<?php>...</?>
33. How do you output "Hello World" in PHP
- A"Hello World";
- Becho "Hello World";
- CDocument.Write("Hello World");
4All variables in PHP start with which symbol?
- A&
- B$
- C!
- D#
5What is the correct way to end a PHP statement?
- A</php>
- BNew line
- C;
- D.
6The PHP syntax is most similar to:
- APerl and C
- BVBScript
- CJavaScript
- DAssembly
7How do you get information from a form that is submitted using the "get" method?
- ARequest.Form;
- B$_GET[];
- CRequest.QueryString;
8When using the POST method, variables are displayed in the URL:
- ARichtig
- BFalsch
9In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:
- ARichtig
- BFalsch
10Include files must have the file extension ".inc"
- ARichtig
- BFalsch
11What is the correct way to include the file "time.inc" ?
- A<?php include "time.inc"; ?>
- B<?php include:"time.inc"; ?>
- C<?php include file="time.inc"; ?>
- D<!-- include file="time.inc" -->
12What is the correct way to create a function in PHP?
- Acreate myFunction()
- Bfunction myFunction()
- Cnew_function myFunction()
13What is the correct way to open the file "time.txt" as readable?
- Afopen("time.txt","r");
- Bopen("time.txt");
- Copen("time.txt","read");
- Dfopen("time.txt","r+");
14PHP allows you to send emails directly from a script
- ARichtig
- BFalsch
15What is the correct way to connect to a MySQL database?
- Amysqli_open(host,username,password,dbname);
- Bmysqli_db(host,username,password,dbname);
- Cmysqli_connect(host,username,password,dbname);
16What is the correct way to add 1 to the $count variable?
- A$count =+1
- B++count
- C$count++;
- Dcount++;
17What is a correct way to add a comment in PHP?
- A/*...*/
- B*\...\*
- C<!--...-->
- D<comment>...</comment>
18PHP can be run on Microsoft Windows IIS (Internet Information Server)
- ARichtig
- BFalsch
19In PHP, the die() and exit() functions do the exact same thing.
- ARichtig
- BFalsch
20Which one of these variables has an illegal name?
- A$my_Var
- B$my-Var
- C$myVar
Informationen
- Beschreibung
- A simple quiz about PHP
- Autor
- Roger Stegeby
- Sprache
- English
- Aufrufe
- 90
- Schlagwörter
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz