【单选题】
下面程序的时间复杂度为()for(i=1,s=0;i=n;i++){t=1;for(j=1;j=i;j++)t=t*j;s=s+t;}
【单选题】
I don’ t think it’ s important, _____?
【单选题】
算符优先文法G【S】:EàE+T,Tà(E)|i则关于优先级的判断正确的是____。
【单选题】
以下程序的输出结果是_______? f(int b[],int m,int n) { int i,s=0; for(i=m;in;i=i+2) s=s+b[i]; return s; } int main() { int x,a[]={1,2,3,4,5,6,7,8,9}; x=f(a,3,7); printf(%d\n,x); }
【简答题】
已知函数 。下面是实现计算该函数的程序,请填空完成以下程序。
Private Sub Command1_Click()
Dim k As Integer, i As Integer, s As Long
n = 5 : k = 1
For i = 1 To n
s = s +[填空]
Next i
Print s
End Sub
Function pow(a As Integer, b As Integer) As Long
Dim i As Integer, t As Long
t = 1
For i = 1 To a
[填空]
Next i
pow = t
End Function
【判断题】
S7-200系列PLC可进行间接寻址的存储器是I、Q、M、S、T及C。
【单选题】
26. I couldn’t go to Jane’s party. It was ______ day I was babysitting for Derek and Linda.
【简答题】
文法G1(S),它的产生式为:S→a|∧|(T),T→T,S|S。①消去G1的左递归。②写出非终结符的FIRST集与FOLLOW集。③构造它的分析表
【单选题】
— I can’t find my mobile phone. I’m sure it’s in this room. — _______. I’ll call you with my phone. When it rings, you can follow the sound.