分享
 
 
 

面试时最经常被问到的问题(Frenquently asked interview questions)之Internet Technologies篇

王朝other·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

Internet Technologies Questions & Answers

1、 What is HTTP? How does it work (in basic terms)?

HTTP: (HyperText Transport Protocol) The communications protocol used to connect to servers on the World Wide Web. Its primary function is to establish a connection with a Web server and transmit HTML pages to the client browser. Addresses of Web sites begin with an http:// prefix; however, Web browsers typically default to the HTTP protocol. Web browsers communicate with Web servers via the TCP/IP protocol. The browser sends HTTP requests to the server, which responds with HTML pages and possibly additional programs in the form of ActiveX controls or Java applets.

2、 What is a CGI program? How does one get invoked?

CGI(Common Gateway Interface script) A small program written in a language such as Perl, Tcl, C or C++ that functions as the glue between HTML pages and other programs on the Web server. For example, a CGI script would allow search data entered on a Web page to be sent to the DBMS (database management system) for lookup. It would also format the results of that search as an HTML page and send it back to the user. The CGI script resides in the server and obtains the data from the user via environment variables that the Web server makes available to it.

CGI scripts have been the initial mechanism used to make Web sites interact with databases and other applications. However, as the Web evolved, server-side processing methods have been developed that are more efficient and easier to program. For example, Microsoft promotes its Active Server Pages (ASPs) for its Windows Web servers, and Sun/Netscape nurtures its Java roots with JavaServer Pages (JSPs) and servlets

3、 What is the difference between GET and POST methods of submitting form data?

get-- This has a limit as to number of characters that it can pass. In get the request is sent in the the form of a query string from the web browser to the web server. The max. no. of characters that can be passed are 255. Since the request is sent in the query string that is visible in the address bar of the web browser, this method is not suited for passing confidential info. such as passwords/credit card no's etc.

post-- There is no such limit on the no. of characters that can be passed at a time as the request is passed in the body of the message. So this is useful for passing confidential data. Also, one can pass any length of info. to the server.

4、 What is "URL Encoding"?

URL Encoding is a method by which a string is converted into a format which is suitable for HTTP URL.

Example : Server.URLEncode("sitename=imilap")

Results is sitename%3Dimilap. = is converted into characters which can be used in the URL

5、 What is an HTML "entity"?

Character entity references, or entities for short, provide a method of entering characters that cannot be expressed in the document's character encoding or that cannot easily be entered on a keyboard. Entities are case-sensitive and take the form &name;. Examples of entities include © for the copyright symbol and Α for the Greek capital letter alpha.

6、 How can you do a "redirect" to another page?

This is easily achieved using the Meta tag as below

<META HTTP-EQUIV="Refresh" CONTENT="3;URL=http://www.redirect.to.com">

But I think there are 2 aspects of the problem, redirect from the client side or the server side. As to the client side, if we are using VBScript, just call the navigate method of window object is OK, if not, we can set the window object’s location.href property to the URL of the target page. As to the server side, if differs from languages to languages.

7、 What web servers do you have experience with? Apache? IIS?

8、 How does an XML DTD work, and what are some of its limitations?

XML DTD: Extensible Markup Language Document Type Definition. It is to define the legal building blocks of an XML document. It defines the document structure with a list of legal elements. A DTD can be declared inline in your XML document, or as an external reference.

The drawbacks of DTD:

1) DTD doesn’t comply with the XML syntax,

2) The data types of DTD is limited,

3) DTD is not extensible,

4) DTD doesn’t support namespace.

9、 What are session variables?

When a user logs in a web site a session is created. Session variables are a variable which remain active throughout this session.

The use of Session variables is to store information pertinent to that particular session. Example: user preferences etc.

10、 What problems do the vendors of ODBC Technology face with ASP/ADO?

ADO's apartment threaded, and ASP doesn't support threading at all.

The main problem would be locking unnecessarily or dead-locking when multiple requests are made thru the same connection object.

