0% found this document useful (0 votes)
359 views2 pages

Important Questions For Pds-1 Unit Test-Ii Part-A

This document contains important questions for a PDS-1 unit test divided into two parts. Part A contains 10 short answer questions about error handling functions, random files, binary vs text files, sorting a linked list, stack applications, circular linked lists, ADTs, counting linked list nodes, list drawbacks, and infix to postfix conversion. Part B contains 11 questions about infix to postfix conversion, defining and implementing a stack, defining and implementing a linked list, array and linked list polynomial implementations, doubly linked lists, merging two linked lists, file handling concepts, and counting lines in a file.

Uploaded by

NithiBoaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
359 views2 pages

Important Questions For Pds-1 Unit Test-Ii Part-A

This document contains important questions for a PDS-1 unit test divided into two parts. Part A contains 10 short answer questions about error handling functions, random files, binary vs text files, sorting a linked list, stack applications, circular linked lists, ADTs, counting linked list nodes, list drawbacks, and infix to postfix conversion. Part B contains 11 questions about infix to postfix conversion, defining and implementing a stack, defining and implementing a linked list, array and linked list polynomial implementations, doubly linked lists, merging two linked lists, file handling concepts, and counting lines in a file.

Uploaded by

NithiBoaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

IMPORTANT QUESTIONS FOR PDS-1 UNIT TEST-II

Part-A
1. Mention any two error handling functions in files.
2. What is random file?
3. State the differences between binary file and text file.
4. Write a routine to sort the nodes in singly linked list.
5. What are the applications for Stack?
6. Define circular linked list.
7. Define ADT.
8. Write the routine for counting the number of nodes in a singly linked list.
9. Write the drawbacks of list ADT while implemented using array.
10. Convert the infix expression A+B*(C-D) into postfix expression.


Part-B

1. Explain the process of converting infix to postfix expression with an example.
2. Define Stack. Describe the operations involved in a stack with suitable routines.
3. Define Stack. Describe the operations involved in a linked stack with suitable routines.

4. What is a linked list? Explain with suitable routines for any four operations of a singly
linked list.
5. Write the routine for operations in array implementation of polynomial ADT.
6. What is a linked list? Explain with suitable routines for any four operations of a doubly
linked list.
7. Write the routine for operations in linked list implementation of polynomial ADT.
8. Write a C program to merge 2 linked lists.
9. Describe the concept of file handling in C with examples.
10. Write a C program to count no of lines, blank lines and comments in a file.
11. Write a C program to read last n characters from a file.
IMPORTANT QUESTIONS FOR PDS-1 UNIT TEST-II

Part-A
1. Mention any two error handling functions in files.
2. What is random file?
3. State the differences between binary file and text file.
4. Write a routine to sort the nodes in singly linked list.
5. What are the applications for Stack?
6. Define circular linked list.
7. Define ADT.
8. Write the routine for counting the number of nodes in a singly linked list.
9. Write the drawbacks of list ADT while implemented using array.
10. Convert the infix expression A+B*(C-D) into postfix expression.


Part-B

1. Explain the process of converting infix to postfix expression with an example.
2. Define Stack. Describe the operations involved in a stack with suitable routines.
3. Define Stack. Describe the operations involved in a linked stack with suitable routines.

4. What is a linked list? Explain with suitable routines for any four operations of a singly
linked list.
5. Write the routine for operations in array implementation of polynomial ADT.
6. What is a linked list? Explain with suitable routines for any four operations of a doubly
linked list.
7. Write the routine for operations in linked list implementation of polynomial ADT.
8. Write a C program to merge 2 linked lists.
9. Describe the concept of file handling in C with examples.
10. Write a C program to count no of lines, blank lines and comments in a file.
11. Write a C program to read last n characters from a file.

You might also like