Opening – .NET Developer for a fast growing IT Firm, Banglore

A fast growing IT firm is looking for candidates to fulfill the following position,

Designation – .Net Developer

Location – Bangalore (Banaswadi)

Experience – 3 to 5 years

Salary – Best in the industry

Requirement: Following Software competencies required :
1. .Net 4.5
2. SQL Server
3. Javascript Jquery
4. ASP.NET M/C4
5. C#
6. LINQ & Entity framework

How to apply :
Candidates interested for this position kindly mail your resume at maximhrsolutions@gmail.com

Read More

Opening – Admin Executive/ House manager for one of leading business tycoon house

Requirement: – Urgently require Admin Executive/ House manager for one of leading business tycoon house – Industry : From Hospitality/corporate(admin function) – Experience: 4 to 5 years – Age criteria: 28-37 years(only female)

Location: South Mumbai

Salary: – 25k to 40 k

How to apply ? If you are interested, send resume on this id : sunita.javeri@talentcorner.in & you can also call on 9860778848

Read More

Job opening for AWS Programming Engineer at Vserv.mobi, Mumbai

Job Title : AWS Programming Engineer

Position Overview :

The software engineer will be responsible to design efficient, adaptable, & reusable code. The role requires to tuning components for high performance & scalability using techniques such as caching, code optimization, and efficient memory management. This will involve working with architecture, application development and operations to help achieve a state-of-the-art environment that meets current and future business objectives.

Technical Skills Required :

  • AWS
  • JAVA
  • Cloud
  • Amazon web services

Principal Responsibilities :

  • Participate in all aspects of the development lifecycle including requirements analysis, estimating, design, implementation, testing, and release DNA
  • Strong knowledge of Core Java
  • Strong logical and programming skills
  • Good understanding of the object oriented design principles
  • Clear understanding of Cloud concepts
  • Hands on experience with Amazon Web Services
  • Ability to handle fast paced work environments and deadlines
  • Ability to work independently and deliver
  • Flexibility and enthusiasm to learn new ideas and concepts
  • Logical and innovative skills
  • High Competitive and adhere to project timelines.
  • Ability to present ideas in user-friendly language
  • Able to prioritize and execute tasks in a high-pressure environment
  • Excellent relationship management Skills and a good team player
  • Confident, passionate and enthusiastic attitude

Qualification : Minimum BE or B Tech in Computer Science or equivalent

Experience : min 2-3 years of work experience in Java

Location - Mumbai, Goregaon – east

Company Profile : vserv.com

Contact : If this interests you please share your resume at jobs@vserv.com


Do check out our interview questions on java and related interview experience shared on our website by our readers.

Read More

Microsoft – Virtualization Consultant Interview Questions and Process

Company
Microsoft

Job Title / Position
Virtualization Consultant

Total experience (in years) at the time of applying for the job
3.5 years

Skills required for the job

  • Hyper V
  • Clustering
  • SCVMM
  • Windows Server

Hiring and Interview Process
This opening was for Microsoft Global Delivery Services Team that is based in Hyderabad and Bangalore. Openings were for both the locations. Global Delivery Services team basically consults and advises customers on how to implement and deploy architecture.

Role was for Virtulization Consultant and requirements were in-depth knowledge about Microsoft Windows Server 2012 , Hyper V , SCVMM.

Resumes were short-listed by the panellist and were called for F2F. with them.

First Round was taken by senior guy from Microsoft GDS. It lasted for around 2 hours with me drawing out complex architecture on the white board and bit of hands on virtual machines. More of like training session or triage.

Was asked to come back after 2 months.

From what I heard the whole process consists of 5 rounds. First 2 rounds are F2F technical. 3rd Round is practical lab environment round after which there is managerial round and HR round.

List down the questions you remember

Questions related to Windows Server 2012 and especially core concepts of Hyper V and clustering. Also SAN related questions were asked too.

Did you get the job ?
No

How did you get to this interview ?
Recruitment Agency

How long this the entire interview process took ?
1 Day

Job Location
Banglore

Interview Date
August 2014

Interview Difficulty
Very Difficult

Overall Experience
Good

[interviewfooter]

Read More

Recruitment of Probationary Officers in Associate Banks of SBI 2014-15

