Bissoy
Login
Register
Home
MCQs
Job Preparation
Higher Study
PHP
File System
Higher Study | PHP | File System
Practice Higher Study | PHP | File System on Bissoy — browse topics below and open any question.
Test my Merit
My Results
Create Exam
Questions
Which one of the following PHP function is used to determine a file’s last access time?
ক
filetime()
খ
fileatime()
গ
fileltime()
ঘ
filectime()
The filesize() function returns the file size in ___________
ক
bits
খ
bytes
গ
kilobytes
ঘ
gigabytes
Which one of the following function is capable of reading a file into an array?
ক
file()
খ
arrfile()
গ
arr_file()
ঘ
file_arr()
Which one of the following function is capable of reading a file into a string variable?
ক
file_contents()
খ
file_get_contents()
গ
file_content()
ঘ
file_get_content()
Which one of the following function operates similarly to fgets(), except that it also strips any HTML and PHP tags form the input?
ক
fgetsh()
খ
fgetsp()
গ
fgetsa()
ঘ
fgetss()
Which one of the following function outputs the contents of a string variable to the specified resource?
ক
filewrite()
খ
fwrite()
গ
filewrites()
ঘ
fwrites()
Which one of the following function reads a directory into an Array?
ক
scandir()
খ
readdir()
গ
scandirectory()
ঘ
readdirectory()
Which one of the following function is capable of reading a specific number of characters form a file?
ক
fgets()
খ
fget()
গ
fileget()
ঘ
filegets()
Which function sets the file filename’s last-modified and last-accessed times?
ক
sets()
খ
set()
গ
touch()
ঘ
touched()
Which function is useful when you want to output the executed command’s result?
ক
out_cmm()
খ
out_system()
গ
cmm()
ঘ
system()
fgets() is used to read a file one line at a time.
ক
True
খ
False
What is the difference between stat() and fstat()?
ক
While stat() works on open file pointers, fstat() works on files specified by pathname
খ
While fstat() works on open file pointers, stat() works on files specified by pathname
গ
fstat() has nothing to do with files
ঘ
stat() has nothing to do with files
ঙ
fstat() is an alias of stat()
flock() is used to unlock a file so that two or more people do not get access to it at the same time.
ক
True
খ
False
What is the purpose of basename() function?
ক
Returns the last accessed time of the file
খ
Returns the first accessed time of the file
গ
Strips of the path and returns the file name
ঘ
Strips of the path and returns the folder name
What should you do if your script is having problem recognizing file endings from a text file saved on a platform different from the one you’re reading it on?
ক
Change the auto_detect_line_endings INI setting
খ
Use a regular expression to detect the last letter of a line
গ
Use fpos()
ঘ
Use ftok()
ঙ
Read the file one character at a time
‹
1
2
›