PHP File and Database Management Quiz 3

PHP File and Database Management Quiz 3

University

15 Qs

quiz-placeholder

Similar activities

TIK-REKAM MEDIS

TIK-REKAM MEDIS

University

10 Qs

Raspodijeljeni sustavi - uvodne vježbe

Raspodijeljeni sustavi - uvodne vježbe

University

17 Qs

Week 1 - Topic 1 SECP3623-02

Week 1 - Topic 1 SECP3623-02

University

20 Qs

DIGILOG - 10/08/2025

DIGILOG - 10/08/2025

University

20 Qs

HackHarbor 3.0 : Day 1

HackHarbor 3.0 : Day 1

University

16 Qs

Kelas 4 bab-1

Kelas 4 bab-1

4th Grade - University

10 Qs

BASIC PC COMPONENTS AND TROUBLESHOOTING  - BATCH 1

BASIC PC COMPONENTS AND TROUBLESHOOTING - BATCH 1

University

15 Qs

Windows Server Installation with DHCP, DNS, and AD

Windows Server Installation with DHCP, DNS, and AD

University

18 Qs

PHP File and Database Management Quiz 3

PHP File and Database Management Quiz 3

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Medium

Created by

Abdoulkarem Abdoullahi

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function is used to open a file in PHP?

readfile()

openfile()

fopen()

fileopen()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which mode opens a file for writing and truncates it to zero length?

r

w

r+

a

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function is used to create a new directory in PHP?

createdir()

mkdir()

newdir()

dircreate()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to delete a directory in PHP?

remove_dir()

deletedir()

dirremove()

rmdir()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the $_FILES array in PHP?

To store session data

To handle uploaded files

To manage cookies

To store database connections

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to write data to a file in PHP?

fwrite()

filewrite()

writefile()

putfile()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to create a cookie in PHP?

createcookie(name, value, expire)

setcookie(name, value, expire)

newcookie(name, value, expire)

cookiecreate(name, value, expire)

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?