CodeWritingProblem

CodeWritingProblem

University

5 Qs

quiz-placeholder

Similar activities

Web-II-Loop and Function

Web-II-Loop and Function

University

10 Qs

JS Quiz

JS Quiz

University

10 Qs

Understanding Logic Gates and Truth Tables

Understanding Logic Gates and Truth Tables

10th Grade - University

10 Qs

Fungsi Input dan Output Python

Fungsi Input dan Output Python

2nd Grade - University

10 Qs

Evaluasi Sistem Komputer Kelas X

Evaluasi Sistem Komputer Kelas X

10th Grade - University

10 Qs

Code Blaze - Round -1

Code Blaze - Round -1

University - Professional Development

10 Qs

L5 Python Knowledge Quiz

L5 Python Knowledge Quiz

9th Grade - University

10 Qs

Python

Python

University - Professional Development

10 Qs

CodeWritingProblem

CodeWritingProblem

Assessment

Quiz

Computers

University

Hard

Created by

Maggie Hsu

FREE Resource

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