随笔- 361
文章- 7
评论- 26
阅读-
50万
随笔分类 - 面试
AJAX笔试面试题汇总
摘要:1. 什么是ajax,为什么要使用Ajax(请谈一下你对Ajax的认识)什么是ajax:AJAX是“Asynchronous JavaScript and XML”的缩写。他是指一种创建交互式网页应用的网页开发技术。Ajax包含下列技术:基于web标准(standards-based presentation)XHTML+CSS的表示;使用 DOM(Document Object Model)进行动态显示及交互;使用 XML 和 XSLT 进行数据交换及相关操作;使用 XMLHttpRequest 进行异步数据查询、检索;使用 JavaScript 将所有的东西绑定在一起。为什么要用ajax:
阅读全文
MySQL面试题(English)
摘要:1.What are the differences between Get and post methods in form submitting. give the case where we can use get and we can use post methods?GET and POST basically allow information to be sent back to the webserver from a browser (or other HTTP client for that matter).for form SubmittChoosing GET as t
阅读全文
PHP面试题(English)
摘要:1. What is the difference between == and === in PHP?The == operator just checks to see if the left and right values are equal. But, the === operator (note the extra “=”) actually checks to see if the left and right values are equal, and also checks to see if they are of the same variable type (like
阅读全文
面试逻辑题(English)
摘要:1. You have a birthday cake and have exactly 3 cuts to cut it into 8 equal pieces. How do you do it?The answer: stack the piecesThe “correct” answer is to cut the cake in quarters (4 pieces) using 2 of the cuts, then stack all 4 of the pieces and then split all four of the stacked pieces with the th
阅读全文
抽屉原理
摘要:一、 知识要点抽屉原理又称鸽巢原理,它是组合数学的一个基本原理,最先是由德国数学家狭利克雷明确地提出来的,因此,也称为狭利克雷原理。把3个苹果放进2个抽屉里,一定有一个抽屉里放了2个或2个以上的苹果。这个人所皆知的常识就是抽屉原理在日常生活中的体现。用它可以解决一些相当复杂甚至无从下手的问题。原理1:把n+1个元素分成n类,不管怎么分,则一定有一类中有2个或2个以上的元素。原理2:把m个元素任意放入n(n<m=个集合,则一定有一个集合呈至少要有k个元素。 其中 k= (当n能整除m时) 〔 〕+1 (当n不能整除m时)(〔 〕表示不大于 的最大整数,即...
阅读全文
面试逻辑题
摘要:1.烧一根不均匀的绳,从头烧到尾总共需要1个小时。现在有若干条材质相同的绳子,问如何用烧绳的方法来计时一个小时十五分钟呢?答:1)三根绳,第一根点燃两端,第二根点燃一端,第三根不点第一根绳烧完(30分钟)后,点燃第二根绳的另一端,第二根绳烧完(45分钟)后,点燃第三根绳子两端,第三根绳烧完(1小时15分)后,计时完成2.你有一桶果冻,其中有黄色、绿色、红色三种,闭上眼睛抓取同种颜色的两个。抓取多少个就可以确定你肯定有两个同一颜色的果冻?答:根据抽屉原理,4个3.如果你有无穷多的水,一个3公升的提捅,一个5公升的提捅,两只提捅形状上下都不均匀,问你如何才能准确称出4公升的水?答:3升装满;3升-
阅读全文
JavaScript面试题整理
摘要:一、单选题 1、以下哪条语句会产生运行错误:(A)A.var obj = ( ); // 语法错误B.var obj = [ ];//定义一个数组C.var obj = { };//定义一个对象D.var obj = / /;//定义一个正则表达式2、以下哪个单词不属于javascript保留字:(B)A. withB. parentC. classD. void3、请选择结果为真的表达式:(C)A. null instanceof ObjectB. null === undefinedC. null == undefinedD. NaN == NaN说明:==用于一般比较,===用于严格比较
阅读全文
过桥谜题-Bridge and torch problem
摘要:老外面试时候考的逻辑题——网上找了个类似的题目1:Four people come to a river in the night. There is a narrow bridge, but it can only hold two people at a time. They have one torch and, because it's night, the torch has to be used when crossing the bridge. Person A can cross the bridge in one minute, B in two minutes, C
阅读全文
JavaScript面试笔试题
摘要:一、不定项选择题 (每题3分,共30分)1 声明一个对象,给它加上name属性和show方法显示其name值,以下代码中正确的是( D )A. var obj = [name:"zhangsan",show:function(){alert(name);}];B. var obj = {name:"zhangsan",show:”alert(this.name)”};C. var obj = {name:"zhangsan",show:function(){alert(name);}};D. var obj = {name:"
阅读全文
javascript+HTML+CSS面试题
摘要:今天参加面试,考了我三个小时,考晕了,赶紧补习补习javascript的知识!(另:人事部明明说招HTML5+CSS3+jQuery,考1个半小时左右,怎么变成了考传统DIV+CSS+javascript啦,呜呜呜~~~)先看看简单的1、完成foo()函数的内容,要求能够弹出对话框提示当前选中的是第几个单选框。 2、完成字符串翻转功能 填充注释部分的函数体,使得foo()函数调用弹出”成功”的对话框。 3. 有一组数字,从1到n,从中减少了3个数,顺序也被打乱,放在一个n-3的数组里请找出丢失的数字,最好能有程...
阅读全文