CS:101 Problem solving Using C(Question Bank)
Problem solving Using C(Question Bank)
1)
Give syntax and use of following functions:
i)
getchar
ii)putchar
iii)puts
iv)printf
v)scanf
vi)gets
2)Explain
different types of operators available in C.
3)Explain
the structure of C program.
4)Write
algorithm and draw flowchart to find out
factorial of a number.
5)What
is machine language?
6)Define
operator
7)What is
a compiler ?
8)Explain ones
complement operator with
example.
9)What is
an identifier ? Give the
rules of identifier.
10)Write an
algorithm and draw a flowcahrt
to find the
maximumof 3 no's.
11)Find the
output of the
following program and
justify :
1) main(
){
int
x = 100;
printf (“\n
x = %d”,
10 + x++);
printf (“\n
x = %d”, 10 +
++x);
}
2)
Main( )
{
int a=10,
b=20;
{
int c=30;
printf("%d %d
%d", a, b, c);
}
printf("%d %d
%d", a, b, c);
}
12)Write a
'C' program to
accept a number
and check whetherit
is an Armstrong
number.
13) Explain any two
storage classes with
proper example.
14)C is
middle level language.
Comment.
15)
State different data
types.
16)
Who developed ‘C’ language
17)
Explain with example
:
(a)
Relational operators(b) Logical operators(c)
Increment operators.
18)Write algorithm
and draw flowchart
for calculating maximum of
two numbers.
Comments
Post a Comment