11、 What are the three tags of a form tag in HTML form?

ACTION, METHOD, Target and EncType (encoding type)

12、 What are the two tags for framesets?

Frameset, frame and noframes. Example:

<frameset framespacing="0" border="false" frameborder="0" rows="95,*">

<frame name="banner" scrolling="no" noresize target="contents" src="indianlook_top.html">

<frame name="main" src="http://www.imilap.com">

<noframes>

<p>This page uses frames, but your browser doesn't support them.

</noframes>

</frameset>

13、 How do you create Drop Down Combos in HTML?

Using Select tag. Example:

<select name="gender">

<option value="0" SELECTED>Male</option>

<option value="1" >Female</option>

</select>

14、 In DHTML what is the difference between FontSize and Font Size?

FontSize is a property, Font Size is a style.

15、 What is the tag CodeBase and why do we use it?

After writing and compiling a Java applet, you can display it in a web page by using the APPLET tag. The CODE attribute specifies the name of the Java applet to run. The CODEBASE attribute specifies the subdirectory or folder containing the Java applet. You can use PARAM tags between the <APPLET> and </APPLET> tags to provide information about parameters, or arguments, to be used by the Java applet.

Syntax

<APPLET

CODE="classFileName"

CODEBASE="classFileDirectory"

ARCHIVE="archiveFile"

ALT="altText"

ALIGN="LEFT"|"RIGHT"|"TOP"|"ABSMIDDLE"|"ABSBOTTOM"| "TEXTTOP"| "MIDDLE" | "BASELINE" | "BOTTOM"

HEIGHT="height"

WIDTH="width"

HSPACE="horizMargin"

VSPACE="vertMargin"

NAME="value"

>

<PARAM ...>

</APPLET>

The CODE attribute is required (otherwise there is no applet to run). Netscape Navigator 3 and Navigator 4 can display applets if the WIDTH and HEIGHT attributes are omitted, but some other browsers cannot, so for best results you should always include the WIDTH and HEIGHT attributes.

CODE ="classFileName"

specifies the filename of the applet to load. All Java class files end with a .class extension (for example, myApplet.class). Many browsers will display the applet correctly even if you omit the .class extension in the filename.

CODEBASE="classFileDirectory"

is the directory containing the applet class file and any resources the applet needs. The value is a URL for an absolute or a relative pathname. An absolute URL is used as is without modification and is not affected by the document's BASE tag. A relative CODEBASE attribute is relative to the document's base URL defined by the BASE tag. If the document does not define a BASE tag, it is relative to the directory containing the HTML file.

For short, the code property indicates the Qualified Class Name (including package name), ending with .class or not is both OK; the codebase is the well known classpath!

16、 Walk me through the OSI seven-layer model, then explain at what layer a switch, router and hub all operates.

7. Application layer

6. presentation layer

5. Session layer

4. Transport layer

3. Network layer

2. Datalink layer

1. Physical layer

A hub is a physical layer device providing absolute NO intelligence. A switch is a data link layer device which isolates collision domains vs. routers which isolate broadcast domains, giving each connection to a switch a "private" connecting (no collisions/contention). Think of a switch as a multi-port bridge of sorts, allocation a time slice to each connection, but very quickly.

17、 Describe how DNS works. Describe the difference between a resolver and an authoritative master server.

18、 Describe TCP/IP and it's components. What is ARP/RARP? What does a TCP/IP packet looks like?

Address Resolution Protocol (ARP) performs IP address-to-Media Access Control (MAC) address resolution for outgoing packets.

19、 Describe the process that happens when you click a link in your web browser to fetch another web page.

20、 How would you design the web page for a company that sells screws?

How can you have different number of cells for each row of a table?

Its just sufficient to give the number of column<td> tags within the row tags ... and its fine if the cells are varying within each rows.

Colspan will help you keep the alignment of your overall table, that is avoids the step or zig-zag pattern due to different no. of cells in different rows.

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有