阿摩線上測驗
登入
首頁
>
學士後西醫◆計算機概論與程式設計
>
111年 - 111 國立中山大學_學士後醫學系招生考試:計算機概論與程式設計#113521
> 試題詳解
19. What is the output of the following statements?
(A) 3456 X
(B)456X
(C)56 X
(D) 456
(E) 45
答案:
登入後查看
統計:
A(0), B(0), C(0), D(0), E(7) #3081349
詳解 (共 1 筆)
李奇騰
B1 · 2023/07/01
#5864503
int x = 3; // 宣告並初始化...
(共 254 字,隱藏中)
前往觀看
0
0
其他試題
15. Which of the following statement about GPU is not true? (A) GPU stands for graphic processor unit (B) GPU is a separate computer and can be more powerful than CPU (C) Modern GPUs are very efficient at manipulating computer graphies and image processing (D) GPU usually has less cores than CPU (E) GPUs are used in embedded systems, personal computers, workstations, and game consoles
#3081345
16. If the function int volume(int x = 1,int y = 1,int z = 1) ; is called by the expression volume (7,8), how many default arguments are used? (A) None. (B) One. (C) Two. (D) Three. (E) It depends on the runtime environment.
#3081346
17. If a=1 .0 , b=6.0 and c=4.0, then what is printed byprintf("%.2f", sqrt(a+b*c)); (A) 25 (B) 5.00 (C) 5 (D) 25.00 (E) 10.00
#3081347
18. Which of the following C code is used to declare a two-dimensional array of integers with 5 rows and3 columns? (A) int data[5,3]; (B) int data[5][3]; (C) int data[5x3]; (D) int data[5] x[3]; (E) None of the above
#3081348
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
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
#3081354
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