1.在hive中下列哪些命令可以实现去重( )
a.Distinct
b.group by
c.row_number
d.having
2.关于SpringMVC,以下说法错误的是?( )
a.SpringMvc的核心入口是DispatchServlet
b.@RequestMapping注解既可以用在类上也可以用在方法上
c.@PathVariable作用是取出url中的模板变量作为参数 controller默认是单例,通过d.@Scope(“prototype”)注解改为多例,成员变量共享
3.设有递归算法如下,最终打印结果是( )
#include<stido.h>
int foo(int a ,int b)
{
if (b == 0) return 0;
if (b %2 == 0) return foo(a+a,b/2);
return foo(a+a,b/2)+a;
}
void main()
{
printf(""%d"",foo(1,3));
}
a.3
b.4
c.5
d.6
4.What is Static Method in Java( )
a.It is a method which belongs to the class and not to the object(instance)
b.A static method can access only static data. It can not access non-static data (instance variables)
c.A static method can call only other static methods and can not call a non-static method from it.
d.A static method can not be accessed directly by the class name and doesn’t need any object
5.表关联时,以下哪种说法是正确的( )
a.左连接时,结果集数据的行数一定等于左表
b.左连接时,结果集数据的行数一定等于右表
c.右连接时,结果集数据的行数一定等于右表
d.左连接时,结果集的行数可能大于左表的行数
6.在hive中一个查询语句执行后显示的结果为: 20180812 50;20180813 32;20180814 NULL,则最有可能的查询语句是( )
a.SELECT inc_day,count(task_no) FROM 任务表WHERE inc_day<=20180814
b.SELECT inc_day, count(task_no) FROM 任务表WHERE inc_day<=20180814 GROUP BY inc_day
c.SELECT inc_day,count(task_no) FROM 任务表WHERE inc_day<=20180814 order by inc_day
d.SELECT inc_day, count(task_no) FROM 任务表 HAVING inc_day<=20180814 GROUP BY inc_day
7.调用函数时,入参及返回地址使用了( )
a.队列
b.多维数组
c.顺序表
d.栈
8.请指出堆排序、选择排序、冒泡排序、快速排序、的时间复杂度( )
a.nlogn、n^2、n^2、nlogn
b.n^2、n^2、n^2、nlogn
c.nlogn、nlogn、n^2、nlogn
d.nlogn、n^2、n^2、n^2
9.下列算法常用于聚类的问题是( )</