Cisco Certified DevNet Questions And Answers With Verified Solutions
1. When parsing a text file, what determines the end of a line? A. Return code B. Nothing; Python sees it as on big string C. n or as EoF (end of file). D. All of the above - C. n or as EoF (end of file). 10. Which class is inherited as part of a unit test? A. ase B. unittest.TestCase C. unittest D. TestCase - B. unittest.TestCase 2. What syntax would you use to open a text file to be written to? A. data = open("", "w") B. data = load("", "w") C. load("", "w") D. open("", "w") - A. data = open("", "w") 3. Which of the following do you use to write to CSV file in Python? A. with open("", "a") as filehandle: csv_writer = (filehandle) csv_row(data) B.with open("", "a") as filehandle: csv_row(data) C. with open("", "a") as filehandle: csv_writer = r(filehandle) csv_row(data) D. with open("", "a") as filehandle: csv_writer = r(f) csv_row(data) - C. with open("", "a") as filehandle: csv_writer = r(filehandle) csv_row(data) 4. Which module is imported and read XML data? A. xmlmB. xmltodict C. XMLParse D. None of the above - B. xmltodict 5. Which methods are used for converting a native JSON file to Python and then back to JSON? (Choose two) A. load() and dump() B. loads() and dump() C. loads() and dumps() D. load() and dumps() - A. load() and dump(), C. loads() and dumps() 6. What does YAML stand for? A. Yet Another Markup Language B. YAML Ain't Markup Language C. The name of its creator D. None of the above - B. YAML Ain't Markup Language
Written for
- Institution
- Cisco Certified DevNet
- Course
- Cisco Certified DevNet
Document information
- Uploaded on
- July 14, 2024
- Number of pages
- 3
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
Also available in package deal