
Android開發2_基本程式邏輯運算
Quiz
•
Computers
•
2nd Grade
•
Medium

H wm
Used 5+ times
FREE Resource
Enhance your content
27 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
程式語言一般支援算術、關係、邏輯等多種運算子(Operators),而這些運算子會具有優先順序。下列有關於Java或Objective-C運算子的優先順序的排序(由高到低),何者是正確的?
+ == &&
&& == +
== + &&
+ && ==
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple

Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade