How To Exam?

a knowledge trading engine...


Sardar Patel University 2008 B.E Computer Science CP151-Introduction to Computer Technology(Internal Test) - Question Paper

Tuesday, 29 January 2013 10:35Web

BVM/GCET/ADIT
CP151-Introduction to Computer Technology
Internal Test, AY-2007-08, SEM-II
Date: - 07-03-08 Time: - 2:00 pm to 3:00 pm Max Marks:-20
Q1 A] Write the output for the program statements provided beneath if
there is no fault else justify the error(Assume all necessary
header files are included.
[4]
1) void main( )
{
int a, b=5,t;
t = b++; t = ++b;
t = b++; t = b++;
t = --b;
for(a = 5; a < b; a++)
printf(“%d\n”, a);
printf(“a=%d\t, b=%d\t, t=%d”, a, b, t);
}
2) void main( )
{
int i, k;
i = 0;
k = 0;
for(;k < 10;)
{
i=++k;
printf(“%d %d”,i,k++);
}
}
3) void main( )
{
int k;
k=1;
do
{
switch(k%2)
{
case 0:
printf(“%d”,k);
case 1:
printf(“%d”,k);
default:
printf(“%d\n,k”);
}
k++;
while(k<3);
}
4) void main()
{
int l=0, m=0;
if( l && m++)
printf("%d %d", l++, m);
printf("%d, %d” ,l, m);
}
B]
Attempt any 2 ques. provided below:-
1) discuss the importance of an operating system in a
computer.
2) Compare the features of primary memory (RAM) and
secondary memory (Hard Disk).
3) Differentiate ranging from compiler and interpreter.
[4]
C]
Convert (3472)8 to an hexadecimal number system.(Show
all the necessary steps)
[2]
Q2
A]
Draw the flowchart and write a C program without using
any library function to learn a character from the user and
display whether it is a number, a vowel, a consonant or a
special character.
[4]
B]
Write a C program to evaluate a provided series for n terms:
Sum=1 – 2/1! + 3/2! – 4/3! + 5/4! -...n/(n-1)!
OR
Write a C program to evaluate a provided series for n terms:
Sum = 13/1! + 23/2! - 33/3! + 43/4! - …. n3/n!
[3]
Q3
A]
Write a C program to print the subsequent pyramid for n
number of lines:
1
0 1
1 0 1
0 one 0 1
1 0 one 0 1
[3]


( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Sardar Patel University 2008 B.E Computer Science CP151-Introduction to Computer Technology(Internal Test) - Question Paper