- 1、本文档共20页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
2014年电大程序设计基础记分作业3答案(国外英文资料)
2014年电大程序设计基础记分作业3答案(国外英文资料)
True or false. (6 questions, 2 on each question) 01
The choice structure is called the branching structure. (is)
is
no
A relatively separate program that can be invoked by other functions, called a function in C. (yes)
is
no
The array element is the basic unit of the array. (is)
is
no
The for statement is almost a circular control structure provided by all advanced languages. (is)
is
no
If the call function is a user-defined function, it is usually necessary to declare the function that is invoked in the main tuning function. (yes)
is
no
The circular structure is called the repeating structure. (yes)
is
no
Single topic selection. (20 questions, 3 minutes per question) 01
The result of the following program is (B)
# include stdio, h
The main ()
{int I = 1, j = 2;
If (I! = j)
Printf ( YES \ n );
The else
Printf ( NO \ n );
}
A.N O
B.Y ES
c.a.
D: none of the above
In C, a pair of parentheses after the if statement is used to determine the expression of the flow of the branch (D).
A. can only use relational expressions
B. Only logical expressions
C. can only use logical expressions or relational expressions
D. You can use any expression
After executing the following segment, the correct result is (B).
Void main ()
{
Int I;
For (I = 1; I 10; I + +)
Printf ( % d, + + I);
}
A. 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
B. Two, four, six, eight, ten,
C. 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
D, 1, 3, 5, 7, 9,
The following program results in: (A)
# include stdio, h
The main ()
{char c = A;
If ( 0 = c = 9 )
Printf ( YES );
The else
Printf ( NO );
}
A.Y ES
B.N O
c.a.
D: none of the above
The result of the following program is (D).
The main ()
{int a = 0;
For (a = 0; a 3; a + +);
Printf ( % d \ n , a);
}
A. 0
1 B.
2 C.
3 D.
The following program is run normally, and when the letter A is entered from the keyboard, the output is (B).
# include stdio, h
The main ()
{char ch;
Ch = getchar ();
The switch (ch)
{case 65:
Printf ( % c , A);
A case of 66:
Printf ( %
文档评论(0)