Recruitment of Probationary Officers in Associate Banks of SBI 2014-15

1. ELIGIBLITY CRITERIA

Graduation from a recognized university.

2. AGE LIMIT

21-30 years as on 01.09.2014

3. PAY

Approx 65,000/- per month.

4. HOW TO APPLY

Candidates will be required to register themselves online first through Bank’s website www.statebankofindia.com or www.sbi.co.in. Read more

5. IMPORTANT DATES

  • Online registration of application : 01.09.2014 to 18.09.2014
  • Payment of fee : Online 01.09.2014 to 18.09.2014
  • Payment of fee : Offline 03.09.2014 to 20.09.2014

Check out the below advertisement for more details…

Recruitment of Probationary Officers in Associate Banks of SBI 2014-15

Read More

Trainee PHP Programmer at Codebox – Navi Mumbai

Codebox

We are a growing startup in Navi Mumbai and looking for passionate and bright programmers who want to break into the IT industry. We use the latest cutting edge web technologies for developing web 2.0 applications, websites and software solutions.

Hiring for the position of Trainee PHP Programmer

Technologies you will be working on :

  • PHP (MVC Frameworks)
  • MySQL
  • Javascript
  • AJAX,
  • Version Control (SVN, GIT)*
  • jQuery
  • Linux

Role :

  • Requirements Analysis
  • Database design
  • Frontend Development (UI, User Interaction – Javascript)
  • Business Logic (Server Side Programming)

Must have willingness to learn new technologies.

Procedure :

  • Written Aptitude Test
  • Technical Interview (Basic computer science concepts)

Position :

PHP Developer.

Experience :

Not Required

Salary :

As per candidate competency

Qualification :

Any

Location :

Navi Mumbai (We are located in Mahape, Navi Mumbai). Candidate must be willing to travel / based nearby.

Please Note:

  • No money will be collected
  • This is a training and recruitment job. No money collected from candidates. Training period 2 months (approx – depending on candidate)
  • Direct job with the company www.codebox.in
  • Salary will be paid after training period.
  • Anyone willing to work in PHP can apply. Computer science concepts must be clear. Rest of the responsibility of training and getting candidates project ready will be on us.

How to apply:

Please forward your resumes to careers at codebox dot in and cc to jobs@careerbaba.in.

Read More

ONGC Recruitment Of Graduates Trainees 2014

Recruitment of Graduate Trainees – Advt No. 05/2014(R&P)

1. Details of Posts:

enter image description here

2. Eligibility Criteria

enter image description here

3. Age Limit

  • 30 for General.
  • 33 for OBC
  • 35 for SC & ST

4. Pay Scale

The pay scale in is the grade of Rs. 24,900 – 50,500/- with an increment of 3% per year.

5. Selection Process

Candidates will be selected based on GATE 2015 score and Personal Interview.

6. Important Dates

  • Last date for submitting online application – 11th April 2014
  • Admit card will be given on – 5th June 2014
  • Written exam on – 2nd June 2014

7. Important Links

Recruitment of Graduate Trainees – Advt No. 05/2014(R&P)

Read More

AG Technologies – Software Trainee Interview Questions and Process

Company
AG Technologies

Job Title / Position
Software Trainee

Total experience (in years) at the time of applying for the job
Fresher

Skills required for the job (comma seperated eg: java, sql, html)
ASP.NET and SQL Server

Hiring and Interview Process
Got an interview arranged at AG technologies through NIIT. First round was a technical interview, was asked basic oops questions. No questions were asked on ASP.NET or SQL as contrary to what had been specified as required skill. Post the interview we were told we will be informed about our interview result on phone by their HR representative.

The next day I got a call from their HR, she told me I was selected and need to join from the next week. She also explained me the salary compensation and company policies. There was a bond of 2 years which I needed to sign.

I took this job and I was later trained under SharePoint and I worked there on SharePoint for 2 years.

List down the questions you remember (any order)

  • What is OOPS
  • Features of OOPS
  • Explain Inheritance, Give me some real life examples
  • What are different access specifiers in C#
  • Are you willing to learn new technology ?

Did you get the job ?
Yes

How did you get to this interview ?
Recruitment Agency (NIIT)

How long this the entire interview process took ?
2 days

