SlideShare a Scribd company logo
Dear students get fully solved assignments 
Send your semester & Specialization name to our mail id : 
“ help.mbaassignments@gmail.com ” 
or 
Call us at : 08263069601 
(Prefer mailing. Call in emergency ) 
Assignment 
PROGRAM B.Sc IT 
SEMESTER FIRST 
SUBJECT CODE & NAME BT0065-C Programming and Data Structures 
CREDIT 3 
BK ID B0949 
MAX.MARKS 60 
Note – Answer all questions. Each question is followed by evaluation scheme. 
Q.1 Why data types are required in any programming language? Explain in detail the primary data 
types of C language. 
Answer: - Data types are required in any programming language:- a data type or simply type is a 
classification identifying one of various types of data, such as real, integer or Boolean, that determines 
the possible values for that type; the operations that can be done on values of that type; the meaning of 
the data; and the way values of that type can be stored. 
Data types are used within type systems, which offer various ways of defining, implementing and using 
them. Different type systems ensure varying degrees of type safety. 
Almost all programming languages explicitly include the notion of data type, though different languages 
may use different terminology. Common data types 
Q.2 Explain the structure of the C program.
Answer: - Structure of the C program:- Structure is the collection of variables of different types under a 
single name for better handling. For example: You want to store the information about person about 
his/her name, citizenship number and salary. You can create these information separately but, better 
approach will be collection of these information under single name because all these information are 
related to person. 
Structure Definition in C 
Q.3 i. What is recursion? 
ii. Differentiate between recursion and iteration. 
iii. Write a program to generate Fibonacci series using recursion. 
Answer:- Recursion:- 
Recursion is the process of repeating items in a self-similar way. For instance, when the surfaces of two 
mirrors are exactly parallel with each other, the nested images that occur are a form of infinite 
recursion. The term has a variety of meanings specific to a variety of disciplines ranging from linguistics 
to logic. 
The most common application of recursion is in mathematics and computer science, in which it refers 
to a method of defining functions in which the function being defined is applied within its own 
definition. 
Q.4 What do you mean by dynamic memory allocation? Explain the three functions for dynamic 
memory allocation in C language. 
Answer: - Dynamic memory allocation:- Dynamic memory allocation is when an executing program 
requests that the operating system give it a block of main memory. The program then uses this memory 
for some purpose. Usually the purpose is to add a node to a data structure. In object oriented languages, 
dynamic memory allocation is used to get the memory for a new object. 
The memory comes from above the static part of the data segment. Programs may request memory and 
may also return previously dynamically allocated memory 
Q.5 Write C program to implement stack using arrays. 
Answer:- C program to implement stack using arrays:-
Q.6 What do you mean by binary tree? Explain the storage representations of binary tree. 
Answer: - Binary tree:- a binary tree is a tree data structure in which each node has at most two 
children, which are referred to as the left child and the right child. A recursive definition using just set 
theory notions is that a (non-empty) binary tree is a triple (L, S, R), where L and R are binary trees or the 
empty set and S is a singleton set.[1] Some authors allow the binary tree to be the empty set as well.[2] 
From a graph theory perspective, binary (and K-ary) trees as defined here are actually arborescences.[3] 
A binary tree may thus be also called a bifurcating arborescence[3]—a term which actually appears in 
some very old programming books,[4] before the 
Dear students get fully solved assignments 
Send your semester & Specialization name to our mail id : 
“ help.mbaassignments@gmail.com ” 
or 
Call us at : 08263069601 
(Prefer mailing. Call in emergency )
Ad

Recommended

DOCX
Mit202 data base management system(dbms)
smumbahelp
 
DOCX
Mit102 data & file structures
smumbahelp
 
PPT
cs8251 unit 1 ppt
praveenaprakasam
 
PPTX
Data Types | CS8251- Programming in c | Learn Hub
Learn Hub
 
PPTX
Adversarial and reinforcement learning-based approaches to information retrieval
Bhaskar Mitra
 
DOCX
Bc0038– data structure using c
hayerpa
 
PPTX
Numerical data.
Adewumi Ezekiel Adebayo
 
PPTX
Fundamental of C Programming (Data Types)
jimmy majumder
 
PPTX
Structures in c language
tanmaymodi4
 
PPT
User defined data type
Amit Kapoor
 
PPTX
Introduction to data structure
sunilchute1
 
PPTX
Data Types - Premetive and Non Premetive
Raj Naik
 
PDF
Relational Model
A. S. M. Shafi
 
PDF
Structures in c++
Swarup Kumar Boro
 
PDF
Cs8391 notes rejinpaul
Dharmaraj Prof and Head CSE Coimbatore
 
PPTX
Data types in C
Tarun Sharma
 
PPTX
Data types in C language
kashyap399
 
PPTX
Lecture 3.mte 407
rumanatasnim415
 
PPTX
R data types
Teachers Mitraa
 
PPTX
data types in C programming
Harshita Yadav
 
PPTX
Concept Of C++ Data Types
k v
 
