Test06(选择题)

Test06(选择题)

2023年6月24日发(作者:)

Test Bank—Chapter Six (Programming Languages)

Multiple Choice Questions

1. Which of the following is an example of a language that is based on the functional paradigm?

ANSWER: A

2. Which of the following is an example of a language that is based on the object-oriented paradigm?

ANSWER: D

3. Most machine languages are based on the

ANSWER: A

4. Which of the following is not a type of statement found in a typical high-level imperative

programming language?

ANSWER: B

5. Which of the following does not require a Boolean structure?

ANSWER: C

6. Which of the following is not a control statement?

ANSWER: C

A. If-then-else statement

C. Assignment statement

B. While loop statement

D. For loop statement

A. If-then-else statement

C. Assignment statement

B. While loop statement

D. For loop statement

A. Imperative statement

C. Declarative statement

B. Exclamatory statement

D. Comment statement

A. Imperative paradigm

C. Functional paradigm

B. Declarative paradigm

D. Object-oriented paradigm

A. LISP B. PROLOG C. C D. C++

A. LISP B. PROLOG C. C D. C++ 7. Which of the following is not a control statement?

ANSWER: C

8. Which of the following is not a step in the process of translating a program?

ANSWER: A

9. Which of the following is not associated with object-oriented programming?

ANSWER: B

10. Which of the following is not associated with the concept of data type?

ANSWER: C

11. Positions within arrays are identified by means of numbers called

ANSWER: A

12. Which of the following is ignored by a compiler?

ANSWER: D

13. Which of the following is not a possible value of the expression 4 + 6  2 - 1

A. 4 B. 5 C. 6 D. 10

A. Control statements

C. Procedure headers

B. Declarations of constants

D. Comment statements

A. Indices B. Parameters C. Instance variables D. Constants

A. Coercion B. Boolean C. Operator precedence D. Strongly typed language

A. Inheritance B. Resolution C. Encapsulation D. Polymorphism

A. Executing the program

C. Lexical analysis

B. Parsing the program

D. Code generation

A. If-then-else statement

C. Assignment statement

B. While loop statement

D. For loop statement ANSWER: B

14. Which of the following is not a way of referring to a value in a program?

ANSWER: D

15. Which of the following is the scope of a variable?

ANSWER: B

16. Which of the following is a means of nullifying conflicts among data types?

ANSWER: C

17. Which of the following is not constructed by a typical compiler?

ANSWER: A

18. Which of the following is a means of defining similar yet different classes in an object-oriented

program?

ANSWER: A

19. Which of the following is not a parse tree of an expression based on the following grammar?

A. Inheritance B. Parsing C. Coercion D. Code optimization

A. Source code B. Symbol table C. Parse tree D. Object program

A. Inheritance B. Parsing C. Coercion D. Code optimization

A. The number of characters in the variable’s name

B. The portion of the program in which the variable can be accessed

C. The type associated with the variable

D. The structure associated with the variable

A. Variable B. Literal C. Constant D. Type

A. B. C.

ANSWER: C

20. Which of the following statements is not a resolvent of the following clauses?

P OR Q OR R P OR T Q OR T R OR T

A. Q OR R OR T B. T OR P C. P OR R OR

T

ANSWER: B

21. Which of the following can Prolog conclude from the following program?

parent(jill, sue).

parent(jill, sally).

parent(john, sue).

parent(john, sally).

sibling(X, Y) :- parent(Z, X), parent(Z, Y).

A. parent(jill, john) B. sister(sue, sally)

C. sibling(sue, sally) D. sibling(jill, sue)

ANSWER: C

T D. Q OR

发布者:admin,转转请注明出处:http://www.yc00.com/news/1687610024a24431.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信