Interview Steps
– Technical Interview
– HR Call

Salary Offered (in lacs)
2.1 lacs per annum

Job Location
Andheri, Mumbai

Interview Date
15/06/2012

Interview Difficulty
Average

Overall Experience
Good

[interviewfooter]

Read More

Western Outdoor Interactive (WOI) – Systems Engineer Interview Questions and Process

Company
Western Outdoor Interactive (WOI)

Job Title / Position
Systems Engineer

Total experience (in years) at the time of applying for the job
2 years

Skills required for the job (comma seperated eg: java, sql, html)
html, javascript, sql(prefered), php (prefered)

Hiring and Interview Process

Their development stack normally consists of Internal API consumed through javascript, few applications on QT-QML and few on C++, with backend powered by PHP. My requirement was for a QT-QML developer.

Interwiew consisted of 3 rounds,

The first round was a combination of aptitude test and programming skills

Second round was a group Interview with Technical Manager and Sr Developer.

Third round was a managerial round, with general/non-technical questions.

List down the questions you remember (any order)

  • Javascript Event bubling.
  • Few Complex SQL queries.
  • Writing Pseudo code for few scenarious.

Did you get the job ?
Yes

How did you get to this interview ?
Recruitment Agency

How long this the entire interview process took ?
1 Day

Interview Steps

  • HR Interview
  • Coding Round
  • Technical Interview

Job Location
Mumbai

Interview Difficulty
Average

Overall Experience
Good

Salary Offered (INR)
4.25 lacs per annum

[interviewfooter]

Read More

Infosys Limited – Systems Engineer Trainee Interview Questions and Process

Company
Infosys Limited

Job Title / Position
Campus recruit / Systems Engineer Trainee

Total experience (in years) at the time of applying for the job
Fresher

Skills required for the job (comma seperated eg: java, sql, html)
On the job – .net, java, oracle , Unix. For campus placement – Strong aptitude to learn new things, good communication skills, clear and logical thinking skills.

Hiring and Interview Process
First was a written test on general aptitude and English. Like any other written aptitude test but a lot tougher. Only a 100 cleared out of 500 or so.

Next was HR interview. Simple discussion about you, your role model, aspirations etc. A few puzzles. Some were asked to discuss on a current news topic.

It all depends on the interviewer, but usually not very difficult. This was in 2008. Not sure how it is now.

List down the questions you remember (any order)

HR
– Tell me about yourself.
– Have you been placed in the previous company that came ? ( I had missed out on the HR round for previous company, I answered truthfully)
– asked me a simple puzzle. Reply was wrong but I immediately understood and pointed it out when he was about to explain.

Did you get the job ?
Yes

How did you get to this interview ?
College Placement

How long this the entire interview process took ?
2 Days

Interview Steps

  • Aptitude Test
  • HR Interview

Job Location
Mumbai

Interview Date
March 2008

Interview Difficulty
Average

Overall Experience
Good

[interviewfooter]

Read More

How To Write A Cover Letter To Employer In Response To A Job Posting ?

Cover letter serves as a strong connection point between prospective employers and your desired job. So we suggest candidates to give as much importance to cover letter as they give to resumes. Write cover letter in a way so as Recruiter’s should feel, there’s more to it than meets the eye. Cover Letter displays your writing skills, aptitude and knowledge about the company. Rest match your skills well with job description to be on job.

  • Subject line of email – Mention the Job Title with your Name.
  • Email Content – Cover letter follows the basic rules of a typical business letter.

Start your email saluting the name of a contact person or department cited. Now for convenience we’ll break the email into 3 paragraphs; Why, What and How?

Why you’re writing ?

Para 1 – Referring to the job description use the same tone and specific language as used. Tell them from where you came to know about the job and how eager and interested you’re to do it. Start matching your skills with those asked and showcase your relevant experiences only in backdrop of job requirements, skills and abilities asked. Show them your research about the company stating a fact or so but be brief and display value that you can bring to the company if hired.

What you can offer?

Para 2 – In all, mention how excited you’re with this job opening and try to establish a unique professional connection with them. Share something exceptional about your candidature that can bring attention to your attached resume. Bring the spotlight back to your qualification, attributes and experiences that matches with the job description. Now state some really good reasons for applying to this job.

