My Report

C++ Programming Practice Test 8


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement

1. Which of the following is corect way of constructing bitset using binary string?

2. What is the use of sum() function in Valarray?

3. Which function is used to get the real part of the complex number?

4. What is the correct syntax of constructing any using copy initialization?

5. What is the use of tie() function?

6. What happens when no argument is supplied to reset() function?

7. What is Valarray in C++?

8. What happens when only one argument is supplied to set() function?

9. Given below classes which of the following are the possible row entries in vtable of D2 class?

class Base
{
    public:
    virtual void function1() {};
    virtual void function2() {};
};
class D1: public Base
{
    public:
    virtual void function1() {};
};
class D2: public Base
{
    public:
    virtual void function2() {};
};

10. Which type of relationship is modelled by Inheritance?


 

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.