Roger Stegeby
Quiz von , erstellt am more than 1 year ago

A simple quiz about PHP

61
0
0
Roger Stegeby
Erstellt von Roger Stegeby vor etwa 9 Jahre
Schließen

PHP

Frage 1 von 20

1

What does PHP stand for?

Wähle eine der folgenden:

  • Private Home Page

  • PHP: Hypertext Preprocessor

  • Personal Hypertext Processor

  • Professional Hypertext Processor

Erklärung

Frage 2 von 20

1

PHP server scripts are surrounded by delimiters, which?

Wähle eine der folgenden:

  • <&>...</&>

  • <?php...?>

  • <script>...</script>

  • <?php>...</?>

Erklärung

Frage 3 von 20

1

3. How do you output "Hello World" in PHP

Wähle eine der folgenden:

  • "Hello World";

  • echo "Hello World";

  • Document.Write("Hello World");

Erklärung

Frage 4 von 20

1

All variables in PHP start with which symbol?

Wähle eine der folgenden:

  • &

  • $

  • !

  • #

Erklärung

Frage 5 von 20

1

What is the correct way to end a PHP statement?

Wähle eine der folgenden:

  • </php>

  • New line

  • ;

  • .

Erklärung

Frage 6 von 20

1

The PHP syntax is most similar to:

Wähle eine der folgenden:

  • Perl and C

  • VBScript

  • JavaScript

  • Assembly

Erklärung

Frage 7 von 20

1

How do you get information from a form that is submitted using the "get" method?

Wähle eine der folgenden:

  • Request.Form;

  • $_GET[];

  • Request.QueryString;

Erklärung

Frage 8 von 20

1

When using the POST method, variables are displayed in the URL:

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 9 von 20

1

In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 10 von 20

1

Include files must have the file extension ".inc"

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 11 von 20

1

What is the correct way to include the file "time.inc" ?

Wähle eine der folgenden:

  • <?php include "time.inc"; ?>

  • <?php include:"time.inc"; ?>

  • <?php include file="time.inc"; ?>

  • <!-- include file="time.inc" -->

Erklärung

Frage 12 von 20

1

What is the correct way to create a function in PHP?

Wähle eine der folgenden:

  • create myFunction()

  • function myFunction()

  • new_function myFunction()

Erklärung

Frage 13 von 20

1

What is the correct way to open the file "time.txt" as readable?

Wähle eine der folgenden:

  • fopen("time.txt","r");

  • open("time.txt");

  • open("time.txt","read");

  • fopen("time.txt","r+");

Erklärung

Frage 14 von 20

1

PHP allows you to send emails directly from a script

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 15 von 20

1

What is the correct way to connect to a MySQL database?

Wähle eine der folgenden:

  • mysqli_open(host,username,password,dbname);

  • mysqli_db(host,username,password,dbname);

  • mysqli_connect(host,username,password,dbname);

Erklärung

Frage 16 von 20

1

What is the correct way to add 1 to the $count variable?

Wähle eine der folgenden:

  • $count =+1

  • ++count

  • $count++;

  • count++;

Erklärung

Frage 17 von 20

1

What is a correct way to add a comment in PHP?

Wähle eine der folgenden:

  • /*...*/

  • *\...\*

  • <!--...-->

  • <comment>...</comment>

Erklärung

Frage 18 von 20

1

PHP can be run on Microsoft Windows IIS (Internet Information Server)

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 19 von 20

1

In PHP, the die() and exit() functions do the exact same thing.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 20 von 20

1

Which one of these variables has an illegal name?

Wähle eine der folgenden:

  • $my_Var

  • $my-Var

  • $myVar

Erklärung