DOCX
Data Structure Question Bank(2 marks)
pushpalathakrishnan
 
PDF
Arrays in c_language
Infinity Tech Solutions
 
PPT
C++ data types
pratikborsadiya
 
PPTX
R Datatypes
DataminingTools Inc
 
PPT
Enumerated data types in C
Arpana shree
 
PDF
record_linking
Robert Berry
 
PDF
Variables & Data Types in R
Rsquared Academy
 
DOCX
Bt0066 dbms
smumbahelp
 
DOCX
Mb0048 operations research
smumbahelp
 

More Related Content

What's hot (20)

PPTX
Structures in c language
tanmaymodi4
 
PPT
User defined data type
Amit Kapoor
 
PPTX
Introduction to data structure
sunilchute1
 
PPTX
Data Types - Premetive and Non Premetive
Raj Naik
 
PDF
Relational Model
A. S. M. Shafi
 
PDF
Structures in c++
Swarup Kumar Boro
 
PDF
Cs8391 notes rejinpaul
Dharmaraj Prof and Head CSE Coimbatore
 
PPTX
Data types in C
Tarun Sharma
 
PPTX
Data types in C language
kashyap399
 
PPTX
Lecture 3.mte 407
rumanatasnim415
 
PPTX
R data types
Teachers Mitraa
 
PPTX
data types in C programming
Harshita Yadav
 
PPTX
Concept Of C++ Data Types
k v
 
DOCX
Data Structure Question Bank(2 marks)
pushpalathakrishnan
 
PDF
Arrays in c_language
Infinity Tech Solutions
 
PPT
C++ data types
pratikborsadiya
 
PPTX
R Datatypes
DataminingTools Inc
 
PPT
Enumerated data types in C
Arpana shree
 
PDF
record_linking
Robert Berry
 
PDF
Variables & Data Types in R
Rsquared Academy
 
Structures in c language
tanmaymodi4
 
User defined data type
Amit Kapoor
 
Introduction to data structure
sunilchute1
 
Data Types - Premetive and Non Premetive
Raj Naik
 
Relational Model
A. S. M. Shafi
 
Structures in c++
Swarup Kumar Boro
 
Data types in C
Tarun Sharma
 
Data types in C language
kashyap399
 
Lecture 3.mte 407
rumanatasnim415
 
R data types
Teachers Mitraa
 
data types in C programming
Harshita Yadav
 
Concept Of C++ Data Types
k v
 
Data Structure Question Bank(2 marks)
pushpalathakrishnan
 
Arrays in c_language
Infinity Tech Solutions
 
C++ data types
pratikborsadiya
 
R Datatypes
DataminingTools Inc
 
Enumerated data types in C
Arpana shree
 
record_linking
Robert Berry
 
Variables & Data Types in R
Rsquared Academy
 

Viewers also liked (11)

DOCX
Bt0066 dbms
smumbahelp
 
DOCX
Mb0048 operations research
smumbahelp
 
PPTX
Acton case study-final
Mark Organ
 
DOCX
Ms 05 management of machines and materials
smumbahelp
 
PPTX
Quaser High Speed Machining Centers
VMC Technologies
 
DOCX
Isbm solved assignments 2015 2
smumbahelp
 
DOCX
Om0011 enterprise resource planning
smumbahelp
 
DOCX
Industrial management
smumbahelp
 
PPTX
Social Media Marketing Strategy
Online Marketing Institute
 
DOCX
Mi0033 software engineering
smumbahelp
 
PDF
Introduction to treatment_of_tannery_effluents
safwan patel
 
Bt0066 dbms
smumbahelp
 
Mb0048 operations research
smumbahelp
 
Acton case study-final
Mark Organ
 
Ms 05 management of machines and materials
smumbahelp
 
Quaser High Speed Machining Centers
VMC Technologies
 
Isbm solved assignments 2015 2
smumbahelp
 
Om0011 enterprise resource planning
smumbahelp
 
Industrial management
smumbahelp
 
Social Media Marketing Strategy
Online Marketing Institute
 
Mi0033 software engineering
smumbahelp
 
Introduction to treatment_of_tannery_effluents
safwan patel
 
Ad

Similar to Bt0065 c programming and data structures - theory-de (20)

DOCX
Bt0065, c programming and data structures
smumbahelp
 
DOCX
Mi0034 database management systems
smumbahelp
 
DOC
MC0077 SMU 2013 Fall Session
Narinder Kumar
 
DOCX
Mca1040 system analysis and design
smumbahelp
 
DOCX
Bt0066 dbms
smumbahelp
 
DOCX
Mca2020 advanced data structure
smumbahelp
 
DOCX
Mi0034 database management system
consult4solutions
 
PPTX
СРС АКТ Малошов Нұралы ВМ-МҚБ-11-23.pptx
ssuser8719a6
 
PPTX
Ch-3(b) - Variables and Data types in C++.pptx
ChereLemma2
 
DOCX
Mi0034 – database management system
smumbahelp
 
DOCX
Mi0034 database management system
smumbahelp
 
