Thursday 23 October 2014

Multiple Choice PHP Technical interview Questions :



Questions based on object tools :


1. Which function was introduced to help automate the inclusion of class files?

a) __load()
b) __preload()
c) __autoload()
d) __inload()

2. How many times can you define __autoload in a process?

a) once
b) twice
c) thrice
d) as many times as needed

3. Which one of the following functions will you use to check that the class exists before you work with it?

a) class_exist()
b) class_exists()
c) exist()
d) exists_class()

4. Which one of the following will you use to check the class of an object?

a) class()

b) _class()
c) class_check()
d) get_class()

5. PHP 4 did not support instanceof. Instead, which function did it provide?

a) is()
b) get_class()
c) is_a()
d) is_the()


Introduction to Preg in PHP


1. Which one of the following statements should be used to include a file?

a) #include ‘filename’;
b) include ‘filename’;
c) @include ‘filename’;
d) #include ;

2. Which one of the following methods is responsible for sending the query to the database?

a) query()
b) send_query()
c) sendquery()
d) query_send()

3. Which one of the following methods recuperates any memory consumed by a result set?

a) destroy()
b) remover()
c) alloc()
d) free()

4. Which of the methods are used to manage result sets using both associative and indexed arrays?

a) get_array() and get_row()
b) get_array() and get_column()
c) fetch_array() and fetch_row()
d) fetch_array() and fetch_column()

5. Which one of the following method is used to retrieve the number of rows affected by an INSERT, UPDATE, or DELETE query?

a) num_rows()
b) affected_rows()
c) changed_rows()
d) new_rows()
View Answer

Image uploading


1. Before you can start processing images with PHP, you must first add the ability to upload images to your administrative form on ___.

a) .htaccess
b) function.inc.php
c) index.php
d) admin.php



2. When you’re uploading files you need to set the enctype of the form to ___.

a) text
b) text/file
c) multipart/form-data
d) multimedia/form-data

3. To check whether a file was uploaded, you look in the ___ superglobal array.

a) $_FILES
b) $_DOCS
c) $_DOCUMENTS
d) $_FOLDERS

4. To make the ImageHandler class portable you should create a separate file for it called ___.

a) imagehandler.inc.php
b) images.inc.php
c) handler.inc.php
d) imghandler.inc.php

5. DocBlocks are indicated by opening a comment using ___.

a) /*
b) //*
c) /**
d) /*/


Answersheet of these Questions will be available Tomorrow
 
Want more Questions....??? CLICK THE LINKS BELOW
 

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

 


Regards : Mobile Application Development in Indore



1 comment:

  1. Wow that great multiple choice PHP technical interview all of these question is helpful for new PHP developers....

    PHP Programming Services

    ReplyDelete

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