Dear students get fully solved
assignments
Send your semester &
Specialization name to our mail id :
help.mbaassignments@gmail.com
or
call us at : 08263069601
STUDENT NAME:-
ROLL NO:-
ASSIGNMENT DRIVE -
Fall – 2017
PROGRAM - MASTER
OF COMPUTER APPLICATION
SEMESTER - I
SUBJECT CODE &
NAME - MCA112 - Programming In C
BK ID B1639 NUMBER
OF ASSIGNMNETS, CREDITS & MARKS 2, 4 Credits, 30 marks each
Assignment
Set -1 Questions
Q1 a) What is a
structure? How does a structure differ from an array? b) How is a structure type pointer variable
declared? 6+4=10
Answer:-
a)
What is a structure?
An array is a data structure
whose elements are all of the same data type. We now turn our attention to the
structure, which is a data structure whose individual elements can differ in
type. Thus, a single structure might contain
Q2
a) Explain about
the linked list.
b) Write a C program for creating and printing
the elements of the linked list. 4+6 =10
Answer:-
a)
Linked list
When dealing with many problems
we need a dynamic list, dynamic in the sense that the size requirement need not
be known at compile time. Thus, the list may grow or shrink during runtime. A
linked list is a data structure that
Q3 a) Write short
note on command line arguments.
b) Write a C
program to illustrate the use of command line arguments.
4+6=10
Answer:-
a)
Command line
argument is a parameter supplied to a program when the program is invoked.
(We should probably admit that
command line user interfaces are a bit old fashioned, and currently somewhat
out of favor. If you've used Unix or MSDOS, you know what a command line is,
but if your experience
Assignment
Set -2 Questions
Q1 Explain about
any five commonly used input/output functions in C. 10
Answer:-
getchar(), putchar(), scanf(),
printf(), gets() and puts() are the commonly used input/output functions in C.
These functions are used to
transfer of information between the computer and the standard input/output
devices. getchar()
Q2 a) What is the
difference between function declaration and function definition.
b) Write a
recursive function to find the factorial of a given positive integer. 4+6 =10
Answer:-
a)
Function
declaration is a direction to the compiler that what type of data is returned
by the function, the function name and about the arguments where as the
function definition is actually writing the body of the function
Q3
a) Explain the
basics of Pointers.
b) What are the
Similarities between Pointers and one dimensional arrays. 4+6 =10
Answer:-
a)
Basics of Pointers:-
A pointer is a variable which
contains the address in memory of another variable. We can have a pointer to
any variable type. Before studying pointers, you should mind certain symbols
that are frequently used in
Dear students get fully solved
assignments
Send your semester &
Specialization name to our mail id :
help.mbaassignments@gmail.com
or
call us at : 08263069601
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.