PHP File and Database Management Quiz 3

PHP File and Database Management Quiz 3

University

15 Qs

quiz-placeholder

Similar activities

PPL 223 ( QUIZ 2) Syntax and Semantics

PPL 223 ( QUIZ 2) Syntax and Semantics

University

20 Qs

INFORMATIKA KELAS 7A DAN TB

INFORMATIKA KELAS 7A DAN TB

7th Grade - University

15 Qs

Titanic Challenge

Titanic Challenge

University

16 Qs

Orientasi Dasar PPLG

Orientasi Dasar PPLG

10th Grade - University

20 Qs

Quiz 1 Normalisasi

Quiz 1 Normalisasi

University

10 Qs

SBD QUIZ#13

SBD QUIZ#13

University

10 Qs

Data Visualization with Qlik Cloud

Data Visualization with Qlik Cloud

University

10 Qs

Quiz 1 | Information Security | Kali Linux Commands

Quiz 1 | Information Security | Kali Linux Commands

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 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?