Beruflich Dokumente
Kultur Dokumente
Subject Code Subject Name Credits: 04 : BC 0038 : Data structure Using C Assignment No: 01 Marks : 40
3. You are asked to store Age of all 100 students of BCA-II semester in your
Learning Centre. Which data type do you use? What is its syntax? (7 Marks) 4. Let us say your Learning Centre decides to store all the three types of student data: a. Register-Number b. Name c. Age In a single data type, which is the most suitable data type? Give its syntax (7 Marks)
5. Your LC code is stored in a memory location as shown and the variable name is
LC: LC Memory address 1000 (7 Marks) Content(LC code) 9000
If the memory address of your LC code is stored in a variable called SMU as shown: SMU Content(LC Address) 3000 1000 List out the various ways in which LC code can be accessed.
1. When is Dynamic memory allocation more suitable? Write a simple program using dynamic memory allocation to construct a singly-linked list with following functions: Create () Insert () Remove () Traverse() IsEmpty() IsFull() ( 12 Marks)
(10 Marks)
D F
4. Using Binary Search technique find search for Sweden in the following array of
countries. Write complete algorithm. 0 1 2 3 4 5 (10 Marks) 6 7 8 9
Afghanistan Australia Burma Ceylon Denmark Ethiopia India Switzerland Sweden Uganda