阿摩線上測驗
登入
首頁
>
學士後西醫◆計算機概論與程式設計
>
111年 - 111 國立中山大學_學士後醫學系招生考試:計算機概論與程式設計#113521
> 試題詳解
27. What is the output of the following program?
(A)3
(B)1
(C)2
(D)4
(E)5
答案:
登入後查看
統計:
A(5), B(2), C(0), D(0), E(0) #3081357
詳解 (共 1 筆)
MoAI - 您的AI助手
B1 · 2025/11/14
#7092100
由於你提供的題目中包含了一個圖片,而我無...
(共 800 字,隱藏中)
前往觀看
0
0
其他試題
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
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
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
31. Which of the following network attacks is threatening integrity? (A) Man-in-the-middle (B) Denial of service (C) Packet sniffing (D) Keylogger (E) SYN Nlood attack
#3081361
32. Which of the following is NOT a necessary condition for deadlock? (A) Circular wait (B) Convey effect (C) Hold and wait (D) Mutual exclusion (E) No preemption
#3081362
33. Which one of the following operations is not performed by ALU (Arithmetic/Logic Unit) (A) AND (B) OR (C) Circular shift (D) Jump(E) Addition
#3081363