Java-前導&運算子

Java-前導&運算子

1st Grade - University

7 Qs

quiz-placeholder

Similar activities

To Change or Not to Change?

To Change or Not to Change?

12th Grade

10 Qs

Modulo 3. Interconexión de dispositivos

Modulo 3. Interconexión de dispositivos

University

10 Qs

Скорость передачи данных

Скорость передачи данных

7th Grade

10 Qs

Sub bab 2 Pengembangan SI

Sub bab 2 Pengembangan SI

University

10 Qs

Machine Learning (Introduction)

Machine Learning (Introduction)

University

10 Qs

Recuperação PC - 8º Ano - Projeto Pega Pega Digital

Recuperação PC - 8º Ano - Projeto Pega Pega Digital

8th Grade

10 Qs

OCR GCSE CS - 2.1 ERL sorts and searches

OCR GCSE CS - 2.1 ERL sorts and searches

10th - 11th Grade

9 Qs

basic computer design

basic computer design

University

10 Qs

Java-前導&運算子

Java-前導&運算子

Assessment

Quiz

Computers

1st Grade - University

Practice Problem

Medium

Created by

闕河正 闕河正

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

var a = 5;

/*a = a - 2;

a += 1;

*/

a *= 3;

請問上段程式執行完後變數a的值為何?

15

9

12

5

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

java每一段程式的結尾需添加什麼符號

:

>

<

;

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

System.out.printf(3*(2-5)-8)

請問此段程式輸出為何?

1

5

9

15

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

a = 80.3625

請選擇一段程式可正確的輸出80.36

System.out.printf("%.2f\n" , a);

System.out.printf("%.2d\n" , a);

System.out.printf("%2f\n" , a);

System.out.printf("%2d\n" , a);

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

請問下段程式的結果各為何?

A.2.0/3.0

B.2f/3f

C.2/3

A.0.6666666

B.0.6666666

C.0.6666666

A.0.6666666

B.0.6666667

C.0

A.0.6666667

B.0.6666666

C.0

A.0.6666666

B.0.6666667

C.0.6666667

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

int grade = 60;

String point = "成績:"

point += "grade = " + grade;

成績:grade = 60

成績 = 60

成績 = grade

grade = 60

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

int a = 10;

byte b = a * 13;

請問b的值為何?

130

-128

-126

127

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?