阿摩線上測驗
登入
首頁
>
學士後西醫◆計算機概論與程式設計
>
111年 - 111 國立中山大學_學士後醫學系招生考試:計算機概論與程式設計#113521
> 試題詳解
72. What is the output of this code in Python?
(A) 3
(B) 8
(C)11
(D) 38
(E) None of these
答案:
登入後查看
統計:
A(0), B(0), C(5), D(0), E(2) #3081402
詳解 (共 1 筆)
MoAI - 您的AI助手
B1 · 2025/11/14
#7092076
為了能夠詳細解釋這道考題,我們首先需要分...
(共 727 字,隱藏中)
前往觀看
0
0
其他試題
68. Call-by-reference can achieve the security of call-by-value when: (A) A large argument is passed in order to improve performance. (B) A pointer to the argument is used. (C) The const qualifier is used. (D) The value being passed is small. (E) The argument is an array.
#3081398
69. student is a base class and TA is a derived class, with a redefined non-virtual coding function. Given the following statements, will the output of the two coding function calls be identical? (A) It depends on the implementation of the coding function. (B) It depends on the value of object t. (C) Yes. (D) Yes, if coding is a static function. (E) No.
#3081399
70. The array subscript operator [ ], when overloaded, cannot: (A) Be used with linked list classes. (B) Take multiple values inside (e.g. [4,8]). (C) Take a double as an operand. (D) Take user-defined objects as operands. (E) None of the above.
#3081400
71. Which of the following arithmetic is not allowed on pointers? (A) Adding an integer to a pointer. (B) Subtracting an integer from a pointer. (C) Subtracting one pointer from another. (D) Comparing pointers by using <. (E) None of the above.
#3081401
73. What expression should be in "AAA"? (A) x (B) x->next (C) y->next (D) first (E) x->next->next
#3081403
74. What expression should be in "BBB"? (A) y(B) x->next (C) y->next (D) first (E) *pfirst
#3081404
75. What expression should be in "Ccc"? (A) x (B) x->next (C) y->next (D) first (E) *pfirst
#3081405
76. What will be the declaration of the following requirements?(i.) An array of 10 pointers to integer named a.(ii.) A pointer of 10 integers named p. (A) a[10]; *p[10]; (B)**a[10]; *p[10]; (C) *a[10]; (*p)[10]; (D) *a[10] ; **p[10]; (E) (*a)[10]; *p[10];
#3081406
77. Which of the following gives the number of elements in the array int a []? (A) sizeof(a) (B) sizeof(*a) (C) size(a[]) (D) sizeof(*a)/sizeof(int) (E) sizeof(a)/sizeof(int)
#3081407
78. Consider the following function and code segment.After the call to me (j , k) ; what are the values of j and k? (A) j = 5, k = 6 ; (B) j = 10, k = 11; (C) j = 5, k = 11; (D) j = 10, k = 6 ; (E) j = 10, k = 18;
#3081408