How you’ll follow up?

Para 3 – End the letter on a positive note and mention when you’ll be contacting the person again or let them know your availability. Make them feel interested reading your cover letter. Show them gratitude and humility while applying for job and request the interview. Restate your interest in job and mention the easy way to be contacted.

End it with your name. Signature Links to your professional networks like LinkedIn.

Quick Summary

  1. Make it personal and customized for every job you apply.
  2. Display your writing, research and selling skills via this letter.
  3. Show them value that you’ll bring. Examples will do.
  4. Match your skills with job description and show its relevance for the company.
  5. Let them know your next step, follow through and ask for a feedback. Be Proactive.

Read More

PHP Interview Questions and Answers – Top 100

You are here: Interview Q & A >> PHP >> PHP Interview Questions and Answers – Top 100

1. What is PHP?

PHP is a web language based on scripts that allows developers to dynamically create generated web pages.

2. What is the Full form of PHP?

While PHP originally stood for Personal Home Page, it now stands for PHP: Hypertext Preprocessor, a recursive backronym.

3. Which all programming languages does PHP have resemblence to?

PHP syntax resembles Perl and C

4. What does PEAR stands for?

PEAR means “PHP Extension and Application Repository”. It extends PHP and provides a higher level of programming for web developers.

5. How do you execute a PHP script from the command line?

Just use the PHP command line interface (CLI) and specify the file name of the script to be executed as follows:

php script.php

6. How to run the interactive PHP shell from the command line interface?

Just use the PHP CLI program with the option -a as follows:

php -a

7. What is the actually used PHP version?

PHP version 5 and above.

8. What are the correct and the most two common way to start and finish a PHP block of code?

The two most common ways to start and finish a PHP script are:

<?php [--- PHP code ---] ?> 

and

<? [--- PHP code ---] ?>

9. How can we display the output directly to the browser?

To be able to display the output directly to the browser, we have to use the special tags <?= and ?>.

10. What is the main difference between PHP 4 and PHP 5?

PHP 5 presents many additional OOP (Object Oriented Programming) features. Also read this : http://stackoverflow.com/questions/2076410/difference-between-php-and-php5

11. Is multiple inheritance supported in PHP?

No. PHP supports single inheritance only, it means that a class can be extended from only one single class using the keyword “extended”.

12. What is the meaning of a final class and a final method?

A class with “final” keyword means that class cannot be extended, a method with “final” keyword means that method cannot be overridden. “final” is introduced in PHP5.

13. How are comparisons of objects done in PHP5?

We use the operator “==” to test if the two objects are instanced from the same class and have the same attributes and equal values. We can test if the two object are referring to the same instance of the same class by the using the identity operator “===”.

14. How can PHP and HTML interact?

It is possible to generate HTML through PHP scripts, and it is possible to pass information from HTML to PHP.

15. What type of operation is needed when passing values through a form or an URL?

If we would like to pass values through a form or an URL then we need to encode and to decode them using htmlspecialchars() and urlencode().

16. How can PHP and Javascript interact?

PHP and Javascript cannot directly interact with each other. PHP is a server side language and Javascript is a client side language. However we can exchange variables since PHP is able to generate Javascript code to be executed by the browser and it is possible to pass specific variables back to PHP via the URL.

17. What is needed to be able to use image function in PHP?

GD library is needed to be able execute image functions.

18. What is the use of the function imagetypes()?

imagetypes() gives the image format and types supported by the current version of GD-PHP.

19. What are the functions to be used to get the image’s properties like image size, width and height?

The functions are getimagesize() for size, imagesx() for width and imagesy() for height.

20. How are failures in execution handled with include() and require() functions?

If the function require() cannot access to the file then it ends with a fatal error. However, the include() function gives a warning and the PHP script continues to execute.

21. What is the main difference between require() and require_once()?

require() and require_once() perform the same task except that the require_once() function checks if the PHP script is already included or not before executing it.

22. How can I display simple text using a PHP script?

There are two ways to do this:

<!–?php echo "Method 1"; print "Method 2"; ?–>

23. How can we display information of a variable that is human readable in PHP?

print_r() can be used to be able to display a human-readable result.

24. How is it possible to set an infinite execution time for PHP script?

