Examlex
Look at the following applet code:
1 import javax.swing.*;
2 import java.awt.*;
3 public class GraphicsTest extends JApplet
4 {
5 public void init()
6 {
7 getContentPane() .setBackground(Color.WHITE) ;
8 }
9 public void paint(Graphics g)
10 {
11 int[] xCoords = {20, 20, 60, 100, 140, 140, 100, 60};
12 int[] ycoords = {20, 100, 140, 140, 100, 60, 20, 20};
13 super.paint(g) ;
14 g.setColor(Color.YELLOW) ;
15 g.fillPolygon(xCoords, yCoords, 8) ;
16 g.setColor(color.BLACK) ;
17 g.setFont(new Font("SansSerif", Font.BOLD, 35) ) ;
18 g.drawString("SLOW", 35, 95) ;
19 }
20 }
What is the color of the polygon?
Shaw V. Reno
A landmark United States Supreme Court case that addressed the issue of racial gerrymandering and set important precedents for redistricting based on race.
Freedom Rides
Activist campaigns in which individuals rode interstate buses into segregated southern United States in 1961 to challenge the non-enforcement of Supreme Court rulings declaring segregated buses unconstitutional.
Sit-ins
A form of protest where individuals occupy a space, refusing to move until their demands are met, famously used during the civil rights movement to desegregate facilities.
Civil Rights Movement
A pivotal movement during the 1950s and 1960s in the United States, aimed at ending racial segregation and discrimination against African Americans and securing legal recognition and federal protection of the citizenship rights enumerated in the Constitution and federal law.
Q4: When an array is passed to a
Q18: How many times will the following for
Q22: Colons are used to indicate the end
Q28: If a user enters a value in
Q30: Which of the following cannot be used
Q37: Two general categories of methods are void
Q37: Once you have created a GUI with
Q38: Because the && operator performs short-circuit evaluation,
Q43: In the method header, the method modifier
Q47: This is a special type of expression