奇安信2019校招笔试题(一)
时长:120分钟 总分:100分
321浏览 1人已完成答题
题型介绍
题型 | 单选题 | 多选题 |
---|---|---|
数量 | 78 | 2 |
确定{1,2,3,4,5,6,7,8}的一个排列,使其逆序列为5,3,4,...
设计一个游戏:甲、乙两个人轮流数数字,要求最少数1个数,最多数4个数字,且...
设计一个游戏:有两堆石子,A堆有11块石头,B堆有15块石头。甲、乙两个人...
英语课上,小明偷摸练习对序列{60,13,29,33,19,94,22}进...
一个栈的入栈顺序是1,2,3,...,n,其出栈序列是P1,P2,P3,....
对于关键字集{35,10,21,40,45,36,30,27},若查找表的...
已知下标从1开始的二维数组a[6][3]按行序为主序,每个元素占3个字节空...
若N阶三对角带状矩阵A按照行序为主序方式,将所有非零元素依次存放在一个一维...
有以下程序段: int f(LinkStack S) {&nbsp &n...
int f(LinkStack S) { LinkStackNode *temp h=(LinkStackNode*)malloc(sizeof(LinkStackNode)) if(h==NULL) return 1 free(h) return 0 }则该段程序的功能是( )
有以下程序段: if(T-&gttop == Stack_Size-1)...
if(T->top == Stack_Size-1) return(0) T->top++ T->elem[T->top] = m return(1)则该段的功能是( )
以下代码的功能为(&nbsp &nbsp &nbsp ) int F...
int F(LinkQueue *LQ,int x) { temp=(LinkQueueNode*)malloc(sizeof(LinkQueueNode)) temp->data=x temp->next=*LQ->next *LQ->next=temp *LQ=temp return 1 }
以下代码的功能为(&nbsp &nbsp &nbsp ) typed...
typedef struct Node { QueueElementType data /*数据域*/ struct Node *next /*指针域*/ }LinkQueueNode,*LinkQueue int F(LinkQueue *LQ,*x) { if(*LQ->next==*LQ) return 0 LinkQueueNode * temp=*LQ->next->next if(*LQ==temp) *LQ=temp->next *LQ->next->next=temp->next *x=temp->data free(temp) return 1 }
在Android的项目开发过程中,常需要进行内存优化来防止运行过程中内存溢...
当一个点击事件发生时,Activity.dispatchTouchEven...
Android的UI 绘制机制与栅格化中,绝大多数渲染操作都依赖两个硬件:...
-&nbsp(void)setName:(NSString *)aNam...
在UIImageView中显示一幅图像,如果想让图像维持原有的宽高比,并尽...
关于下面代码的运行结果描述正确的是(&nbsp &nbsp &nbsp...
<ul> <li>item1</li> <li>item2</li> <li>item3</li> </ul> <script> var lis=document.getElementsByTagName("li") for(var i=0i<lis.lengthi++){ lis[i].onclick=function(){ alert(i) } } </script>
网络工程师在编辑shell程序auto.sh时,为了防止其他程序员查看脚本...
办公室某台计算机连接网络失败,网络管理员检测后发现无网关,通过bash s...
下列程序段的运行结果是() for(int i=0i&lt10i++...
for(int i=0i<10i++) { switch(i) { case 0:cout<<"3" break case 2:cout<<"2" break case 4: break case 6: break case 8:cout<<"4" break default :cout<<"1" } }
执行下列程序段,当输入字符串how&nbsp are&nbsp you...
char s[10] int i cin>>s for(i=0s[i]!='\0'i++) cout<<i
下列程序段,若输入1 2 3 4 5,输出12345,请将横线处缺失程序补...
int *p=new int[5] for(int i=0i<5i++) cin>>p[i] for(int i=0i<5i++) cout<< delete [] p
有如下程序段 &nbspstring s1="123" &nbspc...
string s1="123" char s2[]="abc" cout<<s1.size()<<" "<<strlen(s2)<<endl该程序的运行结果是()
下列程序段的功能是输出2~n内能同时被3和5整除的数,请将横线处缺失程序补...
vector<int> A(10) int count=0,n,i cin>>n for(int i=2i<=ni++) {if( ) A.resize(count+10) if(i%3==0&&i%5==0) A[count++]=i } for(i=0i<counti++) cout<<A[i]<<" "
下列函数的功能是将s所指字符串复制到t所指存储空间,请将横线处缺失程序补充...
void S(char *s,char *t) { do{ }while(*s) }
若A是一个类名,且有如下语句序列 A a1; A &ampa2=a1 ...
A a1; A &a2=a1 A *a3=new A执行上面的语句序列,调用A类的构造函数次数是()
下列程序的运行结果是0&nbsp 0*1&nbsp 2*,请将横线处缺...
class Point { public: Point( ) {X=xxY=yy} void show(){cout<<X<<" "<<Y<<"*"} private: int X,Y } int main() { Point m1 Point m2(1,2) m1.show() m2.show() }
有如下类定义 class Point  {  &nbs...
class Point { public: Point(int xx=0, int yy=0){ X=xx Y=yy } int GetX(){ return X } int GetY(){ return Y } _________________void D(Point &a, Point &b) private: int X,Y } void D( Point& a, Point& b){ cout<<(a.X+b.Y)<<endl }//请为横线处选择合适的程序使得语句Point p1, p2D(p1, p2)的运行结果是0()
String s1 = &ldquoabc&rdquo String s2 = &ldquoabc&rdquo...
String s1 = “abc” String s2 = “abc”以上代码创建了几个String类对象:()
public class s { &nbsppublic static ...
public class s { public static void main(String[] args) { int x = 100 x-= x+=x+x System.out.println(x) } }以上程序输出结果为:()
public class a { &nbsppublic int num...
public class a { public int num public int sum public a(){ this(1) num++ } public a(int num){ this.num = num this.sum = num + 2 } } public class testA { public static void main(String[] args) { a s = new a() System.out.println("num is" + s.num + "sum is" + s.sum) } }该程序的输出结果是()
import java.util.Scanner public clas...
import java.util.Scanner public class s { public static void main(String [] args){ Scanner s=new Scanner(System.in) int n=s.nextInt() int a[] =new int[n] for(int i=0i<=ni++){ a[i]=i System.out.println(a[i]) } } }若该程序输入n=3,输出结果为()
public class s { &nbsppublic static ...
public class s { public static void main(String[] args) { System.out.println(10.00-9.90) System.out.println(99.0-1.0) } }该程序输出结果为()
下列代码运行的结果是:()&nbsp &nbsp &nbsp &nb...
public class Starter extends Thread{ private int x=2 public static void main(String[] args)throws Exception{ new Starter().makrltSo() } public Starter(){ x=5 start() } public void makeltSo()throws Exception{ join() x=x-1 System.out.println(x) } public void run(){ x*=2 } }
代码片段如下,执行后的输出结果是什么(&nbsp &nbsp &nbs...
inti=11, j=5; switch(i/j) { case 3: j+=i case 2: j+=2 case 4: j+=4 break case 1: j +=1 } System.out.pirntln(j)