CS 304 – Object oriented programing | Current Solved QUIZ # 1 # 2021

12
165

CS 304 – Object oriented programing | Current Solved QUIZ # 1 # 2021

The parameters given in template definition other than those used for mentoring templates types are called  

  1. Type parameter
  2. Non-type parameters
  3. Default Type parameter
  4. None of the given option

Which of the following is correct way to define a template class X ?

  1. class <typename T> classX{};
  2. template class X {};
  3. template< typename T > class X {};
  4. typename <class T > class X {};

Which of the following is a sequence Container?

  1. Map
  2. Vector
  3. Set
  4. Multiset

Cs 610 Solved quiz

In resolution order of function template compiler searches for ___________in the end

  1. Complete specialization
  2. Partial specialization
  3. Ordinary function
  4. Generic template

__________ may inherit from a complete specialization

  1. Partial specialization
  2. Complete specialization
  3. Ordinary class
  4. All of the given option

Which of the following may inherit from an ordinary class?

  1. Class template
  2. Partial specialization
  3. Complete specialization
  4. All of the given option

Which of the following is NOT an Associate Container?

  1. Set
  2. Multiset
  3. Map
  4. Group

Each ________ of a template class by default become function template

  1. Data member
  2. Member function
  3. Type parameter
  4. Object

Cs 610 solved Quiz 3

When was specialize a function template .it is called___________

  1. Function overcasting
  2. Function overriding
  3. Function template overricading
  4. Function template overriding

Which of the following is/are key component(s) of standard Template Library?

  1. Containers
  2. Iterators
  3. Algorithms
  4. All of the given option

Each ____________ of a template class by default becomes function template.

  1. Data member
  2. Member function
  3. Type parameter
  4. Object

In statement “template <class U,int |=5 >”the non type parameter is

  1. Class T
  2. Class U
  3. Int |
  4. All of the given option

Which of the following represents complete specialization?

  1. Template < int.char>
  2. Template < class T. float>
  3. Template <class T. class U.int>
  4. Template < class class W>

Cs 610 solved quiz 2

Solution order highest priority is given to ________ in template

  1. General template
  2. Complete template
  3. Partial specialization
  4. None of the given option

In case of template specialization ,if compiler cannot find required complete

  1. General template
  2. Complete specialization
  3. Partial specialization
  4. None of the given option

_________ is a pointer which is declared outside the _________

  1. Container, Cursor
  2. Cursor, Container
  3. Container, Class
  4. This , Cursor

Eco 401 solved quiz 

Suppose a template class “Test” has a static data member. How many copies of this static data member following line of C++ code?

Test<char>x,y,z.

  1. Zero
  2. One
  3. Two
  4. Three

Cs 302 solved quiz

CS 304 – Object oriented programing | Current Solved QUIZ # 1 # 2021

12 COMMENTS

  1. wonderful submit, very informative. I wonder why the opposite experts of this sector do
    not realize this. You should proceed your writing.
    I’m sure, you’ve a great readers’ base already!

  2. Spot on with this write-up, I truly believe this amazing site needs a great deal more
    attention. I’ll probably be returning to read through more, thanks for the info!

  3. Thanks for the marvelous posting! I definitely enjoyed reading it, you may be a great author.I will make
    sure to bookmark your blog and definitely will come back sometime soon. I want to encourage one to
    continue your great posts, have a nice morning!

  4. excellent submit, very informative. I’m wondering why the other
    specialists of this sector don’t notice this. You should proceed your writing.
    I am confident, you’ve a huge readers’ base already!

  5. Hi! I could have sworn I’ve visited this blog before but after looking
    at some of the posts I realized it’s new to me. Regardless,
    I’m certainly delighted I stumbled upon it and I’ll be bookmarking it and checking back regularly!

  6. Magnificent site. Lots of helpful info here.
    I am sending it to a few friends ans additionally sharing
    in delicious. And obviously, thanks on your sweat!

  7. I have been browsing online more than 3 hours today, yet I never found any interesting article like yours.

    It’s pretty worth enough for me. In my opinion, if all site owners and bloggers made good content as you
    did, the internet will be a lot more useful than ever before.

LEAVE A REPLY

Please enter your comment!
Please enter your name here