Python Institute Certified Associate in Python Programming PCAP-31-03 Question # 14 Topic 2 Discussion

Python Institute Certified Associate in Python Programming PCAP-31-03 Question # 14 Topic 2 Discussion

PCAP-31-03 Exam Topic 2 Question 14 Discussion:
Question #: 14
Topic #: 2

You are going to read 16 bytes from a binary file into a bytearray called data. Which lines would you use? (Select two answers)


A.

data = bytearray (16) bf.readinto (data)


B.

data = binfile.read (bytearray (16))


C.

bf. readinto (data = bytearray (16))


D.

data = bytearray (binfile.read (16))


Get Premium PCAP-31-03 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.