Search Header Logo

PHP FUNCTION TEST-4

Authored by Arivuselvi A

Computers

University

Used 1+ times

PHP FUNCTION TEST-4
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why should we use functions?

Easily maintained

Reusability

Easier error detection

All of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many categories of functions are there in PHP?

1

2

3

4

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is not a built-in function in PHP ?

fopen()

print()

addNumber()

gettype()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to define a function in PHP?

function {function body}

datatype functionName(parameters) {function body}

functionName(parameters) {function body}

function functionName(parameters) {function body}

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A function’s name cannot begin with a _______.

number

underscore

alphabet

Both A and B

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?

Discover more resources for Computers