How many times would the following loop iterate?

```
Set k = 1
Do
Display k
Set k = k + 1
Until k > 2

```

a. 1
b. 2
c. 3
d. infinite

b. 2

Computer Science & Information Technology

You might also like to view...

A user has installed a new video card. Now when Windows 7 boots, nothing displays on the screen. What WinRE tool should the technician use to solve this problem?

A) Startup Repair B) Device Manager C) Task Manager D) Complete PC Restore

Computer Science & Information Technology

class rectangleType{public:void setLengthWidth(double x, double y);//Postcondition: length = x; width = y;void print() const;//Output length and width;double area();//Calculate and return the area of the rectangle;double perimeter();//Calculate and return the parameter;rectangleType();//Postcondition: length = 0; width = 0;rectangleType(double x, double y);//Postcondition: length = x; width = y;private:     double length;  double width;}; Consider the accompanying class definition, and the object declaration:rectangleType bigRect(14,10); Which of the following statements is correct?

A. bigRect.setLengthWidth(); B. bigRect.setLengthWidth(3.0, 2.0); C. bigRect.length = 2.0; D. bigRect.length = bigRect.width;

Computer Science & Information Technology