PHP File and Database Management Quiz 3

PHP File and Database Management Quiz 3

University

15 Qs

quiz-placeholder

Similar activities

Počítačová grafika

Počítačová grafika

6th Grade - University

10 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

CHAPTER 1: SYSTEM ANALYSIS AND DESIGN

CHAPTER 1: SYSTEM ANALYSIS AND DESIGN

University

18 Qs

Bezpieczeństwo w sieci dla uczniów

Bezpieczeństwo w sieci dla uczniów

6th Grade - University

20 Qs

Introduction to Computer Programming

Introduction to Computer Programming

University

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