
【名词&注释】
格式化(formatting)、先进先出(first in first out)、计算结果(results)、表达式、关键字、共同点(common ground)、存储单元(memory cell)、基本思想(basic idea)、一部分(part)、数组名(array name)
[单选题]栈和队列的共同特点是
A. 都是先进先出
B. 都是先进后出
C. 只允许在端点处插入和删除元素
D. 没有共同点
查看答案&解析
点击获取本科目所有试题
举一反三:
[单选题]假设使用DIMENSION y(5)定义了一个一维数组y,正确的赋值语句是( )。
A. y=8
B. y[6]=8
C. STORE 10y[2],y[3],y[4]
D. y[3],y[4],y[5]=8
[单选题]用某种排序方法对序列(25,84,21,47,15,27,68,35,20)进行排序,记录序列的变化情况如下: 15,20,21,25,47,27,68,35,84 15,20,21,25,35,27,47,68,84 15,20,21,25,27,35,47,68,84 则采取的排序方法是______。
A. 直接选择排序
B. 冒泡排序
C. 快速排序
D. 希尔排序
[单选题]执行下列程序时,会产生什么异常 public class Test{ public static void main(String args[]{ int d=101; int b=220; long a=321; System.out.println((a-b) /(a-b-d) ); } }
A. ArraylndexOutOfBoundsException
B. NumberFormatException
C. ArithmeticExCeption
D. EOFException
[单选题]设定义下列结构体,结构体变量p的出生年份赋值正确的语句是( )。
A. Struct st
B. { int x;
C. inty;
D. int z;
E. }
F. Struct worker
G. { char name[20];
H. char sex;
I. struct st birth;
J. }p;
K. x=1987
L. birth.x=1987;
M. p.birth.x=1987;
N. p.x=1987;
[单选题]有以下程序#include "stdio.h"void fun(int *a,int *b){ int c=20,d=20; *a=c/3; b=d/5;}main(){ int a=3,b=5; fun(&a,&b); printf("%d,%d\n",a,b);}程序的运行结果是
A. 6,5
B. 5,6
C. 20,25
D. 3,5
本文链接:https://www.zhukaozhuanjia.com/download/qoqrlo.html