nerdexam
CiscoCisco

200-901 · Question #17

200-901 Question #17: Real Exam Question with Answer & Explanation

Sign in or unlock 200-901 to reveal the answer and full explanation for question #17. The question stem and answer options stay visible for context.

Software Development and Design

Question

A function my_func() returns True when it executes normally. Which Python snippet tests my_func()? A. B. C. D.

Options

  • Adef test_func(self): self.assertTrue(my_func())
  • Bdef test_func(self): self.assertFalse(my_func())
  • Cdef test_func(self): self.assertEqual(my_func, '{true}')
  • Ddef test_func(self): self.assertRaises(my_func())

Unlock 200-901 to see the answer

You've previewed enough free 200-901 questions. Unlock 200-901 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Python#Function testing#Unit testing basics#Conditional statements
Full 200-901 PracticeBrowse All 200-901 Questions