PHP BASIC

PHP BASIC

University

10 Qs

quiz-placeholder

Similar activities

Quiz 12 Perncangan dan Pemrograman Web-2021-1

Quiz 12 Perncangan dan Pemrograman Web-2021-1

University

10 Qs

Week 12 - Project #3 Sample Questions

Week 12 - Project #3 Sample Questions

University

12 Qs

Command Line

Command Line

12th Grade - Professional Development

9 Qs

الوحدة الاولى صف 9 1442

الوحدة الاولى صف 9 1442

10th Grade - University

10 Qs

Quiz Web

Quiz Web

University

13 Qs

Python Files

Python Files

University

10 Qs

CM4 April 5 Quiz 2

CM4 April 5 Quiz 2

University

10 Qs

PWD_TP1_TP2_TP3

PWD_TP1_TP2_TP3

University

9 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?