PHP BASIC

PHP BASIC

University

10 Qs

quiz-placeholder

Similar activities

DPS4013 : Summative Intro PHP

DPS4013 : Summative Intro PHP

University

10 Qs

PWL 2

PWL 2

University

10 Qs

Who Wants To Be a Programmer?

Who Wants To Be a Programmer?

University - Professional Development

10 Qs

Korean

Korean

KG - Professional Development

10 Qs

React-Routing

React-Routing

University

10 Qs

ÇYDD

ÇYDD

University

11 Qs

LDAP Knowledge Quiz

LDAP Knowledge Quiz

University

11 Qs

Document Processing Quiz

Document Processing Quiz

University

12 Qs

PHP BASIC

PHP BASIC

Assessment

Quiz

Professional Development, Education, Instructional Technology

University

Medium

Created by

kris kris

Used 123+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Insert the missing part of the code below to output "Hello World".

echo and print

System.out.println

println

cout

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Write the correct opening tag and close tag for PHP scripts.

{}

<?php ?>

<>

<? ?>

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Statements in PHP have to end with a special character, which one?

.

,

:

;

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Create a variable in php assign with the

String

const

let

$

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Get the length of the string "Hello World!".

Leng

substring

strlen

len

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Use the correct function to output the number of items in an array.


$fruits = array("Apple", "Banana", "Orange");

echo $fruits[0]

echo $fruits["Apple"]

echo count($fruits)

echo $fruits[0][1]

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Write a correct syntax to include a file named "footer.php".

include ("footer.php");

import("footer.php");

required("footer.php");

export("footer.php");

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?