PHP File and Database Management Quiz 3

PHP File and Database Management Quiz 3

University

15 Qs

quiz-placeholder

Similar activities

PSTS KELAS XI SEMESTER 1 2025-2026

PSTS KELAS XI SEMESTER 1 2025-2026

11th Grade - University

16 Qs

Q5. Normalization of Database Table

Q5. Normalization of Database Table

University

17 Qs

KUIS DENGAN TOPIK MATERI PERTEMUAN 1

KUIS DENGAN TOPIK MATERI PERTEMUAN 1

10th Grade - University

10 Qs

PHP OOP Quiz

PHP OOP Quiz

University

20 Qs

Emoji Tech Riddles for BCA Students

Emoji Tech Riddles for BCA Students

University

19 Qs

HO - 10 Preguntas sobre Android Studio

HO - 10 Preguntas sobre Android Studio

University

20 Qs

TechStackChallenge

TechStackChallenge

University

15 Qs

Database Concepts and MS Access Assessment

Database Concepts and MS Access Assessment

8th Grade - University

15 Qs

PHP File and Database Management Quiz 3

PHP File and Database Management Quiz 3

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

Abdoulkarem Abdoullahi

Used 3+ times

FREE Resource

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)

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?