1. Question: "<<" is often called  ______ operator.

    A
    insertion

    Note: Not available
    1. Report
  2. Question: ______ is a form of information hiding or abstraction.

    A
    Encapsulation

    Note: Not available
    1. Report
  3. Question: ______ has to do with writing reusable code.

    A
    Inheritance

    Note: Not available
    1. Report
  4. Question: ______ refers to a way that a single name can have multiple meanings in the context of inheritance.

    A
    Polymorphism

    Note: Not available
    1. Report
  5. Question: Which output will produce the following program code?
    #include<iostream>
    using namespace std;
    int main(){
    
        cout.setf(ios::fixed);  
        cout.precision(2);
        cout<<345.4545;
       
    }

    A
    345.45

    B
    345.4545

    C
    3.5e+002

    D
    345.4500

    Note: Not available
    1. Report
  6. Question: "bool" is the one of the fundamental datatype in C++.

    A
    True

    B
    False

    Note: Not available
    1. Report
  7. Question: A literal is a name for one specific value. Literals are often called ______ in contrast
    to variables.

    A
    constants

    Note: Not available
    1. Report
  8. Question: Which line has all reserved words ?

    A
    char, int, float, doubled, short, long, unsigned, signed

    B
    sizeof, const, typedef, static, voided, enum, struct, union

    C
    if, else, for, while, do, switch, continue, break

    D
    defaulted, goto, return, extern, private, public, protected

    Note: Not available
    1. Report
  9. Question: Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?

    A
    rem = 3.14 % 2.1;

    B
    rem = modf(3.14, 2.1);

    C
    rem = fmod(3.14, 2.1);

    D
    Remainder cannot be obtain in floating point division.

    Note: Not available
    1. Report
  10. Question:  What are the types of linkages?

    A
    Internal and External

    B
    External, Internal and None

    C
    External and None

    D
    Internal

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd