Q.1
|
02 Marks
Questions.
|
||||||||||||||||||||||||||||||||||
|
a)
|
What
is function? List advantages of functions.
|
|||||||||||||||||||||||||||||||||
|
b)
|
Differentiate
between while and do-while.
|
|||||||||||||||||||||||||||||||||
|
c)
|
Compare
if-else-if and switch-case.
|
|||||||||||||||||||||||||||||||||
|
d)
|
Explain
break with example.
|
|||||||||||||||||||||||||||||||||
|
e)
|
Explain
continue with example.
|
|||||||||||||||||||||||||||||||||
|
f)
|
Find
the output
void
main()
{
for(i=1; i<=100; i++);
{
printf(“This will print 100 times”);
printf(“\n i=%d”,i);
}
}
|
|||||||||||||||||||||||||||||||||
|
g)
|
Find
the output.
void
main()
{
for(i=1; i<=10;i++)
{
if(i%5==0)
break;
if(i%3==0 || i==1)
continue;
printf(“%d\n”,i);
}
}
|
|||||||||||||||||||||||||||||||||
|
h)
|
What
do you mean by actual parameters and formal parameters.
|
|||||||||||||||||||||||||||||||||
|
i)
|
void
main()
{
char ch='y';
switch(ch)
{
case 'y':printf(“YES”);
case 'n':printf(“NO”);
default:printf(“INVALID”);
}
}
|
|||||||||||||||||||||||||||||||||
|
j)
|
Explain
switch case with syntax.
|
|||||||||||||||||||||||||||||||||
|
k)
|
Find
the output.
void
main()
{
int i=1;
{
printf(“i=%d”,i);
i++;
}
while(i<=10)
i++;
printf(“i=%d”,i);
}
|
Sunday, March 30, 2014
FE SPA Q. Bank
Subscribe to:
Post Comments (Atom)
Lecture PPTs of MIS , Module 4 to Module 6
Module 4 Social Computing (SC): Web 3.0 , SC in business-shopping, Marketing, Operational and Analytic CRM, E-business and E-commerce B2B B...
-
Practical exam Q No. 1 Q-1> Write a query in sql to create a table employee and department. Employee(empno,ename,deptno,job,hiredate...
-
3.3 Characteristics of Tasks and Interactions The various decomposition techniques described in the previous section allow us to identify ...
-
Roll No Roll No Roll No Question Paper Questions Allotted 201,202 223,224 245,246 ...
No comments:
Post a Comment