A template is a file containing professionally designed content that you can easily replace with your own.

Answer the following statement true (T) or false (F)


True

Computer Science & Information Technology

You might also like to view...

What does the following code do? The first code listing contains the declaration of class Shape. Each Shape object represents a closed shape with a number of sides (a closed shape must have three or more sides). The second code listing contains a method (mystery) declared by a client of class Shape. What does this method do?

``` 1 public class Shape 2 { 3 // integer for storing number of sides 4 private int sides; 5 6 // Shape constructor, number of sides supplied 7 public Shape( int numSides ) 8 { 9 setSides( numSides ); 10 11 } // end constructor 12 13 // return sides value 14 public int getSides() 15 { 16 return sides; 17 18 } // end method getSides 19 20 // set sides value 21 public void setSides( int numSides ) 22 { 23 if ( numSides > 2 ) 24 { 25 sides = numSides; 26 } 27 else // set invalid input to 0 28 { 29 sides = 0; 30 } 31 32 } // end method setSides 33 34 } // end class Shape ``` ``` 1 public String mystery( Shape shape) 2 { 3 String shapeText; 4 5 // switch with number of shape’s sides 6 switch ( shape.getSides() ) 7 { 8 case 3: 9 shapeText = "Triangle"; 10 break; 11 12 case 4: 13 shapeText = "Quadrilateral"; 14 break; 15 16 default: 17 shapeText = "Other polygon"; 18 19 } // end switch 20 21 return shapeText; 22 23 } // end method mystery ```

Computer Science & Information Technology

What would be displayed using this statement?

Assume you have a queue object named “line” that uses string objects, and it is holding “Mary”, “Kathleen”, and “Barbara” in this queue. Assume all includes are correct. cout << line.size() A. Mary Kathleen Barbara B. True C. 3 D. You would get an error.

Computer Science & Information Technology

When you relate tables, Access uses a set of rules to ensure that there are matching values in the common field used to form the relationship, both at the time you create the relationship and as you enter data in the tables after you create the relationship. This set of rules is called ____.

A. referential integrity B. security rules C. match conditions D. field rules

Computer Science & Information Technology

Starting or restarting a computer is called tasking the system.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology