若K=0时Z=A,K=1时Z=B,下列哪个语法描述有误
A: process begin if K='0' then Z<=A; else Z<=B; end if; end process;
B: With K select Z<=A when '0', B when '1', 'X' when others;
C: Z<=A when K='0' else B when K='1';
D: Z<= (not K and A) or (K and B);
A: process begin if K='0' then Z<=A; else Z<=B; end if; end process;
B: With K select Z<=A when '0', B when '1', 'X' when others;
C: Z<=A when K='0' else B when K='1';
D: Z<= (not K and A) or (K and B);
举一反三
- 若K=0时Z=A,K=1时Z=B,下列哪个语法描述有误 A: process begin if K='0' then Z<=A; else Z<=B; end if; end process; B: With K select Z<=A when '0', B when '1', 'X' when others; C: Z<=A when K='0' else B when K='1'; D: Z<= (not K and A) or (K and B);
- 有语句:k=x<y(y<z1:0):0;,以下选项中,与此语句功能相同的是( )。 A: if(x<y || y<z)k=1;else k=0; B: if(x<y)k=0;else if(y<z)k=1; C: if(x<y)if(y<z)k=1;else k=0; D: if(x<y&&y<z)k=1;else k=0;
- 若检验的假设为Ho:μ=μ0,H1:μ≠μ0,则拒绝域为( ) A: Z>Zα B: Z<-Zα C: Z>Zα/2或Z<-Zα/2 D: Z>Zα或Z<-Zα
- 若检验的假设为H0:u≥u0,H1:u<u0,则拒绝域为( )。 A: z>z B: z<- z C: z>zα/2或z<=zα/2 D: z>z或z<-z
- 若检验的假设为H0:u≤u0,H1:u>u0,则拒绝域为( )。 A: z>z B: z<- z C: z>zα/2或z<-zα/2 D: z>z或z<-z。