Question 1 of 10
For limit = 25, what is displayed?
IF (limit = 25)
{
DISPLAY ("exact")
}
ELSE
{
DISPLAY ("other")
}
- A. 25
- B. exactother
- C. exact
- D. other
For limit = 25, what is displayed?
IF (limit = 25)
{
DISPLAY ("exact")
}
ELSE
{
DISPLAY ("other")
}
fuel is 10. What is displayed?
IF (fuel <= 10)
{
DISPLAY ("refuel")
}
ELSE
{
DISPLAY ("ok")
}
Which value of t runs the THEN branch?
IF (t < 0)
{
DISPLAY ("negative")
}
ELSE
{
DISPLAY ("not negative")
}
A ticket scanner uses the segment with tickets = 1. Both messages are plausible for a gate. What is displayed?
IF (tickets > 1)
{
DISPLAY ("group entry")
}
ELSE
{
DISPLAY ("single entry")
}
For height = 48, what is displayed?
IF (height >= 48)
{
DISPLAY ("ride ok")
}
ELSE
{
DISPLAY ("too short")
}
Trace with count = 3.
IF (count > 3)
{
label โ "many"
}
ELSE
{
label โ "few"
}
DISPLAY (label)
minutes is 60. What is displayed?
IF (minutes < 60)
{
DISPLAY ("under an hour")
}
ELSE
{
DISPLAY ("hour or more")
}
Which input displays "high"?
IF (pressure >= 30)
{
DISPLAY ("high")
}
ELSE
{
DISPLAY ("normal")
}
For flag = false, what is displayed?
IF (flag)
{
DISPLAY ("yes")
}
ELSE
{
DISPLAY ("no")
}
Both branches look like valid weather advice. With wind = 20, what is displayed?
IF (wind >= 20)
{
DISPLAY ("secure outdoor items")
}
ELSE
{
DISPLAY ("mild wind")
}