PHP File and Database Management Quiz 3

PHP File and Database Management Quiz 3

University

15 Qs

quiz-placeholder

Similar activities

ArangoDb quiz

ArangoDb quiz

University

20 Qs

UTS KELAS 4

UTS KELAS 4

4th Grade - University

20 Qs

Unit-1 Introduction to Cloud Computing

Unit-1 Introduction to Cloud Computing

University

20 Qs

Diploma in IT - Computer Savvy Quiz

Diploma in IT - Computer Savvy Quiz

University

15 Qs

NoSQL Concepts

NoSQL Concepts

University

10 Qs

Hari 1 - Dasar Keamanan Data & Ancaman Bagi UMKM

Hari 1 - Dasar Keamanan Data & Ancaman Bagi UMKM

University

20 Qs

 XI Kuis Analisis Data

XI Kuis Analisis Data

10th Grade - University

20 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 3+ 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)

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?