The set_time_limit(0) prevents the “maximum execution time exceeded” error. It is possible to specify this int the php.ini file.

25. What does the PHP error “Parse error in PHP – unexpected T_variable at line x” means?

This is a PHP syntax error which meaning some syntax error is present on line x and this is stopping the code parsing and execution.

26. What should we do to export data into an Excel file?

This can be easily be done by getting the data into a format supported by Excel. For example, we can write data comma seperated into a .csv file.

27. What is the function file_get_contents() used for?

The file_get_contents() function lets you read content from a file and store the content into a string variable.

28. How can we connect to a MySQL database from a PHP script?

To be able to connect to a MySQL database, we must use mysql_connect() function as follows:

<!–? php $database = mysql_connect("HOST", "USER_NAME", "PASSWORD"); 
mysql_select_db("DATABASE_NAME",$database); ?–>

29. What is the function mysql_pconnect() used for?

mysql_pconnect() ensure a persistent connection to the database, it means that the connection does not close even when the the PHP script ends.

30. How can the result set of MySql be handled in PHP?

The result set can be handled using mysql_fetch_array, mysql_fetch_assoc, mysql_fetch_object or mysql_fetch_row.

31. How is it possible to know the number of rows returned in a result set when using MsSql with PHP?

The function mysql_num_rows() returns the number of rows in a result set.

32. Which function gives us the number of affected entries by a query?

mysql_affected_rows() returns the number of entries affected by an SQL query.

33. What is the difference between mysql_fetch_object() and mysql_fetch_array()?

The mysql_fetch_object() function collects the first single matching record where as mysql_fetch_array() collects all matching records from the table in an array.

34. How can we access the data sent through the URL with the GET method?

In order to access the data sent via GET , we should use $\_GET array in the following manner

www.url.com?var=value $variable = $\_GET["var"];

The above line will now contain the value.

35. How can we access the data sent through the URL with the POST method?

To access the data sent using POST method, we should use the $\_POST array. Say in your form you have a field called ‘username’, now when the user submits the form using POST, you can access that value using: $\_POST["username"];

36. How can we check if the value of a given variable is a number?

Using is_numeric() function this can be checked.

37. How can we check if the value of a given variable is alphanumeric?

Using ctype_alnum we can verify if the value is an alphanumeric value or not.

38. How do I check if a given variable is empty or not?

If we want to check whether a variable has a value or not, we can check this using the empty() function.

39. What does the unlink() function do?

The unlink() function is a dedicated function for file system handling. It will delete the file given as input.

40. What does the unset() function means?

The unset() function is a dedicated function for variable management. It will make the variable undefined.

41. How do I escape data before storing it into the database?

addslashes function enables us to escape data before storage it into the database.

42. How is it possible to remove escape characters from a string?

The stripslashes function enables us to remove the escape characters before apostrophes in a string.

43. How can we automatically escape incoming data?

We have to enable the magic quotes entry in the configuration file of PHP.

44. What does the function get_magic_quotes_gpc() means?

The function get_magic_quotes_gpc() tells us whether the magic quotes is switched on or no.

45. Is it possible to remove the HTML tags from data?

Yes. The strip_tags() function enables us to clean a string from the HTML tags.

46. What is the static variable in function used for?

A static variable is defined within a function only the first time and its value then can be modified during function calls as follows:

<!–?php function testFunction() { static $testVariable = 1; echo $testVariable; $testVariable++; } testFunction(); //1 testFunction(); //2 testFunction(); //3 ?–>

47. How can we define a variable accessible in functions of a PHP script?

This feature is possible using the global keyword.

48. How is it possible to return a value from a function?

A function returns a value using the instruction return $value;.

49. What is the most convenient hashing method to be used to hash passwords?

It is preferable to use crypt() which natively supports several hashing algorithms or the hash() function which supports more variants than crypt().

50. Which cryptographic extension provide generation and verification of digital signatures?

The PHP-openssl extension provides several cryptographic operations including generation and verification of digital signatures.

51. How is a constant defined in PHP ?

A constant can be defined using the following syntax:

define ("MyConstant", 123);

52. How can you pass a variable by reference in PHP?

To be able to pass a variable by reference, we use an ampersand symbol in front of it: $var1 = &$var2

