nerdexam
Python_Institute

PCAP-31-03 · Question #65

Assuming that the following snippet has been successfully executed, which of the equations are False? (Select two answers)

The correct answer is C. a[0] = b[0] D. b[0] - 1 == a[0]. >>> print(len(a)==len(b)) >>> print(a[0]-1==b[0]) >>> print(a[0]==b[0]) >>> print(b[0]-1 == a[0])

Technology and architecture

Question

Assuming that the following snippet has been successfully executed, which of the equations are False? (Select two answers)

Options

  • Alen(a)== len (b)
  • Ba [0]-1 ==b [0]
  • Ca[0] = b[0]
  • Db[0] - 1 == a[0]

How the community answered

(23 responses)
  • A
    4% (1)
  • B
    13% (3)
  • C
    83% (19)

Explanation

print(len(a)==len(b)) >>> print(a[0]-1==b[0]) >>> print(a[0]==b[0]) >>> print(b[0]-1 == a[0])

Topics

#Python lists#list operations#false conditions#equality comparison

Community Discussion

No community discussion yet for this question.

Full PCAP-31-03 Practice