Call
whatsapp
9447387064 | 9847003556
0471-2335855 | 8089080088 | 0471-2334855
9447387064 | 9847003556
0471-2335855 | 8089080088 | 0471-2334855
Cisco Training in Trivandrum, Trinity Technologies

No.1 Training Institute in Kerala

PHP QUESTIONS : PART 32

Give the syntax for closing a file in php

fclose(filepointer); 

fclose( ); 

 file_close(filepointer);

SHOW ANSWER

Which function is used to check the end of file ?

feof( )

 eof( ) 

end_of_file( )

SHOW ANSWER

What is the syntax for checking the end of file ?

feof( filepointer); 

eof(filepointer);

end_of_file(filepointer);

SHOW ANSWER

Name the File function to read a file line by line

fgets( )

 fgetc( )

 gets( )

SHOW ANSWER

Which file function reads a file character by character

fgetc( ) 



fgets( ) 

 getc( )

SHOW ANSWER

Select the correct syntax for reading a file line by line

fgets(filepointer); 

gets(filepointer); 

 fgetc(filepointer);

SHOW ANSWER

Select the syntax for reading a file character by character

fgetc( filepointer) 

fgets(filepointer)

getc(filepointer)

SHOW ANSWER

Mention the function to read file without using pointer

file_get_contents( ) 

fileread( ) 

 fread( ) 

SHOW ANSWER

Which among these are functions to write to a file ?

fwrite( ) 

 file_write( ) 

 fread( )

SHOW ANSWER

Which function in php reads the full contents of a file using a pointer ?

fpassthru( ) 

 full_read( ) 

 read( )

SHOW ANSWER

Which function in php is used to create a directory?

 mkdir( )

create_directory( ) 

 create_dir( )

SHOW ANSWER

What will be the displayed value for the code if the file doesn’t exist ? : echo file_exists(filename);

no value will be displayed

 1 

 false

SHOW ANSWER

The syntax for readfile function is ___________

readfile(“path” ); 

 readfile(“pointer”);

 readfile();

SHOW ANSWER
BACK | NEXT
TRINITY SOFTWARE SOLUTIONS,IInd floor, Radheyam Towers, Gandhari Amman Kovil Road, Pulimood, Trivandrum - 1
0471-2334855 | 2335855 | 9447387064 | 9847003556 info@trinitytechnology.in