题目内容

In the following statement about the algorithm, the wrong one is ( ).

A. The algorithm cannot be implemented by computer program
B. The algorithm for solving a problem can be infinite
C. The feasibility of the algorithm means that the instruction cannot be ambiguous
D. All of the above are wrong

查看答案
更多问题

If the system allocates 2 bytes for int type, 1 byte for char type and 8 bytes for double type, then if there are the following statements, the number of bytes in memory occupied by variable ss is ( ). struct s { int m; char c; double d; }ss;

A. 8
B. 1
C. 11
D. 2

A character constant is a character enclosed in double quotes.

The following statement about structured program, ( ) is wrong.

A. Program is the concrete realization of algorithm with some programming language
B. The program can not satisfy the limitation of the algorithm
C. The program has no structure
D. An algorithm can be implemented in many programming languages

Known student records are described as: struct student { int no; char name[20]; char sex; struct { int year; int month; int day; }birth; } struct student s; Suppose that "birthday" in variable s should be "November 11, 1984", and the following correct way to assign "birthday" is ( ).

A. year=1984 month=11; day=11;
B. birth.year=1984; birth.month=11; birth.day=11;
C. s.year=1984; s. month=11; s.day=11;
D. s.birth.year=1984; s.birth.month=11; s.birth.day=11;

答案查题题库