• 2022-05-31
    在按键中断实验中,轻触键key0,key1,key2和key3分别与pio[0],pio[1],pio[2]和pio[3]相连,即key0接pio的低位,key3接pio的高位。已知按下轻触键,key=0;不按下,key=1。如果key3按下,执行以下语句后,变量edge__value的值是()
    edge__value =IORD__AVALON__EDGE_CAP(__);
    A: edge_capture_value=0x1;
    B: edge_capture_value=0x2;
    C: edge_capture_value=0x4;
    D: edge_capture_value=0x8;
  • A,A,A,B,D

    内容

    • 0

      在JSON字符串中,Object结构是( )。 A: key , value B: {key:value,key:value...} C: Key D: value

    • 1

      HashMap中的put()方法参数是() A: put(value,key) B: put(key,key) C: put(key,value) D: put(key,key)

    • 2

      中国大学MOOC: 以下Pair泛型类public class Pair<K, V> { public Pair(K key, V value) { this.key = key; this.value = value; } public K getKey(); { return key; } public V getValue(); { return value; } public void setKey(K key) { this.key = key; } public void setValue(V value) { this.value = value; } private K key; private V value;}经过类型擦除后,变成以下类public class Pair { public Pair(Object key, Object value) { this.key = key; this.value = value; } public Object getKey() { return key; } public Object getValue() { return value; } public void setKey(Object key) { this.key = key; } public void setValue(Object value) { this.value = value; } private Object key; private Object value;}

    • 3

      下列表达正确的是( )。 A: if(key=0)‍ B: if(key==0) C: for(key=0) D: while(key=0);

    • 4

      以下哪遍历字典、依次输出所有键值对里的值的方式是不对的: A: for key in dict: print(dict[key]) B: for key in dict.keys(): print(dict[key]) C: for key,value in dict.items(): print(value) D: for value in dict: print(value)