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
[Winter 2014]
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 C Programmer.
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
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 programmers to
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 dynamic allocation of
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
performs worse than the similar
insertion sort. Selection sort is noted for its
simplicity, and also has
performance
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