Wednesday 19 August 2015

bt0065 smu bsc it summer 2015 Ist sem assignment

Get fully solved assignment. Buy online from website
online store
or
plz drop a mail with your sub code
we will revert you within 2-3 hour or immediate
Charges rs 125/subject and rs 625/semester only.
if urgent then call us on 08791490301, 08273413412

[Summer 2015] ASIGNMENT
PROGRAM-BSc IT
SEMESTER-FIRST
SUBJECT CODE & NAME-BT0065, C Programming and Data Structures,
CREDIT-3
BK ID-B0949
MAX. MARKS-60
Q1. Explain the structure of the C program. 10
Answer.
Structure of the C program
We have to follow the sequence of instructions that should be maintained to be a


Q2. Explain bubble sort with the help of an example. 10
Answer: Bubble Sorting: Sorting is generally understood as a process of re-arranging a given set of objects in a specific order. The purpose of sorting is to facilitate that later search for members of the sorted set. As such it is an almost universally performed, fundamental activity. Objects are sorted in telephone books, in income tax files, in tables of contents, in libraries, in dictionaries, in warehouses and almost everywhere where stored objects have to be searched and


Q3. What is structure? What is its importance? Explain with an example how to declare and initialize structure.
Answer.
Structures
A structure can be considered as a template used for defining a collection of variables under a single name. Structures help


Q4. What do you mean by dynamic memory allocation? Explain the three functions for dynamic memory allocation in C language. 4+6
Answer.
Dynamic memory allocation
C Language requires the number of elements in an array to be specified at compile time. Many languages permit a programmer to specify an array‟s size at run time. Such languages have the ability to calculate and assign, during execution, the memory space required by the variables in a program. The process of allocating memory at run time is called


Q5. Write C program to implement stack using arrays. 10
Answer.
C program to implement stack using arrays
#include <stdio.h>
#include <process.h>
#define STACK_SIZE 5
void


Q6. Write an algorithm for selection sort. Sort the list given below in ascending order by using this sorting technique. 64 , 25, 12, 22 , 11
Answer: Selection Sort:
Selection sort is a sorting algorithm, specifically an in-place comparison sort.
It has O(n2) complexity, making it inefficient on large lists, and generally


Get fully solved assignment. Buy online from website
online store
or
plz drop a mail with your sub code
we will revert you within 2-3 hour or immediate
Charges rs 125/subject and rs 625/semester only.
if urgent then call us on 08791490301, 08273413412


No comments:

Post a Comment