CompTIA
CAS-002 · Question #788
CAS-002 Question #788: Real Exam Question with Answer & Explanation
Sign in or unlock CAS-002 to reveal the answer and full explanation for question #788. The question stem and answer options stay visible for context.
Question
A web developer is responsible for a simple web application that books holiday accommodations. The front-facing web server offers an HTML form, which asks for a user's age. This input gets placed into a signed integer variable and is then checked to ensure that the user is in the adult age range. Users have reported that the website is not functioning correctly. The web developer has inspected log files and sees that a very large number (in the billions) was submitted just before the issue started occurring. Which of the following is the MOST likely situation that has occurred?
Options
- AThe age variable stored the large number and filled up disk space which stopped the application
- BThe age variable has had an integer overflow and was assigned a very small negative number
- CComputers are able to store numbers well above "billions" in size.
- DThe application has crashed because a very large integer has lead to a "divide by zero".
Unlock CAS-002 to see the answer
You've previewed enough free CAS-002 questions. Unlock CAS-002 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.