阿摩線上測驗
登入
首頁
>
學士後西醫◆計算機概論與程式設計
>
111年 - 111 國立中山大學_學士後醫學系招生考試:計算機概論與程式設計#113521
> 試題詳解
24. Consider an array declaration 「int data [5]=(1,2,3, 4,5) ; in C.What is the value of data[5]?
(A) 0
(B) 5
(C) 6
(D) 12345
(E) None of the above
答案:
登入後查看
統計:
A(0), B(0), C(0), D(1), E(6) #3081354
詳解 (共 1 筆)
MoAI - 您的AI助手
B1 · 2025/11/14
#7092103
1. 題目解析 題目要求我們理解 C ...
(共 1092 字,隱藏中)
前往觀看
0
0
其他試題
20. Which following is the correct way to create a dictionary in Python? (A) students ={'name'=>' alice' ; score' =>60} (B) students = {'name'='alice' ; 'score'=60} (C) students = {' name' : 'alice' ; 'score' : 60 } (D) students = {' name'=>'alice' , score'=>60 }(E) students = {'name' : 'alice' score' : 60 }
#3081350
21. What is the output of this code in Python?(A) [ ] (B) [ 'b' ] (C) [ 'a','b' ] (D) ['b' ,'c','d' , 'e' ] (E) None of these
#3081351
22. What does the following Python program fragment do? (A) Calculate the sum of 1 + 2 + ... +10 (B) Calculate the sum of 1 + 4 + 7 + 10 (C) Calculate the sum of 3 +4 +5+6+ ... +9 (D) Calculate the sum of3 + 4 + 5 + 6 + +10 (E) Calculate the sum of 0 + 2 + 4+ 6+ ... +10
#3081352
23.Which of the following statements about the format specifier for printf () function in C is incorrect? (A) %b is used to print a binary number (B) %d is used to print a decimal number (C) %x is used to print a hexadecimal number (D)%f is used to print a floating number (E) None of the above
#3081353
25. Which of the following C code is used to declare two pointers of integer? (A) int *p,q; (B) int *p, *a; (C) int *(p,q) ; (D) (int *) p,g; (E) None of the above
#3081355
26. Which of the following code could not be used to ignore all remaining characters in the current input line? (A) do {scanf("%c", &ch);} while (ch !='ln'); (B) do {ch = getchar();} while (ch !=' (n') ; (C) while ((ch=getchar())!='In') ; (D) while (getchar()!=' In') ; (E) None of the above.
#3081356
27. What is the output of the following program? (A)3(B)1(C)2(D)4(E)5
#3081357
28. What is the output of this code in python?(A) 2 (B) (C) 6 (D) 12 (E) 24
#3081358
29. What is the output of this code in C++? (A)(B)(C) Derived's constructor called (D)Compile error(E) None of the above
#3081359
30. Assuming that t is an array and tptr is a pointer to that array, which expression refers to the address of element 5 of the array? (A) *(tPtr+5) (B) tptr[5] (C) t+5 (D) *(t+5) (E) &t[5]
#3081360