PHP Functions Quiz

PHP Functions Quiz

Professional Development

•

40 Qs

quiz-placeholder

Similar activities

IA - Resumen

IA - Resumen

Professional Development

•

37 Qs

CySA+Sy Test 03

CySA+Sy Test 03

Professional Development

•

43 Qs

python_intro_2

python_intro_2

Professional Development

•

40 Qs

3. TEST "Completo" sulla Sicurezza in RETE

3. TEST "Completo" sulla Sicurezza in RETE

Professional Development

•

38 Qs

Microsoft SC-900 - Final

Microsoft SC-900 - Final

Professional Development

•

40 Qs

Self_Assessment_Test_3

Self_Assessment_Test_3

Professional Development

•

37 Qs

Page 1

Page 1

Professional Development

•

40 Qs

Soft Computing Quiz

Soft Computing Quiz

Professional Development

•

40 Qs

PHP Functions Quiz

PHP Functions Quiz

Assessment

Quiz

•

Information Technology (IT)

•

Professional Development

•

Practice Problem

•

Hard

Created by

Cecilio Salonoy

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to define a user-defined function in PHP?

def

function

define

func

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid reason to use functions in PHP?

To increase the number of lines of code

To minimize the number of source-code

To make the code more difficult to read

To prevent the use of variables

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main purpose of the return statement in a function?

To stop the PHP script entirely

To output a value directly to the browser

To send a value back to the calling code

To declare a new variable

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which pre-defined function is used to include a file and produce a fatal error if the file is not found?

include()

insert()

require()

attach()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The date() function is used to:

Calculate the difference between two dates

Create and format a date and/or time

Convert a date into a timestamp only

Set the server's default timezone

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to start a PHP session?

session_begin()

start_session()

session_start()

$_SESSION()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to calculate the square root of a number?

pow()

sqrt()

exp()

hypot()

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?