
Java-前導&運算子
Quiz
•
Computers
•
1st Grade - University
•
Practice Problem
•
Medium
闕河正 闕河正
Used 2+ times
FREE Resource
Enhance your content in a minute
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
Similar Resources on Wayground
10 questions
Python web level 1
Quiz
•
8th Grade
10 questions
Teste python- Unesp-Jaboticabal
Quiz
•
University
10 questions
Concept of Computer Network
Quiz
•
University
10 questions
IF, OR, AND, Left, Right, and Left
Quiz
•
11th Grade
10 questions
E-Tech Lesson 1
Quiz
•
11th Grade
10 questions
Spoljna memorija - HDD
Quiz
•
9th - 11th Grade
10 questions
PRE-ASSESSMENT ETECH M1
Quiz
•
12th Grade
10 questions
Scratch - příkaz opakuj
Quiz
•
5th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
