logo

Crowdly

Browser

Add to Chrome

In the following program, for variable ‘accept’, what is a correct set of all-us...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

In the following program, for variable ‘accept’, what is a correct set of all-uses paths?

  1. boolean AccClient(int age; gtype gender) {
  2. boolean accept=false;
  3.  if (gender==female & age<85) {
  4.    accept=true;
  5.    return accept; }
  6.  if (gender==male & age<80) {
  7.    accept=true;
  8.    return accept; }
  9.  return accept; }

Note: The numbers on the left are the line numbers (nodes).

0%
0%
100%
0%
More questions like this

Want instant access to all verified answers on moodle.ut.ee?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome