PHP Quiz

PHP Quiz

University

10 Qs

quiz-placeholder

Similar activities

Horus Web I - Retour de formation

Horus Web I - Retour de formation

11th Grade - Professional Development

14 Qs

C programming-1

C programming-1

University

13 Qs

Repetition PHP / HTML

Repetition PHP / HTML

University

10 Qs

Architecture MVC et programmation PHP

Architecture MVC et programmation PHP

University

10 Qs

PHP (Hypertext Preprocessor)

PHP (Hypertext Preprocessor)

University

12 Qs

Java Method

Java Method

University

15 Qs

PHP STRING AND OPERATORS

PHP STRING AND OPERATORS

University

15 Qs

PHP Quiz

PHP Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Placement Stjosephs

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does PHP stand for?

Personal Home Page

PHP: Hypertext Preprocessor

Private Home Page

Preprocessor Home Page

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to start a PHP block of code?

  1. <php>

  1. <?php>

  1. <script>

  1. <php code>

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a variable in PHP?

var $variableName;

int $variableName;

$variableName;

$variableName = value;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data types is not supported by PHP?

String

Integer

Float

Character

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to define a constant in PHP?

const NAME = "value";

constant NAME = "value";

define("NAME", "value");

NAME = "value";

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following operators is used to concatenate two strings in PHP?

+

.

&

,

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to check the data type of a variable in PHP?

checktype($variable)

gettype($variable)

is_type($variable)

check($variable)

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?