53. Will a comparison of an integer 12 and a string “13” work in PHP?

“13” and 12 can be compared in PHP since it casts everything to the integer type.

54. How is it possible to cast types in PHP?

The name of the output type have to be specified in parentheses before the variable which is to be casted. Check below:

  • (int), (integer) – cast to integer
  • (bool), (boolean) – cast to boolean
  • (float), (double), (real) – cast to float
  • (string) – cast to string
  • (array) – cast to array
  • (object) – cast to object

55. When is the conditional statement ended with an endif?

A conditional statement is ended with an endif if the original if block was followed by : and then the code block was without the braces.

56. How is the ternary conditional operator used in PHP?

It is composed of three expressions: A condition, and two operands describing what instruction should be performed when the specified condition is true or false as follows:

Expression_1 ? Expression_2 : Expression_3;

57. What is the function func_num_args() used for?

The function func_num_args() is used to give the number of parameters passed into a function.

58. If the variable $var1 is set to 10 and the $var2 is set to the character var1, what’s the value of $$var2?

$$var2 contains the value 10.

59. What does accessing a class via :: means?

:: is used to access static methods that do not require object initialization.

60. In PHP, objects are they passed by value or by reference?

Passed by value.

61. Are parent constructors called implicitly inside a class constructor?

No, a parent constructor have to be called explicitly as follows:

parent::constructor($value)

62. What’s the difference between __sleep and __wakeup?

__sleep returns the array of all the variables that needs to be saved, while __wakeup retrieves them.

63. What is faster?

$variable1 = 'Hello';
$variable2 = 'World';

Option 1

$variable3 = $variable1.$variable2;

Option 2

$variable3 = "$variable1$variable2";

$variable3 will contain “HelloWorld”. The first code is faster than the second code especially for large large sets of data.

64. What is a Session?

A session is a logical object enabling us to temporarily preserve data across multiple PHP pages.

65. How to initiate a session in PHP?

session_start() function activates a session.

66. How is it possible to propagate a session id?

It is possible to propagate a session id via cookies or URL parameters.

67. What is the meaning of a Persistent Cookie?

A persistent cookie is a cookie which is permanently stored in as a file on the browser’s computer. By default, cookies are temporary and are erased if we close the browser.

68. When does a session end?

Session automatically ends when the PHP script finishes executing, but can also manually be ended using the session_write_close() function.

69. What is the difference between session_unregister() and session_unset()?

The session_unregister() function unregister a global variable from the current session and the session_unset() function frees all session variables.

70. What does $GLOBALS means?

$GLOBALS is associative array including references to all variables which are currently defined in the global scope of the script.

71. What does $_SERVER means?

$\_SERVER is an array including information created by the web server such as paths, headers, and script locations.

72. What does $_FILES means?

$\_FILES is an associative array composed of items sent to the current script via the HTTP POST method.

73. What is the difference between $_FILES[‘userfile’][‘name’] and $_FILES[‘userfile’][‘tmp_name’]?

$\_FILES['userfile']['name'] represents the original name of the file on the client machine, whereas $\_FILES['userfile']['tmp_name']represents the temporary filename of the file stored on the server.

74. How can we get the error when there is a problem in uploading a file?

$\_FILES['userfile']['error'] contains the error code associated with the uploaded file.

75. How can we change the maximum size of the files to be uploaded?

We can change the maximum size of files to be uploaded by changing upload\_max_filesize in php.ini.

76. What does $_ENV means?

$\_ENV is an associative array of variables sent to the current PHP script via the environment method.

77. What does $_COOKIE means?

$\_COOKIE is an associative array of variables sent to the current PHP script using the HTTP Cookies.

78. What does the scope of variables means?

The scope of a variable is the context within which it is defined. For the most part all PHP variables only have a single scope. This single scope spans included and required files.

79. What is the difference between the “BITWISE AND” operator and the “LOGICAL AND” operator?

  • $a and $b : TRUE if both $a and $b are TRUE.
  • $a & $b : Bits that are set in both $a and $b are set.

80. What are the two main string operators?

The first is the concatenation operator ., which returns the concatenation of its right and left arguments. The second is .= which appends the argument on the right to the argument on the left.

81. What does the array operator “===” means?

