Service charges as Rs. 150 per assignment.
PROGRAM - MCA
SEMESTER I
SUBJECT CODE & NAME - MCA1020- PROGRAMMING IN C
1. Explain the history of C
language. What are the advantages of C language?
History of C language
C is
a general-purpose, structured
programming language. Its
instructions consist of terms that resemble algebraic expressions,
augmented by certain English keywords such as if, else, for, do and while. C was the offspring of the ‘Basic
Combined Programming Language’ (BPCL) called B, developed in the 1960’s
2. Define operators. Briefly
explain about any four category of Operators in C.
Definition of Operators:
C supports
a rich set
of operators. An
operator is a
symbol that tells
the computer to perform
certain mathematical or
logical manipulations. Operators are
used in programs
to manipulate data
and variables. They usually form a part of the mathematical
or logical expressions.
3. What is typecasting? Write a
program to show the use of typecast.
The type cast Operator
C performs
type conversions automatically. However,
there are instances when we want to force a type
conversion in a way that is different
from the automatic conversion. Consider,
for example, the
calculation of ratio
of
Service charges as Rs. 150 per assignment.
4. Differentiate between while and
do-while statements.
The while loop
Loops generally consist of
two parts: one or more control expressions which control the execution of the
loop, and the body, which is the statement or set of statements which is
executed over and over.
The most basic loop
in C is the while loop. A
while loop has one control
expression, and executes
as long as
that expression is
true. Here before
5. What is recursion? State two
conditions for a recursive procedure. Write a program to find factorial of a
given positive integer using recursion.
Definition Recursion:
Recursion is a process by which a function calls itself
repeatedly, until some specified
condition has been
met. The process
is used for
repetitive computations in which
each action is
stated in terms of
a previous result.
6. Define datatype and storage
class. List four types of storage classes.
There are two
ways to categorize variables:
by data type,
and by storage class.
Data type refers to the
type of information represented by a variable, for example, integer
number, floating-point number, character etc.
Storage class refers to the persistence of a variable and its scope
within the
Service charges as Rs. 150 per assignment.
No comments:
Post a Comment