20171103每日一练
来源:互联网 发布:linux local命令 编辑:程序博客网 时间:2024/05/16 16:19
一、 Java 编程题
打印出如下图案(菱形)
*
***
*****
*******
*****
***
*
int x;
int j, k = 4;
for (j = 1; j <= k; j++) {
for (x = 1; x <= k - j; x++)
System.out.print(" ");
for (x = 1; x <= 2 * j - 1; x++)
System.out.print("*");
System.out.println();
}
for (j = k - 1; j >= 1; j--) {
for (x = 1; x <= k - j; x++)
System.out.print(" ");
for (x = 1; x <= 2 * j - 1; x++)
System.out.print("*");
System.out.println();
}
二、 MySql 问答题
用一条SQL 语句 查询出每门课都大于80 分的学生姓名
表名 student_score
| name | course | score |
| 张三 | 语文 | 81 |
| 张三 | 数学 | 75 |
| 李四 | 语文 | 76 |
| 李四 | 数学 | 90 |
| 王五 | 语文 | 81 |
| 王五 | 数学 | 100 |
| 王五 | 英语 | 90 |
select name from student_score group by name having name not in (
select name from student_score where score <80)
三、 JavaScript 问答题
null和undefined的区别?
null表示"没有对象",即该处不应该有值。典型用法是:
(1) 作为函数的参数,表示该函数的参数不是对象。
(2) 作为对象原型链的终点。
undefined表示"缺少值",就是此处应该有一个值,但是还没有定义。典型用法是:
(1)变量被声明了,但没有赋值时,就等于undefined。
(2) 调用函数时,应该提供的参数没有提供,该参数等于undefined。
(3)对象没有赋值的属性,该属性的值为undefined。
(4)函数没有返回值时,默认返回undefined。
- 每日一练-20171103
- 20171103每日一练
- 每日一练(20171103)
- 每日一练20171103
- 每日一练 20171103
- 20171103-每日一练
- 算法每日一练
- 每日一练
- 每日一练
- 每日一练
- 每日一练
- 每日一练
- 每日一练
- 每日一练
- 每日一练
- 每日一练
- 每日一练
- 每日一练
- machine learning in action出现ValueError: invalid literal for int() with base 10: 'largeDoses'
- 什么是数据驱动编程
- 第十周周末总结
- dom4j递归解析节点内还含有多个节点的xml
- 欢迎使用CSDN-markdown编辑器
- 20171103每日一练
- 数据结构之 栈应用---老鼠迷宫问题
- Java字符串
- 机器学习笔记2--梯度下降(Gradient decent)
- 1-行列式初步
- ABP官方文档(三十九)【Notification,Message...】
- 【日志】最后的时光①
- 算法设计与分析(一) 蛮力法
- 11.5事件监听