PHP Functions Quiz

PHP Functions Quiz

Professional Development

40 Qs

quiz-placeholder

Similar activities

CONSTRUYE E IMPLEMENTA APLICACIONES WEB-NERI

CONSTRUYE E IMPLEMENTA APLICACIONES WEB-NERI

Professional Development

38 Qs

Simulado SAA-C03 - 35 QUESTÕES

Simulado SAA-C03 - 35 QUESTÕES

Professional Development

35 Qs

ITIL Q41~Q80

ITIL Q41~Q80

Professional Development

40 Qs

ITIL Q161-Q200

ITIL Q161-Q200

Professional Development

40 Qs

ITIL Q241-Q280

ITIL Q241-Q280

Professional Development

40 Qs

CODE RIDDLE

CODE RIDDLE

Professional Development

40 Qs

EVALUACION DIAGNOSTICA MEC 2

EVALUACION DIAGNOSTICA MEC 2

Professional Development

40 Qs

Python_ponavljanje

Python_ponavljanje

Professional Development

40 Qs

PHP Functions Quiz

PHP Functions Quiz

Assessment

Quiz

Information Technology (IT)

Professional Development

Hard

Created by

Cecilio Salonoy

Used 2+ times

FREE Resource

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()

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?