DOCX
Mi0034 summer-2016
smumbahelp
 
PDF
Bca examination 2015 dbms
Anjaan Gajendra
 
PDF
cprogramming questions for practice end term
Sheelendra3
 
DOCX
Mi0034 database management system
Study Stuff
 
DOCX
Mca1040 system analysis and design
smumbahelp
 
DOCX
Mca1040 system analysis and design
smumbahelp
 
DOCX
Bt0066 dbms
smumbahelp
 
PDF
Introduction MAchine Learning . Machine Learning is trendy concept
KiranMittal7
 
DOCX
Mi0034 – database management system
smumbahelp
 
Bt0065, c programming and data structures
smumbahelp
 
Mi0034 database management systems
smumbahelp
 
MC0077 SMU 2013 Fall Session
Narinder Kumar
 
Mca1040 system analysis and design
smumbahelp
 
Bt0066 dbms
smumbahelp
 
Mca2020 advanced data structure
smumbahelp
 
Mi0034 database management system
consult4solutions
 
СРС АКТ Малошов Нұралы ВМ-МҚБ-11-23.pptx
ssuser8719a6
 
Ch-3(b) - Variables and Data types in C++.pptx
ChereLemma2
 
Mi0034 – database management system
smumbahelp
 
Mi0034 database management system
smumbahelp
 
Mi0034 summer-2016
smumbahelp
 
Bca examination 2015 dbms
Anjaan Gajendra
 
cprogramming questions for practice end term
Sheelendra3
 
Mi0034 database management system
Study Stuff
 
Mca1040 system analysis and design
smumbahelp
 
Mca1040 system analysis and design
smumbahelp
 
Bt0066 dbms
smumbahelp
 
Introduction MAchine Learning . Machine Learning is trendy concept
KiranMittal7
 
Mi0034 – database management system
smumbahelp
 
Ad

Bt0065 c programming and data structures - theory-de

  • 1. Dear students get fully solved assignments Send your semester & Specialization name to our mail id : “ [email protected] ” or Call us at : 08263069601 (Prefer mailing. Call in emergency ) Assignment PROGRAM B.Sc IT SEMESTER FIRST SUBJECT CODE & NAME BT0065-C Programming and Data Structures CREDIT 3 BK ID B0949 MAX.MARKS 60 Note – Answer all questions. Each question is followed by evaluation scheme. Q.1 Why data types are required in any programming language? Explain in detail the primary data types of C language. Answer: - Data types are required in any programming language:- a data type or simply type is a classification identifying one of various types of data, such as real, integer or Boolean, that determines the possible values for that type; the operations that can be done on values of that type; the meaning of the data; and the way values of that type can be stored. Data types are used within type systems, which offer various ways of defining, implementing and using them. Different type systems ensure varying degrees of type safety. Almost all programming languages explicitly include the notion of data type, though different languages may use different terminology. Common data types Q.2 Explain the structure of the C program.
  • 2. Answer: - Structure of the C program:- Structure is the collection of variables of different types under a single name for better handling. For example: You want to store the information about person about his/her name, citizenship number and salary. You can create these information separately but, better approach will be collection of these information under single name because all these information are related to person. Structure Definition in C Q.3 i. What is recursion? ii. Differentiate between recursion and iteration. iii. Write a program to generate Fibonacci series using recursion. Answer:- Recursion:- Recursion is the process of repeating items in a self-similar way. For instance, when the surfaces of two mirrors are exactly parallel with each other, the nested images that occur are a form of infinite recursion. The term has a variety of meanings specific to a variety of disciplines ranging from linguistics to logic. The most common application of recursion is in mathematics and computer science, in which it refers to a method of defining functions in which the function being defined is applied within its own definition. Q.4 What do you mean by dynamic memory allocation? Explain the three functions for dynamic memory allocation in C language. Answer: - Dynamic memory allocation:- Dynamic memory allocation is when an executing program requests that the operating system give it a block of main memory. The program then uses this memory for some purpose. Usually the purpose is to add a node to a data structure. In object oriented languages, dynamic memory allocation is used to get the memory for a new object. The memory comes from above the static part of the data segment. Programs may request memory and may also return previously dynamically allocated memory Q.5 Write C program to implement stack using arrays. Answer:- C program to implement stack using arrays:-
  • 3. Q.6 What do you mean by binary tree? Explain the storage representations of binary tree. Answer: - Binary tree:- a binary tree is a tree data structure in which each node has at most two children, which are referred to as the left child and the right child. A recursive definition using just set theory notions is that a (non-empty) binary tree is a triple (L, S, R), where L and R are binary trees or the empty set and S is a singleton set.[1] Some authors allow the binary tree to be the empty set as well.[2] From a graph theory perspective, binary (and K-ary) trees as defined here are actually arborescences.[3] A binary tree may thus be also called a bifurcating arborescence[3]—a term which actually appears in some very old programming books,[4] before the Dear students get fully solved assignments Send your semester & Specialization name to our mail id : “ [email protected] ” or Call us at : 08263069601 (Prefer mailing. Call in emergency )