作者steve1012 (steve)
看板NTUBIME103HW
标题Re: [讨论] C++小考
时间Mon Oct 18 22:42:58 2010
※ 引述《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)
1F:推 ss355227:cin 好像可以一次输入多个数值 10/18 23:11
2F:推 ss355227:cin>>a>>b>>c 之类的 10/18 23:11
3F:→ sky2857:but要用空白或enter区隔 10/18 23:19
4F:推 sky2857:欸版主可以改版标吧>>[C++][普物][工图]这样吧 10/19 00:21
5F:推 randysuen:维峻真神人 这是去年考古吗?? 10/19 13:39
6F:推 yangwen5301:1.第一题的答案是algorithm commands 10/19 20:25
7F:推 yangwen5301:2.第二题的cin输入数值取决於後面使用者所决定的值量 10/19 20:28
8F:→ yangwen5301:3.Relational Expressions是数学的关系式 10/19 20:33
9F:→ yangwen5301: 与condition"条件"较为相近 10/19 20:34
10F:→ yangwen5301:brace可以确保包含在内的运算式指受其母指令控制 10/19 20:36
11F:→ yangwen5301:也使得母指令可以控制道除了本身底下第一行以外的指令 10/19 20:36
12F:推 yangwen5301:补充一下第一题,computer是拿来compute的 10/19 20:43
13F:→ yangwen5301:所以是拿来算数学(algorithm)的机器 10/19 20:44
14F:→ steve1012:叫freezing ice改..我不会弄== 10/19 21:36
15F:推 sky2857:阿好我说的是文章种类不是版标~ 10/19 23:06
16F:推 freezingice:DONE 10/19 23:09
17F:推 sky2857:欸欸不只阿多加几个~~((虽然可以自己调~ 10/19 23:59
18F:推 freezingice:要哪几个说一说阿= = 10/20 02:30
19F:推 sky2857:哈哈来投票/你自己决定八你版主欸XD 10/20 17:21