$a === $b TRUE if $a and $b have the same key/value pairs in the same order and of the same types.

82. What is the differences between $a != $b and $a !== $b?

!= means inequality (TRUE if $a is not equal to $b) and !== means non-identity (TRUE if $a is not identical to $b).

83. How can we determine whether a PHP variable is an instantiated object of a certain class?

By using instanceof.

84. What is the goto statement used for?

The goto statement can be placed to enable jumping inside the PHP program. The target is pointed by a label followed by a colon, and the instruction is specified as a goto statement followed by the desired target label.

85. what is the difference between Exception::getMessage and Exception::getLine?

Exception::getMessage gets the exception message whereas Exception::getLine gets us the line in which the exception occurred.

86. What does the expression Exception::__toString means?

Exception::\_\_toString gives the string representation of the exception.

87. How is it possible to parse a configuration file?

The function parse_ini_file() enables us to load the ini file specified in filename, and returns the settings from it in an associative array.

88. How can we determine whether a variable is set or not?

The boolean function isset determines if a variable is set and is not NULL.

89. What is the difference between the functions strstr() and stristr()?

The string function strstr(string allString, string occ) returns part of allString from the first occurrence of occ to the end of allString. This function is case-sensitive. stristr() is identical to strstr() except that it is case insensitive.

90. What is the difference between for and foreach?

for is expressed as follows:

for (expr1; expr2; expr3) statement

The first expression is executed once at the beginning. In each iteration, expr2 is evaluated. If it is TRUE, the loop continues and the statements inside the for are executed. If it evaluates to FALSE, the execution of the loop ends. expr3 is tested at the end of each iteration.

However, foreach provides an easy way to iterate over arrays and it is only used with arrays and objects.

91. Is it possible to submit a form with a dedicated button?

Yes. It is possible to use the document.form.submit() function to submit the form. For example:

<input type=button value="submit" onClick="document.form.submit()"> 

92. What is the difference between ereg_replace() and eregi_replace()?

The function eregi_replace() is identical to the function ereg_replace() except that it ignores case distinction when matching alphabetic characters.

93. Is it possible to protect special characters in a query string?

Yes, we can use the urlencode() function to be able to protect special characters present in the query string.

94. What are the three classes of errors that can occur in PHP?

The three basic classes of errors are notices (non-critical), warnings (serious errors) and fatal errors (critical errors).

95. What is the difference between characters \034 and \x34?

\034 is octal 34 and \x34 is hex 34.

96. How can we pass the variable through the navigation between the pages?

It is possible to pass the variables between the pages using sessions, cookies or hidden form fields.

97. Is it possible to extend the execution time of a php script?

set_time_limit(int seconds) function enables us to extend the execution time of a php script. The default limit is 30 seconds.

98. Is it possible to destroy a cookie. How?

Yes, it is possible to destroy a cookie by setting the cookie with a past expiration time.

99. What is the default session time in php?

The default session time in php is until the browser is closed.

100. Is it possible to use COM component in PHP?

Yes, it’s possible to integrate (Distributed) Component Object Model components ((D)COM) in PHP scripts which is provided as a framework.

You are here: Interview Q & A >> PHP >> PHP Interview Questions and Answers – Top 100

Read More

PHP Interview Questions and Answers Full List

