NEW
Font size
WorksheetsUnit 1,2, and 3 Review
Total questions: 15
Worksheet time: 12mins
15
(3, 5, 7)
Syntax Error
20
return length(width);
return 2*length+2*width;
return = length*width;
return perimeter;
return
(y2-y1)/(x2-x1);
return
((int)y2-y1)/(x2-x1);
return
(1.0*y2-y1)/(x2-x1);
double return
(y2-y1)/(x2-x1);
I and III
I, II, and III
I and II
II only
1
1.0
4.0
-5
9.0
1
1.0
4
10.0
10
int a, int b, int c
3, 5, 7
triangle
side_a, side_b, side_c
public void prt()
{ System.out
.print(side_a); }
public int prt()
{ return
side_a; }
public prt()
{ System.out
.print(side_a); }
Perimeter rect = new Perimeter();
public void prt(int b)
{ side_b = b; }
public int prt()
{ return
System.out
.print(side_a); }
public prt()
{ System.out
.print(side_a); }
Perimeter rect = new Perimeter();
Which of these could be a constructor method for the Perimeter class?
public void prt()
{ int side_a=0,
side_b=0, side_c=0; }
public int prt()
{ int side_a=0,
side_b=0, side_c=0; }
public prt()
{ int side_a=0,
side_b=0, side_c=0; }
Perimeter rect = new Perimeter();
Which of these could be a CALL to constructor method for the Perimeter class?
public void prt()
{ int side_a=0,
side_b=0, side_c=0; }
public int prt()
{ int side_a=0,
side_b=0, side_c=0; }
public prt()
{ int side_a=0,
side_b=0, side_c=0; }
Perimeter rect = new Perimeter();
4
3
2
1
7.6
6.1
3.5
2.5
3.5
6.1
7.6
2.5
0
1
2
3
