软件水平考试程序员模拟试题(2019/7/2) |
第1题:函数fopen()的返回值不能是( )
A、NULL B、0 C、1 D、某个内存地址 |
【单选题】: |
第2题:在SQL中,外模式一级数据结构的基本单位是__(33)__。
33. A、基本表 B、视图 C、ER图 D、用户表 |
【单选题】: |
第3、4、5、6、7题:设四位数P=0110和Q=1010,则下列按位逻辑运算的等价运算及其结果为:
PQ+PQ=__(46)__; (P+Q)(P+Q)=__(47)__; Q+PQ=__(48)__; P(Q+P)=__(49)__; P+PQR+PQR=__(50)__ 其中R为任一个4位的二进位位串。 46. A、P⊕Q=1100 B、P⊕Q=1100 C、P⊕Q=0011 D、P⊕Q=0011 47. A、P⊕Q=1100 B、P⊕Q=1100 C、P⊕Q=0011 D、P⊕Q=0011 48. A、PQ=0010 B、P+Q=1110 C、PQ=0010 D、P+Q=1110 49. A、PQ=0010 B、P+Q=1110 C、PQ=0010 D、P+Q=1110 50. A、PQ=1101 B、P+Q=1101 C、PQ=0010 D、P+Q=0010 |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |
第8、9、10、11、12题:softwaredesignisa__(71)__process.Itrequiresacertain__(72)__off1aironthepartofthedesigner.Designcannotbelearnedfromabook.Itmustbepracticedandlearntbyexperienceandstudyofexistingsystems.Awell__(73)__softwaresystemisstraightforwardtoimplementandmaintain,easily__(74)__andreliable.Badly__(73)__softwaresystems,althoughtheymayworkare__(75)__tobeexpensivetomaintain,difficulttotestandunreliable.
71. A、create B、createD、C、creating D、creative 72. A、amount B、amounted` C、mount D、mounteD、73. A、design B、designeD、C、designing D、designs 74. A、understanD、 B、understands C、understanding D、understooD、75. A、like B、likely C、unlike D、unlikely |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |
第13题:设有无符号短整型变量i、j、k,i值为013,j值为 OX13。计算表达式“k=~i|j>> 3”后,k的值是( )
A、06 B、0177776 C、066 D、0177766 |
【单选题】: |
第14题:定义一个具有10个元素的整型数组,应当使用语句( )
A、int a[10]; B、int a[2,5]; C、int a[]; D、int *a[10]; |
【单选题】: |
第15、16题:某服务器的IP地址是74.52.46.99,则其机器中二进制的IP地址为__(61)__,这是一个属于__(62)__的IP地址。
61. A、01111000010100101000011010011001 B、00000011110010101010011010011001 C、00000010010l0ll01001011l0ll00011 D、010010100011010000l0ll1001100011 62. A、A类 B、B类 C、C类 D、D类 |
【单选题】: |
【单选题】: |
第17题:编程序输入50个学生的学号、姓名、3门课程的成绩存入一个结构型的数组。统计每个学生的总分并输出学生的学号、姓名、总分。 |
【分析题】: |
第18题:在计算机上可以直接运行的程序是写( )
A、高级语言程序 B、汇编语言程序 C、机器语言程序 D、C语言源程序 |
【单选题】: |
第19题:编程序从键盘上输入一个字符串(长度小于或等于80),分别统计其中的字母、数字和其他字符的数目。本题要求用指向数组首地址的指针变量来处理字符率中的字符。 |
【分析题】: |
第20、21、22、23、24题:均可唯一地转换成与它对应的二叉树。由树转换成的二叉树中,结点N的左子女是N在原树里对应结点的__(1)__,而N的右子女是原树里对应结点的__(2)__。
在下列二叉树中,图一为__(3)__树,图二为__(4)__树,图三为__(5)__树。 1. A、最左子结点 B、最右子结点 C、最邻近的右兄弟 D、最邻近的左兄弟 2. A、最左的兄弟 B、晨右的兄弟 C、最邻近的右兄弟 D、最邻近的左兄弟 3. A、查找树 B、满二叉树 C、平衡树但不是满二叉树 D、B+树 4. A、查找树 B、满二叉树 C、平衡树但不是满二叉树 D、B+树 5. A、查找树 B、满二叉树 C、平衡树但不是满二叉树 D、B+树 |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |
第25题:设有int i=010,j=10;则执行“printf("%d,%d\n",++i,j--);”的输出是( )
A、ll, 10 B、9,10 C、010,9 D、10, 9 |
【单选题】: |
第26题:设a,b为字符型变量,执行"scanf("a=%c,b=%c",&a,&b)"后使a为'A',b为'B',从键盘上的正确输入是( )
A、’A”B’ B、’A’,’B’ C、A=A,B=B D、a= A、b=B |
【单选题】: |
第27题:计算平方数时不可能引起二义性的宏定义是( )
A、#define SOR(x)x*x B、#define SQR(x)(x)*(x) C、# define SQR(x)(x*x) D、# define SQR(x)((x)*(x)) |
【单选题】: |
第28题:设有如下定义,则正确的叙述为( )
char x[]={"abcdefg"}; char y[]={'a','b','c','d','e','f','g'}; A、数组x和数组y等价 B、数组x和数组y长度相同 C、数组X的长度大于数组y的长度 D、数组X的长度小于数组y的长度 |
【单选题】: |
第29、30、31、32、33题:Aninstructionismadeupofoperationsthat__(66)__thefunctiontobeperformedandoperandsthatrepresentthedatatobeoperatedon.Forexample,ifaninstructionistoperformtheoperationof__(67)__twonumbers,itmustknow__(68)__thetwonumbersare.Theprocessor'sjobisto__(69)__instructionsandoperandsfrommemoryandtoperformeachoperation.Havingdonethat,itsignalsmemorytosendit__(70)__instruction.
66. A、skip B、smile C、smoke D、specify 67. A、adD、B、addeD、C、adding D、addition 68. A、when B、where C、which D、who 69. A、get B、make C、push D、put 70. A、ant B、last C、next D、secon |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |
第34题:设整型变量m,n,a,b,c,d均为1,执行“( m=a>b)&&(n=a>b)"后m,n的值是( )
A、0,0 B、0,l C、1,0 D、1,l |
【单选题】: |
第35、36、37、38题:设有如下两个关系U和V,则U|X|V运算结果的元组个数是__(36)__,属性个数是__(37)__;
U|X|V运算结果的元组个数是__(38)__,属性个数是__(39)__。 2=1 U: A B B V: B C D、 3 2 1 2 4 3 6 5 4 2 6 4 9 8 7 8 0 7 8 7 9 36. A、1 B、2 C、3 D、4 37. A、6 B、5 C、4 D、3 38. A、1 B、2 C、3 D、4 39. A、6 B、5 C、4 D、3 |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |
第39题:设变量 m,n,a,b,c,d均为以执行(m=a==)||(n=c==d)后,m,n的值是( )
A、0,0 B、0,1 C、l,0 D、1,1 |
【单选题】: |
第40题:下列数据类型中不属于构造类型的是 ( )
A、数组型 B、结构型 C、共用型 D、枚举型 |
【单选题】: |