软件水平习题练习

软件水平考试程序员易错题(2018/7/2)
1题:对于输入语句scanf("%f,%f",&a,&b);要使变量a、b上的值分别为 1.78和2.48,则正确的输入是( )
A、1.78,2.48后跟回车
B、1.78 2.48后跟回车
C、1.782.48后跟回车
D、1.78;2.48后跟回车
【单选题】:      

2题:设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
【单选题】:      

3、4、5、6、7题:在编译程序中,语法分析的方法有自底向上分析和自顶向下分析。自底向上分析方法自左向右扫描输入符号串,通过__(11)__分析其语法是否正确。例如,__(12)__就是一种自底向上的分析方法,与其它自底向上分析方法不同,它是根据__(13)__来进行归约的。自顶向下分析方法从文法的开始符号出发,判断其能否__(14)__出输入符号串。采用自顶向下分析方法时,要求文法不含有__(15)__。
11.
A、归约一移进
B、移进-移进
C、移进一归约
D、归约-归约
12.
A、算符优先分析法
B、预测分析法
C、递归子程序分析法
D、LL(1)分析法
13.
A、短语
B、素短语
C、直接短语
D、句柄。
14.
A、归纳
B、归约
C、推理
D、推导
15.
A、右递归
B、左递归
C、直接右递归
D、直接左递归
【单选题】:      
【单选题】:      
【单选题】:      
【单选题】:      
【单选题】:      

8、9、10、11、12题: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
【单选题】:      
【单选题】:      
【单选题】:      
【单选题】:      
【单选题】:      

13题:int p(m,n)
int m,n;
{ int i,pp;
for(i=pp=1;i
PP*= m;
return(pp);

main()
{ printf("%d"、 p(3,4));
【分析题】:

 

您正在结束答题

请确认是否提交试卷?

继续做题 确认提交