[go: up one dir, main page]

0% found this document useful (0 votes)
141 views5 pages

Which of Following Is Shared Structure of A Set of Similar Objects?

This document is a quiz with multiple choice questions about computer science topics like data structures, object-oriented programming, and arrays. It contains questions about the shared structure of a set of similar objects, the index of the first element in an array, properties of stacks, operations on a stack, features that encourage code reusability in OOP, descriptions of arrays and queues, disadvantages of arrays, extra features of classes compared to structures, and what an error removing an element from an empty stack is called. The document is a quiz that the user can submit for grading.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
141 views5 pages

Which of Following Is Shared Structure of A Set of Similar Objects?

This document is a quiz with multiple choice questions about computer science topics like data structures, object-oriented programming, and arrays. It contains questions about the shared structure of a set of similar objects, the index of the first element in an array, properties of stacks, operations on a stack, features that encourage code reusability in OOP, descriptions of arrays and queues, disadvantages of arrays, extra features of classes compared to structures, and what an error removing an element from an empty stack is called. The document is a quiz that the user can submit for grading.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Test

2 marks for each question. No negative marks

dasdebajeet2@gmail.com (not shared) Switch accounts

Draft saved

*Required

Which of following is shared structure of a set of similar objects? 2 points

Encapsulation

Inheritance

A Class

None of Above

Clear selection

Enrollment No. *

20UCS128

In general, the index of the first element in an array is __________ 2 points

-1

Clear selection
Which of the following statement(s) about stack data structure is/are NOT 2 points

correct?

Stack data structure can be implemented using linked list

New node can only be added at the top of the stack

Stack is the FIFO data structure

The last node at the bottom of the stack has a NULL link

Clear selection

Consider the following operation performed on a stack of size 5. Push(1); 2 points

Pop(); Push(2); Push(3); Pop(); Push(4); Pop(); Pop(); Push(5); After the
completion of all operation, the no of element present on stack are

Clear selection

Which Feature of OOP encourages the code reusability? 2 points

Encapsulation

Inheritance

Polymorphism

Abstraction

Clear selection
Which of these best describes an array? 2 points

Arrays are immutable once initialized

A data structure that shows a hierarchical behavior

Container of objects of similar types

Array is not a data structure

Clear selection

Which is not the type of queue? 2 points

Single ended queue

Ordinary queue

Circular queue

Priority queue

Clear selection

Name *

Debajeet Das
What are the disadvantages of arrays? 2 points

Data structure like queue or stack cannot be implemented

There are chances of wastage of memory space if elements inserted in an array are
lesser than the allocated size

Index value of an array can be negative

Elements are sequentially accessed

Clear selection

What is the extra feature in classes which was not in the structures? 2 points

Member functions

Static Data allowed

Data members

Public access specifier

Clear selection

In a stack, if a user tries to remove an element from an empty stack it is 2 points

called _________

Underflow

Garbage Collection

Empty collection

Overflow

Clear selection

Submit Clear form

Never submit passwords through Google Forms.

This content is neither created nor endorsed by Google. Report Abuse - Terms of Service - Privacy Policy
 Forms

You might also like