Tag Archives: JavaScript

HTML5 interview questions and answers

HTML5 interview questions and answers




Q 1- What is the difference between HTML and HTML5 ? Ans: HTML5 is nothing more then upgraded version of HTML where in HTML5 Lot of new future like Video, Audio/mp3, date select function , placeholder , Canvas, 2D/3D Graphics, Local SQL Database added so that no need to do external plugin like Flash player or other library Q 2- What is the  <!DOCTYPE>  ? Is it necessary to use in HTML5 ? Ans: The <!DOCTYPE> is an instruction to […]

Php Interview Questions and Answers – Part 6

php-interview-title




1- How can we register the variables into a session? session_register($session_var); $_SESSION[‘var’] = ‘value’; 2- What is the difference between characters �23 and x23? The first one is octal 23, the second is hex 23. With a heredoc syntax, do I get variable substitution inside the heredoc contents? Yes. 3- How can we submit form without a submit button? We can use a simple JavaScript code linked to an event trigger of any form field. In the JavaScript code, we […]

Php Interview Questions and Answers – Part 5

php3




1- How to reset/destroy a cookie ? Reset a cookie by specifying expire time in the past: Example: setcookie(‘Test’,$i,time()-3600); // already expired time Reset a cookie by specifying its name only Example: setcookie(‘Test’); 2- What types of images that PHP supports ? Using imagetypes() function to find out what types of images are supported in your PHP engine. imagetypes() – Returns the image types supported. This function returns a bit-field corresponding to the image formats supported by the version of […]

Can You Answer These 10 SEO Questions

Running businessman.




I’ve compiled a set of 10 useful SEO questionnaire to brush-up your SEO knowledge. Sometimes, instead of reading lengthy articles and spending hours together, a few well-structured questions can make you dig deeper into the topic. I’m sure – most of the answers you already know. Rate yourself by giving you “number of questions you have answered correctly out of 10.” For better results/knowledge don’t read the answer immediately. Read the question, think a bit, and match your guess by […]

PHP Security

script-secuity




When it comes to PHP, some 99% of amateur sites and 60-70% of all sites use the professional scripting language called PHP. But is it safe to use PHP? Does the implementation of the language not have any gaps that are critical to the operation of our applications? But remember that security problems do not arise just from the language itself, but also from the programming skills of those who write PHP scripts. Of course, most of the errors can […]

PHP Interview Questions and Answers – Part 4

php-interview-questions-answers




1- What is the difference between ereg_replace() and eregi_replace()? eregi_replace() function is identical to ereg_replace() except that it ignores case distinction when matching alphabetic characters. 2- How do I find out the number of parameters passed into function9. ? func_num_args() function returns the number of parameters passed in. 3- If the variable $a is equal to 5 and variable $b is equal to character a, what’s the value of $$b? 100, it’s a reference to existing variable. 4- How To […]

jQuery Interview Questions and Answers

icon_jquery




There are list of latest and updated jQuery interview questions and their answers for fresher and experienced developers. These interview question covers latest version of jQuery. These interview questions will help you to prepare for the interviews, for quick revision and provide strength to your technical skills. Q1. What is jQuery? Ans: jQuery is fast, lightweight and feature-rich client side JavaScript Library/Framework which helps in to traverse HTML DOM, make animations, add Ajax interaction, manipulate the page content, change the style and provide cool UI […]

Php Interview Questions and Answers – Part 2

job-interview-question




1- Why doesn’t the following code print the newline properly? <?php $str = ‘Hello, there.nHow are you?nThanks for visiting techpreparation’; print $str; ?> Because inside the single quotes the n character is not interpreted as newline, just as a sequence of two characters – and n. 2- Would you initialize your strings with single quotes or double quotes? Since the data inside the single-quoted string is not parsed for variable substitution, it’s always a better idea speed-wise to initialize a […]

Parse JSON, XML and HTML – jQuery

jquery-evnets




In this post, find out jQuery code on how to parse JSON, parse XML and parse HTML. If you are still using custom code for parsing any of these and making your life more miserable then stop doing it. Why? If you are not aware then here is a news for you that jQuery has inbuilt utility methods for each. Which are, parseJSON() parseXML() parseHTML() Using parseJSON() This method takes a well-formed JSON string and returns the resulting JavaScript object. […]

Php Interview Questions and Answers – Part 1

php-question




1- What’s PHP ? The PHP Hypertext Preprocessor is a programming language that allows web developers to create dynamic content that interacts with databases. PHP is basically used for developing web based software applications. 2- What Is a Session? A session is a logical object created by the PHP engine to allow you to preserve data across subsequent HTTP requests. There is only one session object available to your PHP scripts at any time. Data saved to the session by […]