京东2019校招数据开发工程师笔试题
时长:120分钟 总分:84分
117浏览 0人已完成答题
题型介绍
题型 | 单选题 | 多选题 |
---|---|---|
数量 | 59 | 18 |
下面是一段关于计算变量s的算法: ①变量s的初值是0 ②变量i从1起循环到...
已知小顶堆:{51,32,73,23,42,62,99,14,24,394...
TCP协议的拥塞控制就是防止过多的数据注入到网络中,这样可以使网络中的路由...
重复的数据,会增加磁盘空间的占有率,延长操作数据的时间。可以使用规范化处理...
Mysql中表user的建表语句如下, CREATE TABLE `use...
CREATE TABLE `user` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键Id', `name` varchar(255) DEFAULT NULL COMMENT '名称', `age` int(11) DEFAULT NULL COMMENT '年龄', `address` varchar(255) DEFAULT NULL COMMENT '地址', `created_time` datetime DEFAULT NULL COMMENT '创建时间', `updated_time` datetime DEFAULT NULL COMMENT '更新时间', PRIMARY KEY (`id`), KEY `idx_com1` (`name`,`age`,`address`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户表'以下哪个查询语句没有使用到索引idx_com1?
用户表中有两列name/country。 现在要查询用户表中每个国家(co...
现在要查询用户表中每个国家(country)的用户人数,应使用以下哪个语句
X定义如下,若存在X a a.x=0x11223344则a.y[1]的...
union X{ int x char y[4] }
有以下程序
#include
using...
#include <iostream> using namespace std class D{ int d public: D(int x=1):d(x){ } ~D(){ cout<<"D" } } int main(){ D d[]={_____________} D* p=new D[2] delete[]p return 0 }程序运行的结果是DDDDD,请为横线处选择合适的程序( )
有以下程序 #include <iostream> using...
#include <iostream> using namespace std _______________________ void One(float one) { cout<<"1"<<endl } void Two(float two) { cout<<"2"<<endl } void Three(float three) { cout<<"3"<<endl } int main() { float i=1,j=2,k=3 function = One function(i) function= Two function(j) function = Three function(k)}请为横线处选择合适的程序使得程序的运行结果是123 ( )
有以下程序
#include
...
#include<iostream> using namespace std class complex { public: int real int imag complex(int r=0,int i=0) { real=r imag=i } _________________________________ } complex add(complex &a,complex & b) { int r=a.real+b.real int i=a.imag+b.imag return complex(r,i)} int main( ) { complex x(1,2),y(3,4),z z=add(x,y) cout<<z.real<<"+"<<z.imag<<"i"<<endl }程序的输出结果为4+6i,请为横线处选择合适的程序 ( )
有以下程序
#include
...
#include<iostream> #include<fstream> #include<string> using namespace std int main() { ofstream File1("text.txt") string d("20160314") string y=d.substr(0,4) int k=d.find("2") int i=d.find("3") string m=d.substr(k+2,i-k) string dd=d.substr(i+1,2) string n=dd+m+y File1<<n<<endl File1.close() }文件text.txt中写入的结果是( )?
有以下函数模版 #include <iostream>&nbs...
#include <iostream> using namespace std template <class T> void S(T &x, T &y) { T temp temp = x x = y y = temp} template <class T> void SS(T A[], int n) { int min int i, j for (i=0 i<n-1 i++) { min=i for (j=_____ j<n j++) if (A[j]<A[min]) min=j S(A[i], A[min]) } }其功能是将A数组中的数按照由小到大的顺序排列,请为横线处选择合适的程序( )
有以下类定义 #include <iostream> usin...
#include <iostream> using namespace std class shape {public: virtual int area()=0 } class rectangle:public shape {public: int a, b void setLength (int x, int y) {a=xb=y} int area() {return a*b} }若有语句定义rectangle r r.setLength(3,5) 则编译时无语法错误的语句是( )
下列代码执行后的输出结果为(      ) ...
int main() { char c, s[20] strcpy(s, "Hello,World") printf("s[]=%6.9s\n", s) return 0 }
struct Student{ int num...
struct Student { int num char name[7] short age char sex } student1 int sz = sizeof(student1)则执行上面语句后,变量sz的值为()
对于如下C++程序: int main() {  vector&...
int main() { vector<int> vInt(1) cout << vInt[1] cout << vInt.at(1) return 0 }请问两个cout语句分别会发生什么情况()
对于如下C++程序: int main() {  vector&...
int main() { vector<int> vInt for (int i=0 i<5 ++i) { vInt.push_back(i) cout << vInt.capacity() << " " } vector<int> vTmp(vInt) cout << vTmp.capacity() << "\n" return 0 }请问程序输出的是()
对于如下C++程序: int main() {  int a(...
int main() { int a(1), b(3), c(2) while (a < b < c) { ++a --b --c } cout << a << " " << b << " " << c << "\n" return 0 }请问输出结果是()
下列程序打印结果为(      ) impo...
import re m = re.search('[0-9]','a1b2c3d4') print(m.group(0))
下列程序打印结果为(      ) impo...
import datetime t1 = datetime.datetime(2017,10,10,21,40) t2 = datetime.datetime(2017,10,8,23,40) tt1 = datetime.timedelta(seconds = 1200) tt2 = datetime.timedelta(weeks = 3) print(t1 - t2)
将Person表中Name字段为"Lilei"的AGE字段递增1,可以使用...
系统管理员编写扫描临时文件的shell程序tmpsc.sh, 测试该程序时...
文件目录data当前权限为rwx --- ---,只需要增加用户组可读权限...
Shell 脚本(shell script),是一种为 shell 编写的...
#!/bin/bash aa='Hello World !'请问下面选项中哪个能正常显示Hello World !
假设一种基因同时导致两件事情,一是使人喜欢抽烟,二是使这个人和肺癌就是()...
若一个学习器的ROC曲线被另外一个学习器低的曲线完全“包住”,则断言后者的...
(   )的目的缩小数据的取值范围,使其更适合于数据挖掘算法的需...
假设属性income的最大最小值分别是12000元和98000元。利用最大...
图像挖掘中常用卷积神经网络(DNN)作为基础结构,以下关于卷积操作 (co...
京东展开足球比赛,已知:joy队和Jder队。假设65%的比赛joy队胜出...
为了培养员工和子女的亲密度,京东开展亲子活动。活动中进行分组,一组有4对亲...
有三道门d1,d2,d3,兔子出现在各道门后的概率相同,选手猜中兔子在哪道...
分布函数具有可加性的性质很重要,以下说法正确的是? (1) 均匀分布 (2...
(1) 均匀分布
(2) 二项分布
(3) 泊松分布
(4) 正态分布
(5) 伽马分布
(6) 卡方分布