javascript面试题汇总
www.diybl.com 时间 : 2008-12-10 作者:佚名 编辑:本站 点击: [ 评论 ]
使用注释行的时候,总是提示5.
在一般编程语言中, 参数都是"传值", 假设一个C函数的原型是int Fun(int value);
当你调用这个函数时, Fun函数首先会在自己的函数栈上copy一份参数, 就是这个函数的副本, 当你在Fun外部修改value值, 并不会影响Fun内部的value.
而Javascript的内嵌函数很特殊, 它并不会copy一个参数副本, 所有函数公用一套参数, 所以你在函数外部修改了参数值, 函数内部也会受影响.
这就是为什么你的show函数, 它的z参数是最后一个值, 因为每一次循环, z都被更改了. 传值和传址的问题
内容正文:1.Write a small JScript to split the following string into two parts and display each part on the console window, the function should return the length of the second part of the string: -
Input string
“Hi: hello.”
Split Char = “:”
The result should output to the screen all the characters on the left side of the “:” and the second line would be all the character on the right side of the “:”
2.IF you saw the following statement in a batch file what would it do?
if /I "%2" EQU "V" goto VALIDATION
1. What do the terms “Filegroups”, “components” and “setup types” mean in Installshield Professional
2. Given a collection of files what process would you go through using the three items detailed in question 1 to produce an installation.
3. What do you understand by the term “Maintenance Mode” with regard to Installshield Professional
4. What is the equivalent of a Component in Installshield Developer.
5. Describe an installation you have written with Installshield Professional – what did it install ? did you use customized dialogues ? if so how did you do this ? did the installation require you to write your own scripted functions ? if so give an example. Did you consider future upgrades of your applications – expand.
6. What do you know about Windows Installer based installations i.e. have you had any exposure to creating them ? if so expand. Where is the installation information held for such an installation ?