Java Quiz 1

Java Quiz 1

7th Grade

20 Qs

quiz-placeholder

Similar activities

SCRATCH QUIZ

SCRATCH QUIZ

6th - 8th Grade

15 Qs

Serif Draw Plus

Serif Draw Plus

4th - 9th Grade

15 Qs

IT Quiz for Grade 7 Students

IT Quiz for Grade 7 Students

7th Grade

15 Qs

User Interfaces

User Interfaces

7th Grade

17 Qs

Javascript Basics Test

Javascript Basics Test

7th - 12th Grade

20 Qs

Technology Coding

Technology Coding

2nd - 8th Grade

18 Qs

Computer Peripherals (Input and Output)

Computer Peripherals (Input and Output)

7th - 9th Grade

15 Qs

Computer Parts

Computer Parts

7th - 9th Grade

20 Qs

Java Quiz 1

Java Quiz 1

Assessment

Quiz

Computers

7th Grade

Easy

Created by

Aldo Chapa

Used 11+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt


What is a function in Java?

A piece of code that performs a specific task and can be reused throughout a program.

A variable that stores data temporarily.

A graphical user interface element like buttons or text fields.

A way to organize files and folders in a Java project.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in Java?

A type of loop used for iterating through arrays.

A piece of code that defines a specific task to be executed.

A placeholder used to store data that can change during the execution of a program.

A method used to print output to the console.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does an ellipse do in Java ?

It creates a line connecting two points.

It draws a circle with a specified radius.

It draws an oval or a circle at a specified position and size.

It fills the background of a graphical window with a specified color.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a 400 x 400 grid space in Java, where would you place the center of an ellipse to position it at the center of the grid?

(400, 400)

(200, 200)

(0, 0)

(300, 300)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the rect() function do in Java?

It draws a circle at a specified position and size.

It fills the background of a graphical window with a specified color.

It creates a line connecting two points.

It draws a rectangle at a specified position and size.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Java graphics, what do the third and fourth parameters represent in the rect() and ellipse() functions?

They determine the width and height of the shape.

They specify the starting position of the shape.

They set the color of the shape.

They control the rotation and angle of the shape.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What do the first and second parameters represent in the rect() and ellipse() functions in Java graphics?

They determine the width and height of the shape.

They specify the starting position of the shape.

They set the color of the shape.

They control the rotation and angle of the shape.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?