网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
对于典型的MIPS五级流水线处理器(不前递),下面这段代码中,哪条指令会遇到数据冒险? instruction 1: add $1, $2, $3 instruction 2: sw $2, 0($1) instruction 3: lw $1, 4($2) instruction 4: add $2, $2, $1
A.instruction 2
B.instruction 4
C.instruction 1
D.instruction 3
参考答案和解析
lw
更多 “对于典型的MIPS五级流水线处理器(不前递),下面这段代码中,哪条指令会遇到数据冒险? instruction 1: add $1, $2, $3 instruction 2: sw $2, 0($1) instruction 3: lw $1, 4($2) instruction 4: add $2, $2, $1A.instruction 2B.instruction 4C.instruction 1D.instruction 3” 相关考题
考题
关于交易所交易资金清算的步骤,排序正确的是( )。(1)制作清算指令;(2)接收交易数据;(3)执行清算指令;(4)确认清算结果 A.(1)(2)(3)(4) B.(2)(1)(3)(4) C.(1)(3)(4)(2) D.(2)(1)(4)(3)
考题
An instruction is made up of operations that (1) the function to be performed and operands that represent the data to be operated on. For example, if an instruction is to perform. the operation of (2) two numbers,it must know (3) the two numbers are. The processor's job is to.(4) instructions and operands from memory and to perform. each operation. Having done that, it signals memory to send it (5) instruction.A.skipB.smileC.smokeD.specify
考题
对于函数定义:func add(args ...int) int { sum := 0 for _, arg := range args { sum += arg } return sum}下面对add函数调用正确的是()
A. add(1, 2)B. add(1, 3, 7)C. add([]int{1, 2})D. add([]int{1, 3, 7}...)
考题
publicclassDemo{publicstaticvoidmain(String[]args){Listal=newArrayList();al.add(1”);al.add(2”);al.add(2”);al.add(3”);System.out.println(al);}}上述程序执行后的输出是哪项?()
A.[1,2,3]B.[1,2,2,3]C.[1,2,3,3]D.[2,1,3,2]
考题
现有publicclassDemo{publicstaticvoidmain(String[]args){Listal=newArrayList();a1.add(l);a1.add(2);a1.add(2);a1.add(3);System.out.println(al);}}上述程序执行后的输出是哪项?()A.[1,2,3]B.[1,2,3,3]C.[1,2,2,3]D.[2,1,3,2]
考题
importjava.util.*;publicclassWrappedString{privateStrings;publicWrappedString(Strings){this.s=s;}publicstaticvoidmain(String[]args){HashSeths=newHashSet();WrappedStringws1=newWrappedString(”aardvark”);WrappedStringws2=newWrappedString(”aardvark”);Strings1=newString(”aardvark”);Strings2=newString(”aardvark”);hs.add(ws1);hs.add(ws2);hs.add(s1);hs.add(s2);System.out.println(hs.size());}}Whatistheresult?()A.0B.1C.2D.3E.4F.Compilationfails.G.Anexceptionisthrownatruntime.
考题
阅读下面代码:import java.awt.*;public class Exam11_1{private Frame. f;private Button b1,b2,b3,b4;public static void main(String args[]{Exam11_1 that = new Exam11 1 ();that.go();}public void go(){______;f.setLayout(new FlowLayout()) ;;b1 = new Button ("Button 1");b2 = new Button ("Button 2");b3 = new Button ("Button 3");b4 = new Button ("Button 4");f.add (b1);f.add (b2);f.add (b3);f.add (b4);f.pack ();f.setVisible (true);}}请在程序中画线处填写正确的语句【 】,以便编译运行程序后得到正确的结果。
考题
分析如下Java代码,编译运行后将输出( )。publicclassTest{publicTest(){}staticvoidprint(ArrayListal){al.add(2);al=newArrayList();al.add(3);al.add(4);}publicstaticvoidmain(String[]args){Testtest=newTest();ArrayListal=newArrayList();al.add(1);print(al);System.out.println(al.get(1));}}A、1B、2C、3D、4
考题
下面这段代码会产生( )个String对象。Strings1="hello";Strings2=s1.substring(2,3);Strings3=s1.toString();Strings4=newStringBuffer(s1).toString();A、1B、2C、3D、4
考题
设数据定义如下: ARRAY DW 1,2,3 执行指令ADD SI,TYPE ARRAY,下面能实现同等功能的指令是( )A.ADD SI,1B.ADD SI,2C.ADD SI,3D.ADD SI,0
考题
下列哪条指令把寄存器R1、R2的值相加后存到R0中.()A、AND R0, R1, R2B、SUB R0, R1, R2C、ADD R0, R1, R2D、AND R1, R2, R0
考题
关于交易所交易资金清算的步骤,排序正确的是()。 (1)制作清算指令; (2)接收交易数据; (3)执行清算指令; (4)确认清算结果。A、(1)(2)(3)(4)B、(2)(1)(3)(4)C、(1)(3)(4)(2)D、(2)(1)(4)(3)
考题
若原代码为1 2 3 4,各位分别乘以权5,3,2,1,以11为模去除乘积之和,把余数作为校验码,则代码为()。A、1 2 3 4 1B、1 2 3 4 2C、1 2 3 4 3D、1 2 3 4 0
考题
现有 public class Demo{ public static void main (String[] args){ List al=new ArrayList(); a1.add("l"); a1.add("2"); a1.add("2"); a1.add("3"); System.out.println (al); } } 上述程序执行后的输出是哪项?() A、 [1,2,3]B、 [1,2,3,3]C、 [1,2,2,3]D、 [2,1,3,2]
考题
Consider the following configuration: /devices/diskP1 is a member of disk group grp1. /devices/diskP2 is a member of disk group grp1. /devices/diskP3 is a member of disk group grp1. /devices/diskP4 is a candidate disk. /devices/diskQ1 is a member of disk group grp2. /devices/diskQ2 is a member of disk group grp2. /devices/diskQ3 is a member of disk group grp2. /devices/diskQ4 is a candidate disk. Which command will add the disk /devices/diskP4 to the disk group, grp1?() A、 ALTER DISKGROUP grp1 ADD DISK ’/devices/diskP1’, ADD DISK ’/devices/diskP4’;B、 ALTER DISKGROUP grp1 ADD DISK ’/devices/disk*4’;C、 ALTER DISKGROUP grp1 ADD DISK ’/devices/diskP*’;D、 ALTER DISKGROUP grp1 ADD DISK ’/devices/diskQ*’, ADD DISK ’/devices/diskP*’;
考题
在添加TCP/IP协议时,需经过以下几步()。(1)打开“网络”图标(2)从“我的电脑”中打开“控制面板”(3)选中“Add(添加)”,选择适配器(4)选中“Add(添加)”,添加TCP/IP协议A、(1)(2)(3)(4)B、(2)(1)(4)(3)C、(3)(4)(1)(2)D、(2)(1)(3)(4)
考题
问答题阅读下面的程序:
.mmregs
DAT0 .SET 60H
DAT1 .SET 61H
DAT2 .SET 62H
DAT3 .SET 63H
add3 .macro
P1,P2,P3,ADDRP
LD P1,A
ADD P2,A
ADD P3,A
STL A,ADDRP
.endm
ST #0034h,DAT0
ST #0243h,DAT1
ST #1230h,DAT2
ADD3 DAT0,DAT1,DAT2,DAT3
语句“.mmregs”的含义。
考题
问答题阅读下面的程序:
.mmregs
DAT0 .SET 60H
DAT1 .SET 61H
DAT2 .SET 62H
DAT3 .SET 63H
add3 .macro
P1,P2,P3,ADDRP
LD P1,A
ADD P2,A
ADD P3,A
STL A,ADDRP
.endm
ST #0034h,DAT0
ST #0243h,DAT1
ST #1230h,DAT2
ADD3 DAT0,DAT1,DAT2,DAT3
语句“ADD3 DAT0,DAT1,DAT2,DAT3”是一条什么类型的语句?作用是什么?
考题
单选题import java.util.*; class KeyMaster { public int i; public KeyMaster(int i) { this.i = i; } public boolean equals(Object o) { return i == ((KeyMaster)o).i; } public int hashCode() { return i; } } public class MapIt { public static void main(String[] args) { Set set = new HashSet(); KeyMaster k1 = new KeyMaster(1); KeyMaster k2 = new KeyMaster(2); set.add(k1); set.add(k1); set.add(k2); set.add(k2); System.out.print(set.size() + “:”); k2.i = 1; System.out.print(set.size() + “:”); set.remove(k1); System.out.print(set.size() + “:”); set.remove(k2); System.out.print(set.size()); } } What is the result?()A
4:4:2:2B
4:4:3:2C
2:2:1:0D
2:2:0:0E
2:1:0:0F
2:2:1:1G
4:3:2:1
考题
填空题LD *AR1+, A || MAC *AR2-, B; Before Instruction After Instruction A 00 0000 0000 A () B 00 0000 1000 B () T 0100 T 0100 AR1 0030 AR1 () AR2 0040 AR2 () Data Memory 0030H 2345 0030H 2345 0040H 5432 0040H 5432
考题
单选题在无转发机制的五段基本流水线(取指、译码/读寄存器、运算、访存、写回寄存器)中,下列指令序列存在数据冒险的指令对是( )。I1:add R1,R2,R3;(R2)+(R3)→R1I2:add R5,R2,R4;(R2)+(R4)→R5I3:add R4,R5,R3;(R5)+(R3)→R4I4:add R5,R2,R6;(R2)+(R6)→R5A
I1和I2B
I2和I3C
I2和I4D
I3和I4
考题
单选题若原代码为1 2 3 4,各位分别乘以权5,3,2,1,以11为模去除乘积之和,把余数作为校验码,则代码为()。A
1 2 3 4 1B
1 2 3 4 2C
1 2 3 4 3D
1 2 3 4 0
考题
单选题现有 public class Demo{ public static void main (String[] args){ List al=new ArrayList(); a1.add("l"); a1.add("2"); a1.add("2"); a1.add("3"); System.out.println (al); } } 上述程序执行后的输出是哪项?()A
[1,2,3]B
[1,2,3,3]C
[1,2,2,3]D
[2,1,3,2]
考题
单选题public class Demo{ public static void main(String[] args){ List al = new ArrayList(); al.add(“1”); al.add(“2”); al.add(“2”); al.add(“3”); System.out.println(al); } } 上述程序执行后的输出是哪项?()A
[1,2,3]B
[1,2,2,3]C
[1,2,3,3]D
[2,1,3,2]
热门标签
最新试卷