
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
程式語言一般支援算術、關係、邏輯等多種運算子(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
Similar Resources on Wayground
27 questions
二年級模進

Quiz
•
2nd Grade
24 questions
Google認識知多少

Quiz
•
1st - 5th Grade
24 questions
Sains Komputer t4: Tatasusunan & Subaturcara

Quiz
•
1st - 10th Grade
25 questions
DSPS-P1

Quiz
•
1st - 5th Grade
27 questions
SQL_kartkowka

Quiz
•
1st Grade - University
25 questions
109統測專一計算機概論

Quiz
•
2nd Grade
25 questions
勇闖魔鬼域

Quiz
•
2nd Grade
28 questions
模組化程式設計

Quiz
•
2nd Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade