2014年java软件project师面试题收集
如果页面中于五个li标签。写个js使点击每个li返回他的index
<!doctype html>
<html>
<head>
<style>
li{cursor:pointer;list-style:none;float:left;width:50px;height:30px;border: solid 1px #7D899E;padding-left:10px;}
</style>
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
</head> <body>
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
</ul> <script type="text/javascript">
$( "li" ).click( function( e ){
alert( jQuery.inArray( this , $("li" ))) ;
});
</script>
</body>
</html>
javascript 有哪几种数据类型
String、Number、Boolean、undefined、Null
window和docuemnt经常使用的属性和方法
window 经常使用的属性和方法:history document pageXOffset pageYOffset parent self location status top navigator alert() blur()
close() confirm() focus() open() print() setInterval() setTimeout()
document经常使用的属性和方法:
body title URL close() getElementById() getElementsByName() getElementsByTagName() write()
求随机数中连续之最大和
1、随机生成20个数据,是-1000到1000之间的随意不反复的数据
2、写一个算法,就这一数组的联系的数仅仅和为最大的一组连续数(即数组下班连续的。求出结果的长度可能是随意多个数)。并显示出来
public class Helper {
/**
* 任意一个数组
* @param length 数组长度
* */
public static int[] randInt(int length){
int[]ints = new int[length] ;
for(int x=0;x<ints.length;x++){
int number = randInt() ;
boolean exists = false ;
inner:for(int j=0;j<x;j++){
int temp = ints[j] ;
if(number == temp){
exists = true ;
break inner ;
}
}
if(exists){
x--;
continue ;
}
ints[x] = number ;
}
return ints ;
}
/**
* 求随机数
* */
public static int randInt(){
int result = -1000 + (int)(Math.random() * ((1000 + 1000) + 1)); ;
return result ;
}
/**
* 求数组连续的最大数
* @param ints 数组
* @param max 连续数个数
* */
public static int[] max(int[]ints,int max){
if(max > ints.length){
return ints ;
}
Map<Integer , int[]> tempMap = new HashMap<Integer, int[]>();
for(int x=0;x<ints.length;x++){
int all = 0 ;
int[]tempInts = new int[max] ;
for(int j=x;j<x+max && j<ints.length;j++){
all += ints[j] ;
tempInts[j-x] = ints[j] ;
}
tempMap.put( all , tempInts) ;
}
return tempMap.get(Collections.max(tempMap.keySet() )) ;
}
public static void main(String[] args) {
int[]ints = randInt(20) ;
System.out.println( Arrays.toString( ints ) ) ;
System.out.println( Arrays.toString( max( ints , 3 ) ) ) ;
}
}
现有表名为tb_regorg 的数据表。器数据内容例如以下所看到的,请依据数据规律写出一条SQL语句,查询出现广东及其下属的全部信息
SQL例如以下:
select distinct t1.code , t1.name from tb_regorg t1 , tb_regorg t2 where t1.code like CONCAT(t2.code , '%')
and t2.name like '广东省%'
2014年java软件project师面试题收集的更多相关文章
- 百度2016研发project师笔试题(四)
百度2016研发project师笔试题(四) 2015/12/8 10:42(网上收集整理的,參考答案在后面.若有错误请大神指出) 1. 关于MapReduce的描写叙述错误的是() A. 一个Tas ...
- 软件project师的属性与发展
工作近十年了.[软件project师] 一直是我职业 title 的中心词,仅仅是前面的修饰语在不断变化,从0基础.中级.高级到资深. 事实上 [软件project师] 是一个非常泛化的定义.工作现实 ...
- 当当网-前端project师測试题
前端project师測试题(笔试时间20分钟.面试时间20分钟) 一.笔试 1.基础问题 (1)前端页面有哪三层构成,各自是什么? ...
- Atitit. 高级软件project师and 普通的差别 高级编程的门槛总结
Atitit. 高级软件project师and 普通的差别 高级编程的门槛总结 1. 完备的知识体系 2 2. 编程理论/原理的掌握 2 1.1. 掌握经常使用的概念(ORM,IOC.AOP,eve ...
- 优秀软件project师必备的7大特性
不是每个程序猿都能成为优秀的软件project师. 在过去的6年时间里,我在Ooyala.Quora和now Quip这3个创业公司面试过许很多多挺有发展潜力的"种子选手".他们都 ...
- 网易2016研发project师笔试题
网易2016研发project师笔试题 2015/12/9 11:25(网上收集整理的,參考答案在后面,若有错误请大神指出) 1. 运行指令find / -name "test.c" ...
- java高级project师须要掌握的技术
1.你须要精通面向对象分析与设计(OOA/OOD).涉及模式(GOF,J2EEDP)以及综合模式.你应该十分了解UML,尤其是class,object,interaction以及statediagra ...
- 软件project师周兆熊给IT学子的倾情奉献
[来信] 贺老师: 你好,我是中兴通讯的一名软件开发project师,名叫周兆熊. 近期看了您的新书<逆袭大学:传给IT学子的正能量>,感觉你真心为当代学子答疑解惑.非常值得敬佩! 从上大 ...
- 美国程序猿(软件project师)平均年薪状况调查
来源站点:Indeed.com&computerengineeringsalarydata.com Average Software Engineer Salary by 50 States ...
随机推荐
- Ubuntu备份设置与恢复
打开家目录,按CTRL+H,显示所有隐藏文件,把所有文件名前面带点的文件(比如 .config).目录备份即可下次有问题就覆盖它
- Codeforces 761D Dasha and Very Difficult Problem(贪心)
题目链接 Dasha and Very Difficult Problem 求出ci的取值范围,按ci排名从小到大贪心即可. 需要注意的是,当当前的ci不满足在这个取值范围内的时候,判为无解. #in ...
- Go语言调度器之主动调度(20)
本文是<Go语言调度器源代码情景分析>系列的第20篇,也是第五章<主动调度>的第1小节. Goroutine的主动调度是指当前正在运行的goroutine通过直接调用runti ...
- Scaling the Messages Application Back End 【转】
11年的blog. Facebook Messages seamlessly integrates many communication channels: email, SMS, Facebook ...
- Arduino可穿戴教程Linux平台下安装Arduino IDE
Arduino可穿戴教程Linux平台下安装Arduino IDE Linux平台下安装Arduino IDE Linux平台下的安装方式和Windows下的zip形式安装是类似的,只是Linux下的 ...
- Maven出现错误No plugin found for prefix 'jetty' in the current project and in the plugin groups的问题解决
只需在maven的setting.xml文件上加入如下节点: <pluginGroups> <pluginGroup>org.mortbay.jetty</pluginG ...
- 无法获得VMCI 驱动程序的版本: 句柄无效。
写在前面 最近在电脑上安装了VMware虚拟机,在安装系统的使用,总提示错误“无法获得VMCI 驱动程序的版本: 句柄无效.”.最近刚买的电脑,也不会是系统的问题吧,为了装个虚机,总不能重装系统吧,没 ...
- Jsp2.0自定义标签(第一天)——一个简单的例子
今天是学习自定义标签的第一天 Jsp2.0以来,自定义标签的实现比传统标签的实现容易了很多,一般只要extends类SimpleSupport重写doTag()方法即可. 先看最简单的例子,输出一个H ...
- autolayout先进的自动布局工具箱
原文链接:http://www.objc.io/issue-3/advanced-auto-layout-toolbox.html 在我的上一个项目中,因为是面向公司内部使用的客户端,所以我直接抛弃了 ...
- Git的提交忽略文件
.gitingore文件内容如下 /target//.settings//.classpath/.project/logs/