0%
0 / 15 answered
Calling Procedures Practice Test
•15 QuestionsQuestion
1 / 15
Q1
Consider the following procedure.
PROCEDURE checkEligibility(age, hasLicense)
{
IF (age >= 16 AND hasLicense = true)
{
RETURN("Eligible to drive")
}
ELSE
{
RETURN("Not eligible to drive")
}
}
Which of the following procedure calls will return the string "Eligible to drive"?
Which of the following procedure calls will return the string "Eligible to drive"?
Which of the following procedure calls will return the string "Eligible to drive"?