Test06(选择题)

更新时间:2023-07-27 06:27:13 阅读: 评论:0

Test Bank—Chapter Six (Programming Languages)
新西兰高中留学费用
Multiple Choice Questions

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

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

ANSWER:  A

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

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

ANSWER:  D

3. Most machine languages are bad on the


    A. Imperative paradigm        B. Declarative paradigm
    C. Functional paradigm        D. Object-oriented paradigm

ANSWER: A

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

    A. Imperative statement        B. Exclamatory statement
    C. Declarative statement        D. Comment statement

ANSWER: B

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

    A. If-then-el statement        B. While loop statement
4级高频词汇
    C. Assignment statement        D. For loop statement

ANSWER: C

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

    A. If-then-el statement        B. While loop statement
    C. Assignment statement        D. For loop statement

ANSWER: C
trw
7. Which of the following is not a control statement?

    A. If-then-el statement        B. While loop statement
    C. Assignment statement        D. For loop statement
i pad
ANSWER: C


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

    A. Executing the program        B. Parsing the programnegro怎么读
    C. Lexical analysis        D. Code generation

ANSWER: A

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

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

ANSWER: B

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

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


ANSWER: C

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

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

ANSWER: A

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

    A. Control statements        B. Declarations of constants
    C. Procedure headers        D. Comment statements

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

ANSWER: B

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

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

ANSWER: D

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

    A. The number of characters in the variable’s name
    B. The portion of the program in which the variable can be accesd
    C. The type associated with the variable
    D. The structure associated with the variable


ANSWER: B

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

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

ANSWER: C

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

    A. Source code    B. Symbol table    C. Par tree    D. Object program
ccit
ANSWER: A

18. Which of the following is a means of defining similar yet different class in an object-oriented program?elysium


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

ANSWER: A

19. Which of the following is not a par tree of an expression bad on the following grammar?

           

    A.                      B.              C.
                               

ANSWER: C

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

    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    D.  Q  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).
grand marnier    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


本文发布于:2023-07-27 06:27:13,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/90/190071.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:费用   考试   项目   留学   时间   翻译
相关文章
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图