阿摩線上測驗
登入
首頁
>
學士後西醫◆計算機概論與程式設計
>
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
相關試題
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
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
相關試卷
114年 - 114 學士後醫學系招生考試試題:計算機概論與程式設計#137105
2025 年 · #137105
113年 - 113 學士後醫學系招生考試試題:計算機概論與程式設計#119574
2024 年 · #119574
112年 - 112 學士後醫學系招生考試試題:計算機概論與程式設計#137106
2023 年 · #137106
111年 - 111 學士後醫學系招生考試試題:計算機概論與程式設計#137107
2022 年 · #137107
111年 - 111 國立中山大學_學士後醫學系招生考試:計算機概論與程式設計#113521
2022 年 · #113521
111年 - 111 學士後醫學系招生考試:計算機概論與程式設計#107630
2022 年 · #107630
110年 - 110 學士後_醫學系︰計算機概論與程式設計#100246
2021 年 · #100246
109年 - 109 高雄醫學大學_學士後醫學系招生考試:計算機概論與程式設計#86938
2020 年 · #86938