PreAP Computer Science- 6.4-9 Quiz

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

.html

An applet is a Java program that is designed to execute inside a web page. In order for this to work, you need a _____ file.

Paint

Applets do not have the main method. What do they have instead?

Whenever you create an applet in jGRASP, it creates the necessary HTML file for you.

Consider programs ExpoMethods01.java and ExpoMethods02.java. These are applets. How were we able to execute these programs from jGRASP without the special file mentioned in question

Yes

Does the order of the parameters matter?

Pixels

Graphics images are not solid picture, but images created with hundreds or thousands of colored dots. What are these individual graphics dots called?

You have two radii; horizontal radius, vertical radius

How is an oval different from a circle?

36

How many colors are built into the Expo class?

Applet Viewer

IDEs like jGRASP and jCreator have the ability to execute applets using a special program called ____________, which is part of the JDK.

fillArc

If you want to draw PAC-MAN, what method would you use?

fillRectangle, fillCircle, fillOval

If you want to draw solid rectangles, circles and ovals what methods would you use?

In the same folder/directory as the .java file that calls the Expo class methods

In order to use the Expo class, the file Expo.java must be located where?

g

In the Expo class, what is the first parameter of any method that does anything graphical?

No

Is the Expo class part of the Java programming language?

They represent the upper-left-hand coordinate (X1,Y1) and the lower-right-hand coordinate (X2,Y2)

Like drawLine, drawRectangle requires that you also specify 2 coordinate points. What do they represent?

(0,0) coordinate is located in the top-left-hand corner of the graphics window in CGS; Y coordinate values begave differently in CGS- increase from top down to bottom

List 2 differences between a Cartesian graph and a computer graphics screen.

Starting degree value, stopping degree value

The first 5 parameters of drawArc are identical to drawOval. drawArc adds 2 more parameters at the end. What do these 2 parameters specify?

The first two integers represent the starting coordinate while the last two specify the ending coordinate.

The parameters of drawLine include 4 int value which are for 2 coordinate points. In terms of drawing the line, what do these points represent?

Awt, applet libraries

What 2 libraries must be imported in order for graphics applets to work?

setColor

What Expo method lets you change colors?

Hyper Text Markup Language

What does .html stand for?

Abstract Windows Tools

What does awt stand for?

Expo.html

What file contains reference information for the Expo class?

The small shape will not be visible

What happens when a small shape is drawn on top of large shape that is the same color?

an oval

What is an arc a piece of?

Black

What is the default drawing color?

drawPixel only draws one pixel, while drawPoint draws a 3 by 3 "square" of 9 pixels

What is the difference between drawPixel and drawPoint?

A set of points in a plane that are equidistant from a given point.

What is the mathematical definition of a circle?

The information about the location or coordinates for the picture.

What is the minimum requirement of any call to a graphics method?

Cartesian Coordinate System

What is the name of the coordinate system that has 4 quadrants and the point (0,0) in the center?

The distance from the center of the circle to any point on the edge of the circle itself

What is the radius of a circle?

Main

What method is always found in an application?

g, X coordinate of center, Y coordinate of center, radius

What parameters are necessary for drawCircle?

The X and Y value of the pixel/point

What parameters are required by both drawPixel and drawPoint?

Circle

When using drawOval, what will the output look like if the horizontal radius is equal to the vertical radius?

Short, fat oval

When using drawOval, what will the output look like if the horizontal radius is greater than the vertical radius?

Tall, thin oval

When using drawOval, what will the output look like if the horizontal radius is less than the vertical radius?

Many browsers no longer execute Java applets for security reasons

When you try to execute a Java applet in a web browser, it may still be blocked, even if you "Allow" it. Why is that?

drawPixel, drawPoint, drawLine

Which 3 draw methods do not have corresponding fill methods?

Graphics

Which type of method has more parameters: Math methods or graphics methods?

it is automatically erased

what happens to the file (something .html) when jgrasp is closed?


Kaugnay na mga set ng pag-aaral

MacroEconomics; Exam Four; Chapters 25-28

View Set

NURB 3030 Nursing as a Profession Exam 1

View Set

NUR 222 Multiple Choice Questions

View Set

Peds - Ch 21: Alteration in Urinary Elimination/Genitourinary Disorder

View Set

Chapter 55: Management of Patients With Urinary Disorders

View Set

Week 2 - Chap 12 Cognitive Interventions

View Set