A: A=[1 2;3 4];B=[3;7];A.*B;
B: A=cell(2,3);A(1,2)=[4;5];
C: A=[2 3 5 7;9 4 6 1;7 3 2 5];B=[1 7;0 5];A(2:end,2:2:end)
D: x=-5:5;y=-5:5;z=x.*x-y.*y;surf(x,y,z);
举一反三
- 下列哪条语句是正确的______。 A: A=[1 2;3 4],B=[3;8],C=A.*B B: A=cell(2,3);A(1,2)=[4;5] C: A=randn(3,4);B=rand(2,2);A(1:end-1,2:2:end) D: x=-5:5,y=-5:5;z=x.*x-y.*y;surf(x,y,z)
- 下列MATLAB语句运行有误的是() A: A=[1 2;3 4];B=[3;7];AB B: A=ones(3,3);A(1,2:3)=[4,5] C: A=[2 3 5 7;9 4 6 1;7 3 2 5];B=[1 7;0 5];A(2:end,2:2:end)>B D: x=-5:5;y=-5:5;z=xx-yy
- 执行以下语句的结果:dict1={"x":1,"y":2,"z":3}dict2={"x":4,"a":5}dict1.update(dict2) A: {"x":1,"y":2,"z":3,"x":4,"a":5} B: {"x":4,"a":5,"x":1,"y":2,"z":3} C: 有重复项,结果有误! D: {"x":4,"y":2,"z":3,"a":5}
- 若x=[1 2 3 4 5];y=[2 -1 4 3 -2];则z=x.*y=()
- 若2x+y=x,4x-7y+5z,则x:y:z=()。 A: 2:1:3 B: 2:1:1 C: 2:( -1):3 D: 4:7:5
内容
- 0
【单选题】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]
- 1
若2x+y=z,4x=7y+5z,则x:y:z=( ). A: 2:1:3 B: 2:1:1 C: 2:(-1):3 D: 4:7:5
- 2
int x=3,y,z;<br/>y=-x++;<br/>z=y+8/++x;<br/>Console.WriteLine{{0},{1},{2}",x,y,z);<br/>此程序的输出结果是____。 A: 5,-3,-2 B: 4,-3,-1 C: 4,-4,-2 D: 5,-4,-2
- 3
设有下列语句序列:(x>;1)and(y<;=5)thenz←x*y;sez←x+y;z=12thenz←2*z。用判定条件覆盖法进行测试,则应选用()为测试用例。 A: x=1,y=12;x=4,y=7 B: x=2,y=1;x=3,y=3 C: x=3,y=4;x=1,y=9 D: x=4,y=5;x=1,y=6
- 4
编写程序,输出下列的数字图形。 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 1 2 3 4 5 6 1 2 3 4 5 1 2 3 4 1 2 3 1 2 1