Static, Non-static and final fields and methods

Static, Non-static and final fields and methods

11th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Week 8

Week 8

12th Grade

13 Qs

Java Review Classes

Java Review Classes

11th Grade

10 Qs

NISD CS AP Exam Prep

NISD CS AP Exam Prep

10th - 12th Grade

12 Qs

PBO Quis With Joe Ggp

PBO Quis With Joe Ggp

11th Grade

10 Qs

OOPS in Python

OOPS in Python

12th Grade

10 Qs

5.0 Fast and Curious Networking

5.0 Fast and Curious Networking

12th Grade

11 Qs

Routing Static

Routing Static

12th Grade

10 Qs

Network Connectivity

Network Connectivity

12th Grade

6 Qs

Static, Non-static and final fields and methods

Static, Non-static and final fields and methods

Assessment

Quiz

Computers

11th - 12th Grade

Medium

Created by

Claire Firman

Used 18+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To declare a field as a constant, use:

final

static

constant

neva-change

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a class diagram, how do you know which fields are static?

Underlined

Bold

Italics

They are marked "static"

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Non-static methods can use static fields

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Static methods can use non-static fields

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Static methods can use static fields

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Non-static methods can use non-static fields

True

False

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Name two static fields of the Math class

Math.PI

Math.E

Math.POW

Math.random()

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?