Consider the code segment below:
```
int xValues[] = {100, 150, 200, 100};
int yValues[] = {30, 130, 30, 30};
g.drawPolyline(xValues, yValues, 4); ```
What kind of figure does it draw?
a. A rectangle.
b. A triangle.
c. A V with its corner at the top.
d. A square.
B
You might also like to view...
Each standard library has a corresponding:
a. Function. b. Variable type. c. Header. d. CD-ROM.
The binary tree traversal operations are different than the ones for binary trees.
Answer the following statement true (T) or false (F)
JAXB’s static method ________ serialize objects as XML.
a. toXML b. serialize c. marshal d. None of the above
The Election interface provides two remote methods:
vote: with two parameters through which the client supplies the name of a candidate (a string) and the ‘voter’s number’ (an integer used to ensure each user votes once only). The voter’s numbers are allocated sparsely from the range of integers to make them hard to guess. result: with two parameters through which the server supplies the client with the name of a candidate and the number of votes for that candidate. Which of the parameters of these two procedures are input and which are output parameters?