Interview questions and Answers for Web Development, HTML, CSS, JavaScrip
1. What is HTML and HTML5?
HTML – Hypertext Markup Language is the standard markup language for creating web pages and web applications. HTML5 is a markup language used for structuring and presenting content on the World Wide Web. It is the fifth and current major version of the HTML standard.
2. Features of HTML5?
Semantics: allowing you to describe more precisely what your content is.
Connectivity: allowing you to communicate with the server in new and innovative ways.
Offline and storage: allowing webpages to store data on the client-side locally and operate offline more efficiently.
Multimedia: making video and audio first-class citizens in the Open Web.
2D/3D graphics and effects: allowing a much more diverse range of presentation options.
Performance and integration: providing greater speed optimization and better usage of computer hardware.
Device access: allowing for the usage of various input and output devices.
Styling: letting authors write more sophisticated themes.
3. What is a virtual root and how do you create one?
A virtual root is essentially a new web site in IIS. You’d create one in the MMC by either selecting “New Virtual Site” from the site context menu, or clicking “Create” in the Home Directory tab in the properties for any existing folder. Using the first method, you can also create a virtual root that points to a logical directory outside the current web root. The new virtual root is largely, although not completely, as configurable as a new web site.
4. How would you remotely administer IIS?
Windows Server comes with a limited terminal services server built in for remote administration of the server. Set it up as remote client and use the TS client or Remote Desktop Connection on the client to login. From there, use MMC as if you were logged on locally.
5. How would you go about securing IIS and MS-SQL Server?
Stay up to date on patches and keep security software (AV, firewall, IDS, maybe even packet logging, etc.) running.
IIS authenticates against domain users (even if the domain is “Local Machine”). Make sure you have no spurious users, and secure everyone’s passwords. If possible, segregate public web machines into different ACL segments (e.g. — a different domain).
Be careful with security policies. The standard server install comes with hardened LSP templates, which you should consider if you’re not experienced enough to build your own. Non-front tiers should have tight security policies barring anyone outside the adjacent tiers (and maybe a test machine or two) from access.
6. How do I make a graphic a link in HTML?
by Including the “img” tag between the “a href” tag and the “a” closing tag
7. What scripts ship with IIS ?
iisweb.vsb to create, delete, start, stop, and list Web sites, iisftp.vsb to create, delete, start, stop, and list FTP sites, iisdir.vsb to create, delete, start, stop, and display virtual directories, iisftpdr.vsb to create, delete, start, stop, and display virtual directories under an FTP root, iiscnfg.vbs to export and import IIS configuration to an XML file
8. What’s the name of the user who connects to the Web site anonymously?
9. What secure authentication and encryption mechanisms are supported by IIS?
Basic authentication, Digest authentication, Advanced digest authentication, Certificate-based Web transactions that use PKCS #7/PKCS #10, Fortezza, SSL, Server-Gated Cryptography, Transport Layer Security
10. Where’s ASP cache located on latest IIS ?
On disk, as opposed to memory, as it used to be in older IIS
11. What is socket pooling?
Non-blocking socket usage, introduced in IIS 6.0. More than one application can use a given socket.
Number, String, Boolean, Function, Object, Null, Undefined
Use the parseInt() function, that takes a string as the first parameter, and the base as a second parameter. So to convert hexadecimal 3F to decimal, use parseInt (“3F”, 16);
&&, || and !
for, while, do-while loops, but no foreach.
16. How do you assign object properties?
obj[“age”] = 17 or obj.age = 17.
17. What’s a way to append a value to an array?
arr[arr.length] = value;
18. What is THIS keyword?
It refers to the current object
19. What does isNaN function do?
Return true if the argument is not a number.
20. What is negative infinity?
21. How to detect the operating system on the client machine?
In order to detect the operating system on the client machine, the navigator.appVersion
22. Where are cookies actually stored on the hard disk?
This depends on the user’s browser and OS.
In the case of Netscape with Windows OS,all the cookies are stored in a single file called cookies.txt
Generation of HTML pages on-the-fly without accessing the Web server. The user can be given control over the browser like User input validation Simple computations can be performed on the client’s machine The user’s browser, OS, screen size, etc. can be detected Date and Time Handling
24. How to set a HTML document’s background color?
document.bgcolor property can be set to any appropriate color.
25. What does the “Access is Denied” IE error mean?
30. What is the difference between an alert box and a confirmation box?
An alert box displays only one button which is the OK button whereas the Confirm box displays two buttons namely OK and cancel.
31. What is a prompt box?
A prompt box allows the user to enter input by providing a text box.
is possible but not
Use the below specified style of comments
Use // for line comments and
*/ for block comments
35. Name the numeric constants representing max,min values
The null value is a unique value representing no value or no object. It implies no object, or null string,no valid Boolean value, no number and no array object.
Undefined value means the variable used in the code doesn’t exist or is not assigned any value or the property doesn’t exist.
38. What is the difference between undefined value and null value?
Undefined value cannot be explicitly stated that is there is no keyword called undefined whereas null value has keyword called null
typeof undefined variable or property returns undefined whereas typeof null value returns object
40. What are undefined and undeclared variables?
Undeclared variables are those that are not declared in the program (do not exist at all), trying to read their values gives runtime error. But if undeclared variables are assigned then implicit declaration is done. Undefined variables are those that are not assigned any value but are declared in the program. Trying to read such variables gives special value called undefined value.
41. What is === operator?
==== is strict equality operator, it returns true only when the two operands are having the same value without any type conversion.
42. What does the delete operator do?
The delete operator is used to delete all the variables and objects used in the program ,but it does not delete variables declared with var keyword.
43. What does break and continue statements do?
Continue statement continues the current loop (if label not specified) in a new iteration whereas break statement exits the current loop.
44. How to create a function using function constructor?
The following example illustrates this
It creates a function called square with argument x and returns x multiplied by itself.
var square = new Function (“x”,”return x*x”);