Search Header Logo

CodeWritingProblem

Authored by Maggie Hsu

Computers

University

CodeWritingProblem
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

MyMath ma = new MyMath();

クラス名とは何ですか?

myMath

MyMath

ma

mymath

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Field f1 = person.getClass().getDeclaredField("name");

int codeOutput = f1.getModifiers();

int expOutput = Modifier.PRIVATE;

=============================

? String name;

? は何ですか。

private

public

protected

static

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

person.setName("John");

引数はいくつありますか。

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

String codeOutput = person.getName();

戻り値の型は何ですか。

int

boolean

double

String

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

@Test

public void testCircleDraw() {

// Create a Circle object

Drawable circle = new Circle();

String codeOutput = circle.draw();

String expOutput = "Drawing a circle";

try {

assertEquals("1:No input case:",expOutput,codeOutput);

} catch (AssertionError ae) {

System.out.println(ae);

}

}

=====================

Circleクラスのメソッド名は何ですか。

circle

Circle()

draw()

Drawable

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?