All iz Well

Primary Menu

Page 2 of 3

When inserting data in your database, you have to be really careful about SQL injections and other attempts to insert malicious data into the db. The function below is probably the most complete and efficient way to sanitize a string before using it with your database.

Hi,
I recently attended Interview in Inlogics for UI Developer position and got selected in this company.
I hope this post may help people to prepare for UI Devloper interviews.

The hiring process for experienced UI developer will be of three rounds. First one is easy level of technical interview, then second level will be a pure technical with Team Lead and then HR Round.
I attended first round in inlogics on feb 6th 2014 for exp UI Developer post. The interview was quite easy. Interviewer asked question in html5, css3 and jquery. Interview last for 30 to 40 mins. All are basic questions so anyone can clear.

CSS3 Questions asked:

1. Explain about css specificity
2. what is the use of box shadow and tell me the syntax.
3. how to acheive rounded corners in css3.
4. How will you improve the performance of a website.
5. What is the use of sprite images.
6. What are the different font formats and how will you include in your css stylesheet.
7. What is responsive web page layout.
8. What is fluid layout and advantages of it ?
9. What do you know about css animations. Will you do css3 animation if we give google access?
10. what are the css frameworks you know. have you ever used any css frameworks like LESS SAAS?

HTML Questions

1. Difference between HTML4 and HTML5?
2. What is the use of canvas ? have you ever used it.
3. What is the main difference between canvas and svg?
4. What are semantic tags in html5. What is the main advantage of it.

Jquery

1. How will you add a jquery to your page.
2. What is the diiference between javascript and jquery?
3. Tell me the difference between document.ready and onload function in jquery?
4. how can u apply css in jquery?
5. Can you dynamicaaly add a div using jquery ?
6. What are filters in jquery?
7. What is an anonymous function in jquery and how will you define it?
6. Have you ever heared about MVC in javascript?
7. Javascript or Jquery which is faster ?
8. How can you animate using Jquery?
9. Tell me the use of is() , eq() methods in jquery?
10. Why we use index() method in jquery.
11. Tell me jquery.noConflict() method.
12. Have you ever contributed any plugin?
13. Tell me what are the Jquery UI you know. And how can you customize them.?

Broken images will display nothing when their URL cannot be found. Instead we can replace it with a “default image” picture so that you are sure for a better visual.
We can use .error() function for this purpose.
The “error” event is sent to elements, such as images, that are referenced by a document and loaded by the browser. It is called if the element was not loaded correctly.

So the HTML Markup as follows .

<div class="banner">
<img id="banner_image" src="image.png" />
</div>

The Below javascript code will trigger an error when the image source is broken and it will load the default image.

Usually the MySql Queries are Case insensitive. The default character set and collation are latin1 and latin1_swedish_ci, so nonbinary string comparisons are case insensitive by default. This means that if you search with col_name LIKE ‘a%’, you get all column values that start with A or a.

This can be performed with mysql query . For this you have to use .

SELECT * FROM `table` WHERE BINARY `column` = 'value';

To acheive this in phpmyadmin , you can change the language collation to latin1_general_cs
If you want a column always to be treated in case-sensitive fashion, declare it with a case sensitive or binary collation.

error_reporting function is used to report different types of PHP errrors.
We can pass different parameters to the function error_reporting.
We use these four major parameters to get the information about the error.

E_ERROR – This is Fatal run-time errors. These indicate errors that can not be recovered , such as a memory allocation problem. Execution of the program will be stopped.E_WARNING – Run time warnings. Execution of the program will be stopped.E_PARSE (integer) – This function will report Compile-time parse errors. Parse errors should only be generated by the parser.E_NOTICE (integer) – Used to report Run-time notices. Eg. This function is used to report uninitialized variables in the program.

To turn off all the Errors you can simply use

error_reporting(0);

at the top of your php file.
Make sure that your php.ini file sets error reporting to E_ALL to output errors .