程式語言支援函式(Functions)或方法(Methods)。關於使用函式或方法的優點,下列敘述何者不正確?

Android開發1_物件導向

Quiz
•
Computers
•
1st Grade
•
Medium

H wm
Used 8+ times
FREE Resource
39 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
簡化程式複雜度
避免程式碼重複
增加程式可重用性
加快程式執行速度
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
程式語言會使用「變數」來暫存資料,其中「區域變數」(Local Variables)具有特定限制與特性,有關於Java的「區域變數」,下列敘述何者不正確?
在程式的方法(Methods)內宣告的變數稱為區域變數
區域變數的有效範圍僅限於宣告該變數的方法內
在程式的方法定義中宣告的輸入參數(Parameters)也屬於該方法的區域變數
方法內宣告的區域變數可以和宣告的輸入參數同名
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
撰寫程式時應該善用「註解」(Comments)以增進程式的可讀性。下列何者是Java或Objective-C的常用註解符號?
\\
#
/* */
--
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
關於堆疊(Stack)的特性,下列敘述何者正確?
後進先出
後進後出
先進先出
以上皆是
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
下列何者為編譯式程式語言?
Javascript
Perl
Java
PHP
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
為了提高程式維護性,下列哪一種流程控制不建議使用?
if else
goto
switch case
block
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
使用下列何種流程控制時,最需注意別陷入無窮迴圈的情況?
while
if-else
switch
try-catch
Create a free account and access millions of resources
Similar Resources on Quizizz
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
10 questions
American Flag

Quiz
•
1st - 2nd Grade
10 questions
Identifying equations

Quiz
•
KG - University
25 questions
2.4A Add Subtract within 20 quickly: set 3

Quiz
•
1st - 3rd Grade
15 questions
Music 2016

Quiz
•
KG - 12th Grade
12 questions
Summer Trivia

Quiz
•
1st - 5th Grade
44 questions
logos

Quiz
•
KG - University
20 questions
Guess that Disney

Quiz
•
KG - 5th Grade
20 questions
Cartoon Characters!

Quiz
•
KG - 5th Grade