下列各表达式正确的是哪几个()
A: “1011”SLL=“0110”
B: (-5) rem 2=(-1)
C: Singal a:bit_vector(7 downto 0);a<=”10110110”;则a(0)=’0’。
D: 5 mod (-2)=(-1)
A: “1011”SLL=“0110”
B: (-5) rem 2=(-1)
C: Singal a:bit_vector(7 downto 0);a<=”10110110”;则a(0)=’0’。
D: 5 mod (-2)=(-1)
举一反三
- 下列各表达式不正确的是:() A: 1011”SLL=“0110” B: Singala:bit_vector(7downto0);a<=”10110110”;则a(0)=’0’ C: (-5)rem2=(-1) D: 5mod(-2)=(-1)
- 【单选题】Which of the following matrices does not have the same determinant of matrix B: [1, 3, 0, 2; -2, -5, 7, 4; 3, 5, 2, 1; -1, 0, -9,-5] A. [1, 3, 0, 2; -2, -5, 7, 4; 0, 0, 0, 0; -1, 0, -9, -5] B. [1, 3, 0, 2; -2, -5, 7, 4; 1, 0, 9, 5; -1, 0, -9, -5] C. [1, 3, 0, 2; -2, -5, 7, 4; 3, 5, 2, 1; -3, -5, -2, -1] D. [1, 3, 0, 2; -2, -5, 7, 4; 0, 0, 0, 1; -1, 0, -9, -5]
- 设a为整型变量,不能正确表达数学关系:0≤a<5的表达式是( )。 A: 0<=a<5 B: a==0 || a==1 || a==2 || a==3 || a==4 C: a>=0 && a<5 D: !(a<0 || a>=5)
- 【单选题】如图示代码,下面哪个是正确的输出结果 A. 0 1 2 3 4 5 B. 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5 C. 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5 D. 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5
- 以下数据类型定义哪些是正确的? A: BIT_VECTOR(0 TO 7) B: BIT_VECTOR(7 TO 0) C: BIT_VECTOR(1 TO 8) D: BIT_VECTOR(8 TO 1)