Re: [討論] C++小考
※ 引述《ss355227 (前祐)》之銘言:
: 我去考古題區找了一下考古題
: ㄜ 其實我不太確定答案XD
: 有很確定的想分享的也可以來阿!!
: 題目~~
: True/False
: Indicate whether the sentence or statement is true or false.
: 1.Computers are designed to respond to heuristic commands.
電腦是設計成用來回應試誤指令的
應該是要精準的指令吧 這個我也看不太懂..
: 2.Any number of statements using the cin object may be made in a program,but
: only one value may be input using a single cin statement.
任何數字的敘述都可以用cin輸入,但是1個cin只能輸入1個數值
: 3.The use of braces to enclose a set of individual statements creates a single
: block of statements,which may be used anywhere in a C++ program in place of
: a single statement.
brace是指{}吧 就是可以弄成個別的區塊 裡面是個獨立的東西
: 4.In C++ a variable or symbolic constant must be declaed before it is used.
在C++裡面變數要在使用之前宣告(In fact在c 要在最前面宣告 c++是改過的)
: 5.The relationship 3<4 is always true,therefoe the elationship has a value of
: 0.
3<4的關係是正確的 所以這個關係的值是0 (應該是1吧)
1-> true 0-> false
: Multiple Choice
選擇題
: Identify the letter of the choice that best completes the statement or answers
: the question.
: 6.Any expression that is terminated by a ____ becomes a C++ statement.
: (a)colon (b)semicolon (c)curly bracket (d)period
任何敘述用_____結尾的是個C++敘述
(b)分號 terminate是終結的意思 魔鬼終結者就是terminator
火車的終站也叫terminal
: 7.The value of 1.625e3 is ____ .
: (a).001625 (b)162.500 (c)1625 (d)1625000
1.625e3 就是1.625*10^3 按計算機就知道
: 8.Relational expressions are also called ____.
: (a)options (b)choices (c)conditions (d)paths
關係敘述又叫做 狀況 其實我不是很確定XD
: 9.When the ++ operator appears before a variable,it is called a(n) ____
: increment operator.
: (a)leading (b)prefix (c)ordered (d)postfix
++放在變數前面的叫做 prefix pre-就是在..之前的意思 post是在...
之後的意思
: 10.Compile errors are also referred to as ____ errors.
: (a)programming (b)execution (c)syntax (d)punctuation
Compile errors是編譯錯誤 通常是語法有錯 syntax就是語法的意思
另一種叫做runtime errors(=execution errors)
語法沒錯不一定代表邏輯沒錯
邏輯錯會造成執行時的錯誤 就叫做runtime errors
語法錯誤不會造成runtime errors因為在compile的時候就出錯了
: 出題方式好像是題庫隨機抓題??
: 好啦答案就請會的人來說吧XD
: 我大概只確定幾題選擇而已 囧
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.161.71.132
※ 編輯: steve1012 來自: 118.161.71.132 (10/18 22:43)
推
10/18 23:11, , 1F
10/18 23:11, 1F
推
10/18 23:11, , 2F
10/18 23:11, 2F
→
10/18 23:19, , 3F
10/18 23:19, 3F
推
10/19 00:21, , 4F
10/19 00:21, 4F
推
10/19 13:39, , 5F
10/19 13:39, 5F
推
10/19 20:25, , 6F
10/19 20:25, 6F
推
10/19 20:28, , 7F
10/19 20:28, 7F
→
10/19 20:33, , 8F
10/19 20:33, 8F
→
10/19 20:34, , 9F
10/19 20:34, 9F
→
10/19 20:36, , 10F
10/19 20:36, 10F
→
10/19 20:36, , 11F
10/19 20:36, 11F
推
10/19 20:43, , 12F
10/19 20:43, 12F
→
10/19 20:44, , 13F
10/19 20:44, 13F
→
10/19 21:36, , 14F
10/19 21:36, 14F
推
10/19 23:06, , 15F
10/19 23:06, 15F
推
10/19 23:09, , 16F
10/19 23:09, 16F
推
10/19 23:59, , 17F
10/19 23:59, 17F
推
10/20 02:30, , 18F
10/20 02:30, 18F
推
10/20 17:21, , 19F
10/20 17:21, 19F
討論串 (同標題文章)