Search Header Logo

web13

Authored by Karthika J

Other

Professional Development

Used 2+ times

web13
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

31 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

All PHP code, must be contained within ________ tags

<?php ... php?>
<?php ... ?>
<php ... >
<%php ... %>

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In PHP _________ is a statement that returns a value to the statement that called the function.

get statement
return statement
value statement
request statement

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following PHP code? <?php function a() { function b() { echo “I am b”; } echo “I am a”; } b(); a(); ?>

I am b
I am bI am a
Error
I am a

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Global data can be accessed from inside a function using _______ keyword in PHP.

local
public
global
protected

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The _________ functions also known as closures in PHP.

Anonymous
global
self
defined

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When a function returns FALSE in PHP, _______function is used to print error message.

die()
error()
unset()
clear()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following function opens a file in PHP?

fopen()
open()
fop()
file_open()

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?