Class XII : Data Structure Test 1

 

Data Structure Test 1

Q1. What do you mean by data structure?

Q2. Name any one linear data structure in python.

Q3. Python list are ______________ in Nature (static/dynamic)

Q4. “Lists are dynamic in nature” What do you mean by this statement?

Q5. What do you mean by Stack?

Q6. Name the end where we add or remove element in stack.

Q7. What is the full form of LIFO?

Q8. Give two example of stack from daily life.

Q9. Name two operations performed in stack.

Q10. What is the order of inserting elements in the following stack?

 

 

 

Ans 1. A data structure is a way of storing, organizing and retrieving data in a computer.

Ans 2. List

Ans 3. Dynamic

Ans 4. This means that list can be grown or shrink in size means elements can be deleted or added in list.

Ans 5. A stack is a linear data structure where elements can be inserted or deleted at one end.

Ans 6. Top

Ans 7. Last in First Out

Ans 8. A pile of book, a stack of carom coins etc.

Ans 9. Push and Pop

Ans 10. Order is: A, B, C, D

 

No comments:

Post a Comment

Most Recently Published

File Handling Test 6

 File Handling Test 6 Q1 . Do we need to use the close() function when we use 'with' statement to open a file? Q2. Which mode you wi...

CS - IP Assignment/Worksheet