参考答案和解析
正确答案:C
更多“C++ fully supports ______ programming,including the four properties: encapsulation, data h ”相关问题
  • 第1题:

    In ( ) programming, the user determines the sequence of instructions to be executed, not programmer。

    A.structure
    B.event-driven
    C.top-down
    D.data-driven

    答案:B
    解析:
    在事件驱动的程序设计中,由用户而不是程序员来确定指令的执行顺序。

  • 第2题:

    C++ fully supports ( ) programming,including the four properties:encapsulation,data hiding,inheritance,and polymorphism.

    A .computer-oriented
    B .procedure-oriented
    C. object-oriented
    D .aspect-oriented

    答案:C
    解析:
    C++完全支持面向对象程序设计,包括以下4种属性:封装性、数据隐藏、继承性和多态性。

  • 第3题:

    以下四个程序中,完全正确的是()

    A.#include <stdio.h> main(); {/*/ programming /*/ printf("programming!n");}

    B.#include <stdio.h> main() {/* programming */ printf("programming!n"); }

    C.#include <stdio.h> main() {/*/* programming */*/ printf("programming!n"); }

    D.include <stdio.h> main() {/* programming */ printf("programming!n"); }


    B 在选项A中,main()函数后面的分号是错误的,C语言在函数名后而不能有分号。在C语言中注释内容必须放在”/’和”+/”之间,”/”和”*/”必须成对出现,按语法规定在注释之间不可以再嵌套”/∥’和”+/”。在选项C的程序段中注释语句之间有嵌套;所以选项C不正确。C语言用#inc1ude命令行来实现文件包含的功能。#inc1ude命令行的形式为:#inc1ude”文件名”,所以存选项D中inc1ude前面少了一个#符号,因而选项D不正确。

  • 第4题:

    C++ fully supports ( ) programming,including the four properties:encapsulation,data hiding,inheritance,and polymorphism.

    A.computer-oriented
    B.procedure-oriented
    C.object-oriented
    D.aspect-orienteD.

    答案:C
    解析:
    C++完全支持面向对象程序设计,包括以下4种属性:封装性、数据隐藏、继承性和多态性。

  • 第5题:

    C++fully supports( )programming,including the four properties:encapsulation,data hiding,inheritance,and polymorphism.

    A.computer-oriented
    B.procedure-oriented
    C.object-oriented
    D.aspect-oriented

    答案:C
    解析:
    C++完全支持面向对象程序设计,包括以下4种属性:封装,数据隐藏,继承,多态。