Thursday, September 8, 2011

Questions of Web Development and Web Programming General


Interview question and answers for HTML, DHTML, CSS, Scripting including Interview question and answers for Java Script, VB Script and interview question answers for IIS. In this section you can find interview questions and answers for basic of web development tools. 

Interview questions and answers for HTML, Interview question and answers for DHTML, Interview question and answer for CSS, Interview question and answer for JavaScript and Visual Basic Script.
1.
What is DHTML?

DHTML means dynamic hyper text markup language it combines of static HTML, cascading style sheets (CSS) and scripting. by using scripting with CSS we can manipulate document object model (DOM) to get dynamic effect of the page.
 
2.
What are the commonly used data types in VBScript?

All data types in VBScript are variants.
 
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?

Win2K and Win2K3 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?

1. stay up to date on patches and keep security software (AV, firewall, IDS, maybe even packet logging, etc.) running.
2. 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). 
3. 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 6.0?

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?

IUSR_computername
 
9.
What secure authentication and encryption mechanisms are supported by IIS 6.0?

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 IIS 6.0?

On disk, as opposed to memory, as it used to be in IIS 5. 
 
11.
What is socket pooling?

Non-blocking socket usage, introduced in IIS 6.0. More than one application can use a given socket.
 
12.
What are JavaScript types?

Number, String, Boolean, Function, Object, Null, Undefined
 
13.
How do you convert numbers between different bases in JavaScript?

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); 
 
14.
What boolean operators does JavaScript support?

&&, || and ! 
 
15.
What looping structures are there in JavaScript?

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?

It’s a number in JavaScript, derived by dividing negative number by zero.
 
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

c:\Program Files\Netscape\Users\username\cookies.txt
 
23.
What can javascript programs do?

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?

The "Access Denied" error in any browser is due to the following reason.A javascript in one window or frame is tries to access another window or frame whose document's domain is different from the document containing the script.
 
26.
Is a javascript script faster than an ASP script?

Yes.Since javascript is a client-side script it does require the web server's help for its computation,so it is always faster than any server-side script like ASP,PHP,etc..
 
27.
Are Java and JavaScript the Same?

No.java and javascript are two different languages.
Java is a powerful object - oriented programming language like C++,C whereas Javascript is a client-side scripting language with some limitations.
 
28.
How to embed javascript in a web page?

javascript code can be embedded in a web page between  
langugage="javascript"> tags
29.
How to access an external javascript file that is stored externally and not embedded?

This can be achieved by using the following tag between head tags or between body tags.

where abc.js is the external javscript file to be accessed.
 
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.
 
32.
Can javascript code be broken in different lines?

Breaking is possible within a string statement by using a backslash \ at the end but not within any other javascript statement.
that is ,
document.write("Hello \
world");
is possible but not 
document.write \
("hello world");
 
33.
How to hide javascript code from old browsers that dont run it?

Use the below specified style of comments 

No comments:

Post a Comment