Notifications
Clear all

Which lines would you use?

1 Posts
1 Users
0 Likes
100 Views
(@benninkcarrol)
Posts: 687
Noble Member
Topic starter
 

You are going to read 16 bytes from a binary file into a bytearray called data .

Which lines would you use?

  • 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))

Show Answer Hide Answer

Suggested Answer: D

Explanation:

https://docs.python.org/3/library/functions.html#func-bytearray https://docs.python.org/3/library/io.html
 
Posted : 23/11/2022 9:11 am
Topic Tags

Latest Python Institute PCAP-31-03 Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: