• 2022-06-06
    What will be the output of the following Python code? [br][/br]['f', 't'][bool('spam')]
    A: t
    B: f
    C: No output
    D: Erro
  • A

    内容

    • 0

      中国大学MOOC: What is the output of the following code?int x=f;printf(%c,A+(x-a+1));

    • 1

      [音频]Listen to the program and identify the following statements true(T) or false(F), then fill in the blanks with T or F.

    • 2

      已知x(t)=[1,0,3]; y(t)=[2,1]; 计算卷积f(t)=x(t)*y(t) A: f(t)=[1,2,3,6] B: f(t)=[2,1,6,3] C: f(t)=[2,0,6] D: f(t)=[3,0,9] E: f(t)=[2,4,1,2]

    • 3

      What will be the output of the following Python code? [br][/br]import re [br][/br]s = 'abc123 xyz666 lmn-11 def77' [br][/br]re.sub(r'\b([a-z]+)(\d+)', r'\2\1:', s) A: abc123 xyz666 lmn-11 def77 B: 77def: lmn-11: 666xyz: 123abc C: abc123:', 'xyz666:', 'lmn-11:', 'def77:’ D: abc123: xyz666: lmn-11: def77

    • 4

      Directions: Listen to the dialogue and decide whether the following statements are True(T) or False(F).[音频]