
Android開發2_基本程式邏輯運算
Quiz
•
Computers
•
2nd Grade
•
Practice Problem
•
Medium
H wm
Used 5+ times
FREE Resource
Enhance your content in a minute
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
Already have an account?
Similar Resources on Wayground
30 questions
Arduino (RU)
Quiz
•
1st - 5th Grade
29 questions
Повторение 9 класс
Quiz
•
1st - 5th Grade
30 questions
Soal Ujian Akhir Semester
Quiz
•
2nd Grade
30 questions
Lặp 1
Quiz
•
1st - 5th Grade
22 questions
Diseño y Desarollo Web 2do BT
Quiz
•
2nd Grade
22 questions
Ismétlés IX.osztály
Quiz
•
1st - 5th Grade
23 questions
Latihan PASA T4 1.4 & 1.5
Quiz
•
1st Grade - Professio...
23 questions
Quizizz Costrutti di selezione semplice e doppia
Quiz
•
2nd Grade
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Computers
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
8 questions
Predictions
Quiz
•
2nd - 4th Grade
20 questions
Thanksgiving
Quiz
•
KG - 12th Grade
18 questions
Thanksgiving 2nd Grade
Quiz
•
2nd Grade
10 questions
Charlie Brown's Thanksgiving Adventures
Interactive video
•
2nd - 5th Grade
