Interview Questions

Q:

For printing out strings, there are echo, print and printf. Explain the differences.

Answer - echo is the most primitive of them, and just outputs the contents following the construct to the screen. print is also a construct (so parentheses are optional when calling it), but it returns TRUE on successful output and FALSE if it was unable to print out the string. However, you can pass multiple parameters to echo, like:

and it will output the string "Welcome to TechInterviews!" print does not take multiple parameters. It is also generally argued that echo is faster, but usually the speed advantage is negligible, and might not be there for future versions of PHP. printf is a function, not a construct, and allows such advantages as formatted output, but it’s the slowest way to print out data out of echo, print and printf.
Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 3181
Q:

What is locking ? what are the advantages of locking?

Answer

Locking is a mechanism to ensure data integrity while allowing maximum concurrent access to data. It is used to implement concurrency control when multiple users access table to manipulate its data at the same time.


Advantages :


- Avoids deadlock conditions


- Avoids clashes in capturing the resources

Report Error

View answer Workspace Report Error Discuss

Subject: Oracle

0 3180
Q:

What is Language Integrated Query (LINQ)?

Answer

LINQ is a programming model that is the composition of general-purpose standard query operators that allow you to work with data, regardless of the data source in any .NET based programming language. It is the name given to a set of technologies based on the integration of query capabilities into any .NET language.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

0 3177
Q:

What signals are transferred in GPRS?

Answer

- GPRS uses 2.5 generation of GSM signals
- The radio interface is the same that of GSM
- GPRS uses 900 / 1800 Mhz, frequency band and GMSK modulation
- The bit rates are EGPRS, similar to EDGE
- Separate hardware and ports need to be added and availed.

Report Error

View answer Workspace Report Error Discuss

3 3173
Q:

What is a AngularJS?

Answer

AngularJS is a framework to build the large scale and high performance web application while keeping them as easy-to-maintain. These are the features of AngularJS framework.


AngularJS is a powerful Script based on JavaScript development framework to Implement RICH Internet Application (RIA).


AngularJS is a developers options to write client side application (using JavaScript) in a clean MVC (Model View Controller) side.


Application are written in AngularJS is also cross-browser compliant. AngularJS automatically handles JavaScript code suitable for any browser.


AngularJS is an open source, completely free, and used by large number of developers around the world. It is licensed under the Apache License version 2.0.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology
Job Role: Software Architect

0 3171
Q:

Exlpain STL.

Answer

STL stands for Standard Template Library. It is a library of container templates approved by the ANSI committee for inclusion in the standard C++ specification.

Report Error

View answer Workspace Report Error Discuss

Subject: C++

0 3171
Q:

Key Difference between Indian accounting standards and international accounting standards is:

Answer

In international accounting LIFO and extraordinary items are prohibited


In international accounting, proposed dividend entry is made in the Year in which it is declared, but in Indian Accounting Standards Proposed Divided entry is passed in the year for which dividend is declared. e.g. Dividend for 09-10 declared in AGM on 14 Sept 2010, Financial (Accounting) Year = 2009-10


In Indian Accounting entry would be passed in 2009-10 Accounts books, but in International Accounting entry would be passed in the year 2010-11 Accounts books.

Report Error

View answer Workspace Report Error Discuss

1 3171
Q:

What’s the special meaning of __sleep and __wakeup?

Answer __sleep returns the array of all the variables than need to be saved, while __wakeup retrieves them.
Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 3158