C++question bank英文题库

更新时间:2023-05-19 16:03:27 阅读: 评论:0

1.   
Which of the following type of class allows only one object of it to be created?
A.    Virtual class
B.    Abstract class
翻译中国C.    Singleton class
D.    Friend class
2.   
Which of the following is not a type of constructor?
A.    Copy constructor
B.    Friend constructor
C.    Default constructor
D.    Parameterized constructor
3.   
Which of the following statements is correct?
A.    Ba class pointer cannot point to derived class.
B.    Derived class pointer cannot point to ba class.
C.    Pointer to derived class cannot be created.
D.    Pointer to ba class cannot be created.
4.   
Which of the following is not the member of class?
A.    Static function
B.    Friend function
C.    Const function
D.    Virtual function
5.   
板锤Which of the following concepts means determining at runtime what method to invoke?
A.    Data hiding
B.    Dynamic Typing
C.    Dynamic binding
翻译价格D.    Dynamic loading
Dynamic means Runtime. Whereas static means Compile time.
Binding can be defined as the association between (link) function call to a function definition.
Dynamic binding means. The association (link) of function call to a function definition during runtime.
6.   
Which of the following term is ud for a function defined inside a class?
A.    Member Variable
B.    Member function生日快乐英语怎么说happy birthday
C.    Class function
D.    Classic function
A member function can be defined inside or outside of a class. if defined inside it becomes inline. for function defined outside it us scope resolution operator :: and it's class name.
7.   
danielle graham
Which of the following concept of oops allows compiler to inrt arguments in a function call if it is not specified?
A.    Call by value
B.    Call by reference
C.    Default arguments
D.    Call by pointer
8.   
How many instances of an abstract class can be created?
A.    1
B.    5
wps是什么意思
C.    13
D.    0
9.   
Which of the following cannot be friend?
A.    Function
B.    Class
C.    Object
D.    Operator function
10.   
Which of the following concepts of OOPS means exposing only necessary information to client?
grossweightA.    Encapsulation
B.    Abstraction
C.    Data hiding
D.    Data binding
Data Encapsulation : It is the process of binding of the data and functions together as a single unit.
Data Abstraction : It is the process of exposing only the interfaces and hiding the other details from the ur.
11.   
Why reference is not same as a pointer?
A.    A reference can never be null.
洒脱的英文B.    A reference once established cannot be changed.
C.    Reference doesn't need an explicit dereferencing mechanism.
D.    All of the above.
12.   
cout is a/an __________ .
A.    operator
B.    function
C.    object
D.    Macro
13.   
Which of the following concepts provides facility of using object of one class inside another class?
A.    Encapsulation
B.    Abstraction
C.    Composition
清洁工英文D.    Inheritance
14.   
How many types of polymorphisms are supported by C++?
A.    1
B.    2
C.    3
D.    4
The two main types of polymorphism are run-time (implemented as inheritance and virtual functions), and compile-time (implemented as templates).
15.   
Which of the following is an abstract data type?
A.    int
B.    double
C.    string
D.    Class
16.    
Which of the following concepts means adding new components to a program as it runs?
A.    Data hiding
B.    Dynamic typing
C.    Dynamic binding
D.    Dynamic loading
17.   
Which of the following statement is correct?
A.    A constructor is called at the time of declaration of an object.
B.    A constructor is called at the time of u of an object.
C.    A constructor is called at the time of declaration of a class.
D.    A constructor is called at the time of u of a class.
18.   
Which of the following correctly describes overloading of functions?
A.    Virtual polymorphism
B.    Transient polymorphism
C.    Ad-hoc polymorphism
D.    Pudo polymorphism
19.   
Which of the following approach is adapted by C++?
A.    Top-down
B.    Bottom-up
C.    Right-left
D.    Left-right
20.   
Which of the following is correct about function overloading?
A.    The types of arguments are different.
B.    The order of argument is different.
C.    The number of argument is same.
D.    Both A and B.
21.   
Which of the following is correct about class and structure?
A.    class can have member functions while structure cannot.
B.    class data members are public by default while that of structure are private.
C.    Pointer to structure or class cannot be declared.
D.    class data members are private by default while that of structure are public by default.
22.   
Which of the following concepts means wrapping up of data and functions together?
outfit

本文发布于:2023-05-19 16:03:27,感谢您对本站的认可!

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

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

标签:翻译   中国   价格
相关文章
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图