PHP Interview Questions and Answers – Top 100

  1. What is PHP?
  2. What is the Full form of PHP?
  3. Which all programming languages does PHP have resemblence to?
  4. What does PEAR stands for?
  5. How do you execute a PHP script from the command line?
  6. How to run the interactive PHP shell from the command line interface?
  7. What is the actually used PHP version?
  8. What are the correct and the most two common way to start and finish a PHP block of code?
  9. How can we display the output directly to the browser?
  10. What is the main difference between PHP 4 and PHP 5?
  11. Is multiple inheritance supported in PHP?
  12. What is the meaning of a final class and a final method?
  13. How are comparisons of objects done in PHP5?
  14. How can PHP and HTML interact?
  15. What type of operation is needed when passing values through a form or an URL?
  16. How can PHP and Javascript interact?
  17. What is needed to be able to use image function in PHP?
  18. What is the use of the function imagetypes()?
  19. What are the functions to be used to get the image’s properties like image size, width and height?
  20. How are failures in execution handled with include() and require() functions?
  21. What is the main difference between require() and require_once()?
  22. How can I display simple text using a PHP script?
  23. How can we display information of a variable that is human readable in PHP?
  24. How is it possible to set an infinite execution time for PHP script?
  25. What does the PHP error “Parse error in PHP – unexpected T_variable at line x” means?
  26. What should we do to export data into an Excel file?
  27. What is the function file_get_contents() used for?
  28. How can we connect to a MySQL database from a PHP script?
  29. What is the function mysql_pconnect() used for?
  30. How can the result set of MySql be handled in PHP?
  31. How is it possible to know the number of rows returned in a result set when using MsSql with PHP?
  32. Which function gives us the number of affected entries by a query?
  33. What is the difference between mysql_fetch_object() and mysql_fetch_array()?
  34. How can we access the data sent through the URL with the GET method?
  35. How can we access the data sent through the URL with the POST method?
  36. How can we check if the value of a given variable is a number?
  37. How can we check if the value of a given variable is alphanumeric?
  38. How do I check if a given variable is empty or not?
  39. What does the unlink() function do?
  40. What does the unset() function means?
  41. How do I escape data before storing it into the database?
  42. How is it possible to remove escape characters from a string?
  43. How can we automatically escape incoming data?
  44. What does the function get_magic_quotes_gpc() means?
  45. Is it possible to remove the HTML tags from data?
  46. What is the static variable in function used for?
  47. How can we define a variable accessible in functions of a PHP script?
  48. How is it possible to return a value from a function?
  49. What is the most convenient hashing method to be used to hash passwords?
  50. Which cryptographic extension provide generation and verification of digital signatures?
  51. How is a constant defined in PHP ?
  52. How can you pass a variable by reference in PHP?
  53. Will a comparison of an integer 12 and a string “13” work in PHP?
  54. How is it possible to cast types in PHP?
  55. When is the conditional statement ended with an endif?
  56. How is the ternary conditional operator used in PHP?
  57. What is the function func_num_args() used for?
  58. If the variable $var1 is set to 10 and the $var2 is set to the character var1, what’s the value of $$var2?
  59. What does accessing a class via :: means?
  60. In PHP, objects are they passed by value or by reference?
  61. Are parent constructors called implicitly inside a class constructor?
  62. What’s the difference between __sleep and __wakeup?
  63. What is faster?
  64. What is a Session?
  65. How to initiate a session in PHP?
  66. How is it possible to propagate a session id?
  67. What is the meaning of a Persistent Cookie?
  68. When does a session end?
  69. What is the difference between session_unregister() and session_unset()?
  70. What does $GLOBALS means?
  71. What does $_SERVER means?
  72. What does $_FILES means?
  73. What is the difference between $_FILES[‘userfile’][‘name’] and $_FILES[‘userfile’][‘tmp_name’]?
  74. How can we get the error when there is a problem in uploading a file?
  75. How can we change the maximum size of the files to be uploaded?
  76. What does $_ENV means?
  77. What does $_COOKIE means?
  78. What does the scope of variables means?
  79. What is the difference between the “BITWISE AND” operator and the “LOGICAL AND” operator?
  80. What are the two main string operators?
  81. What does the array operator “===” means?
  82. What is the differences between $a != $b and $a !== $b?
  83. How can we determine whether a PHP variable is an instantiated object of a certain class?
  84. What is the goto statement used for?
  85. what is the difference between Exception::getMessage and Exception::getLine?
  86. What does the expression Exception::__toString means?
  87. How is it possible to parse a configuration file?
  88. How can we determine whether a variable is set or not?
  89. What is the difference between the functions strstr() and stristr()?
  90. What is the difference between for and foreach?
  91. Is it possible to submit a form with a dedicated button?
  92. What is the difference between ereg_replace() and eregi_replace()?
  93. Is it possible to protect special characters in a query string?
  94. What are the three classes of errors that can occur in PHP?
  95. What is the difference between characters \034 and \x34?
  96. How can we pass the variable through the navigation between the pages?
  97. Is it possible to extend the execution time of a php script?
  98. Is it possible to destroy a cookie How?
  99. What is the default session time in php?
  100. Is it possible to use COM component in PHP?

Read Answers

Read More