Search Header Logo

Quiz 2 - ITEDEV - Final

Authored by Ryan Gente

Professional Development

Professional Development

Used 15+ times

Quiz 2 - ITEDEV - Final
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does isset() do in PHP?

Declares a variable
Checks if a variable is set
Compares values
Defines a constant

Answer explanation

Checks if a variable is set and not null.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which element is used to create a button in HTML?

<btn>
<button>
<submit>
<input type='text'>

Answer explanation

The correct element is <button>.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What PHP function is used to remove whitespace?

remove_spaces()
strip()
escape()
trim()

Answer explanation

trim() removes whitespace from both ends of a string.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which superglobal is used to retrieve form data?

$_GET
$_POST
$_FORM
$_DATA

Answer explanation

$_POST is used for form submission.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does PHP typically check if a button was clicked?

$_CLICK
isset($_POST['button_name'])
onClick()
button_clicked()

Answer explanation

Using isset($_POST['button_name']) is standard practice.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of .htaccess?

Style HTML
Handle sessions
Control web server settings
Redirect to login

Answer explanation

.htaccess is used for server-level configurations.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which PHP tag starts a block of code?

<php>
<?php ?>
<script>
<code>

Answer explanation

<?php ?> is the correct PHP opening tag.

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 Professional Development