爱奇艺2019秋招C 方向笔试题(B)
时长:120分钟 总分:100分
129浏览 0人已完成答题
题型介绍
题型 | 单选题 | 多选题 |
---|---|---|
数量 | 14 | 6 |
某学生信息表,设一组表示成绩的关键字序列(24,15,32,28,19,1...
设哈希表长为11,哈希函数为Hash (key)=key%11。存在关键码...
OS在进行磁盘调度时,要考虑选择合适的算法。此时有6个请求者请求访问磁盘。...
某学院包含多个专业如计算机科学、信息管理、软件工程、网络工程。每个专业每年...
下面程序输出结果为()
#include
...
#include <stdio.h> #include <stdlib.h> class A { } int main() { printf("%d\n", sizeof(class A)) return 0 }
下列程序的运行结果是1, 请将横线处缺失程序补充完整() class C ...
class C {public: C(int a=0) void Show() private: int H} void C::Show() { cout<<H<<endl } C::C(int a) { } int main() { C m(1) m.Show() }
下列程序输入:2空格0,其运行结果是() #include<iost...
#include<iostream> using namespace std int main() { int i=0,j=0,n cin>>n for(n!=0 ) { j++ cin>>n } if(n=0) i++ cout<<i <<" "<<j<<endl return 0 }
下列程序的运行结果是1*2 3*4,请将横线处缺失程序补充完整...
#include <iostream> using namespace std class Test{ public: Test(int a, int b) { x = a y = b } ~Test() {} void print() { cout << x << "*" << y << " " } private: int x int y } int main() { Test t[2] = {_______} for(int i = 0 i < 2 i++) t[i].print() return 0 }
下列程序段的功能是判断字符串是否对称,对称返回1,不对称返回0,请将横线处...
bool fun(string str) { int i=0,j=0 j = ____ for (j-- i < j && str[i]==str[j] i++, j--) return i == j }
下列程序的运行结果是B0,请将横线处缺失程序补充完整() class B0...
#include <iostream> using namespace std class B0 { public: virtual void display() { cout << "B0" << endl } } class B1: public B0 { public: void display() { cout << "B1" << endl } } class D1: public B1 { public: void display() { cout << "D1" << endl } } void fun(______) { ptr.display() } int main() { D1 d1 fun(d1) }
数组定义如下: int arr[2] = {10,20} 下列函数的作用...
int arr[2] = {10, 20}下列函数的作用是,将数组中的两个数值进行交换,即调用函数后,arr变为{20,10},
voidchange(int* p) { /*……*/ }若要正确实现函数功能,/*……*/为()