Wednesday, 3 September 2014

Hello Everyone...!!!


Here are some multiple choice questions by M2Soft for PHP DEVELOPERS to improve WEB DEVELOPMENT skills . 
 

PHP Questions


Que.1 What function can you use to create your own streams using the PHP stream wrappers and register them within PHP?

A) wrapper_register
B) stream_wrapper
C) stream_wrapper_register
D) stream_wrapper_reg

Que.2 Which of the following functions retrieve the entire contents of a file in such a way that it can be used as part of an expression? (Choose 2)

A) file_get_contents()
B) fgets()
C) fopen()
D) file()
E) readfile()

Que.3 Use the .............. to delete the data inside the table, and not the table itself?

A) DROP TABLE
B) DELETE TABLE
C) TRUNCATE TABLE
D) REMOVE TABLE

Que.4 Which of the following functions reads the entire contents of a file?

A) fgets()
B) file_get_contents()
C) fread()
D) readfile()
E) file()

Que.5 What will the following script do?
<?php
echo getservbyname ('ftp', 'tcp');
?>

A) A list of the FTP servers on the local network
B) The address of the FTP server called “tcp”
C) The port associated with the TCP service called “FTP”
D) A list of the ports associated with all services except FTP


Que.6 What will the following script output?

<?php
$time = strtotime ('2004/01/01');
echo date ('H:\i:s', $time);
?>

A) 00:00:00
B) 12:00:00
C) 00:i:00
D) 12:i:00
E) -1

Que.7 Which of the following is not an SQL aggregate function?

A) AVG
B) SUM
C) MIN
D) MAX
E) CURRENT_DATE()


Que.8 What is the purpose of basename() function?

A) Returns the last accessed time of the file
B) Returns the first accessed time of the file
C) Strips of the path and returns the file name.
D) Strips of the path and returns the folder name.


Que.9 Which array function checks if the specified key exists in the array

A) array_key_exist()
B) array_key_exists()
C) array_keys_exists()
D) arrays_key_exists()


Que.10 The ___________ function can be used to compare two strings using a case-insensitive binary algorithm

A) strcmp()
B) stricmp()
C) strcasecmp()
D) stristr()
E) None of the above

The Answer-sheet of these questions will be available tomorrow..

For more questions CLICK THE LINKS BELOW

Share your experience or any suggestion with us .. VIA COMMENTS




0 comments:

Post a Comment

  • RSS
  • Delicious
  • Digg
  • Facebook
  • Twitter
  • Linkedin
  • Youtube