Python_Institute
PCAP-31-03 · Question #105
PCAP-31-03 Question #105: Real Exam Question with Answer & Explanation
Sign in or unlock PCAP-31-03 to reveal the answer and full explanation for question #105. The question stem and answer options stay visible for context.
Question
You are going to read 16 bytes from a binary file into a bytearray called data. Which lines would you use? (Select two answers)
Options
- Adata = bytearray (16) bf.readinto (data)
- Bdata = binfile.read (bytearray (16))
- Cbf. readinto (data = bytearray (16))
- Ddata = bytearray (binfile.read (16))
Unlock PCAP-31-03 to see the answer
You've previewed enough free PCAP-31-03 questions. Unlock PCAP-31-03 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.