
Computer Science - Buffer Overflows & Runtime Checks Worksheet
Authored by Sini Thomas
Computers
University
5 covered

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A program asks a user to type a 20-character username. What is the main purpose of the buffer the program reserves?
Tags
5.5.D
5.5.D.1
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a buffer overflow, what usually causes the problem?
Tags
5.5.D
5.5.D.1
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A developer expects a 4-digit PIN. Which design choice best matches 5.5.D.1?
Tags
5.5.D
5.5.D.1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement best describes a buffer in an application?
Tags
5.5.D
5.5.D.1
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A program expects an email address, but it allocates a buffer sized for only 10 characters. What risk does this create?
Tags
5.5.D
5.5.D.1
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why does the program choose the number of memory segments in a buffer?
Tags
5.5.D
5.5.D.1
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A text box should accept up to 200 characters. Which buffer design is safest?
Tags
5.5.D
5.5.D.1
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?