readinto(b)
Read up to len(b) bytes into b, and return the number of bytes read. The object b should be a pre-allocated, writable array of bytes, either bytearray or memoryview.
I think answer A should be two separate lines:
data = bytearray (16) => 16 bytes bytearray named 'data'
bf.readinto (data) => read 16 bytes (the length of the byte array) into the bytearray named 'data'
D:
data = bytearray (binfile.read (16)) =>reading 16 bytes form the binary file and putting it in a bytearray called 'data'
A,D are the right answers
This section is not available anymore. Please use the main Exam Page.PCAP Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Ram5678
2 years, 8 months agoJnanada
2 years, 10 months agostuartz
3 years agomacxsz
3 years, 2 months agorocky48
3 years, 4 months agoTheNetworkStudent
3 years, 4 months agowts28
3 years, 4 months agosadako11
3 years, 4 months agodougie_fr3sh
3 years, 6 months agokarans
3 years, 5 months agoluckymuki
3 years, 8 months ago