程式語言一般支援算術、關係、邏輯等多種運算子(Operators),而這些運算子會具有優先順序。下列有關於Java或Objective-C運算子的優先順序的排序(由高到低),何者是正確的?

Android開發2_基本程式邏輯運算

Quiz
•
Computers
•
2nd Grade
•
Medium

H wm
Used 5+ times
FREE Resource
27 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
+ == &&
&& == +
== + &&
+ && ==
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
上列Java程式碼的執行結果為何?
*
**
***
****
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
下列Java程式碼執行後,會顯示為多少?
int x = 0; int y = 10; while (x < 5) { y--; ++x; } ; System.out.print(x + "," + y);
5,5
5,6
6,6
6,5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
下列Java程式碼執行後,結果為何?
int a =2; int b =3;
b=(a)+(b++);
System.out.print (b);
5
6
7
8
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
關於以下程式片段,執行後之結果:
int v1 = 100;
double v2,v3;
v2 = v1/3;
v3 = (double)v1/3;
下列敘述何者正確?
v2之值(小數取二位)為33.00 且 v3之值(小數取二位)為33.33
v2之值(小數取二位)為33.33 且 v3之值(小數取二位)為33.33
v2之值(小數取二位)為33.00 且 v3之值(小數取二位)為33.00
v2之值(小數取二位)為33.33 且 v3之值(小數取二位)為33.00
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
下列何者的結果,與其他三個選項不同?
int a = 7, b; b = a++; print b;
int a = 7, b; b = ++a; print b;
int a = 88, b; b = a / 10; print b;
int a = 88, b; b = a % 10; print b;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
關於以下程式片段,執行後之結果: int v1 = 100; int v2 = --v1;
下列敘述何者正確?
v1之值為100 且 v2之值為99
v1之值為99 且 v2之值為100
v1之值為100 且 v2之值為100
v1之值為99 且 v2之值為99
Create a free account and access millions of resources
Similar Resources on Quizizz
30 questions
309資訊安全與健康30題

Quiz
•
1st - 5th Grade
30 questions
310資訊安全與健康30題

Quiz
•
1st - 5th Grade
27 questions
SQL_kartkowka

Quiz
•
1st Grade - University
28 questions
Python по занятиям

Quiz
•
1st - 10th Grade
22 questions
نشاط على vb.net

Quiz
•
1st - 12th Grade
22 questions
VII разред: Python - Pygame

Quiz
•
1st - 12th Grade
22 questions
Roblox01

Quiz
•
1st - 5th Grade
31 questions
二年級網路使用與社會議題

Quiz
•
2nd Grade
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
Discover more resources for Computers
10 questions
Identifying equations

Quiz
•
KG - University
20 questions
Basic Multiplication Facts

Quiz
•
2nd - 3rd Grade
30 questions
Multiplication Facts 1-12

Quiz
•
2nd - 5th Grade
20 questions
Telling Time to 5 Minutes

Quiz
•
2nd Grade
15 questions
Telling Time

Quiz
•
2nd Grade
20 questions
Grammar Review

Quiz
•
2nd Grade
15 questions
Addition and Subtraction with regrouping

Quiz
•
2nd Grade
20 questions
r- controlled vowels review!

Quiz
•
1st - 2nd Grade