Untitled
Untitled
Untitled
SECTION I
Q#3. Write short answers to any six(6) question
i)What is Header file
ii)How a source code is different from object code.
iii)Trace output
int x=10 y=15;
x=x++;
y=++y;
printf(“%d %d”,x,y);
iv) Find out errors from following code
void main()
{
char ch,ch2;
ch1=’2’;
ch2=’6’;
}
v)Write use of printf function?
vi) Define format specifier used in printf() and scanf()
vii) Find error
void main()
{
int a=10;
Printf(“%s”,b);
viii) Differentiate between unary and binary operator
ix) Write the mathematic expression in c-expression
ke=1/2 mv2
C-Language (2x6=12)
Q#4. Write short answers of any six(6) questions.
i)Define compound statement
ii)Define one-way decision and also draw flowchart
iii)What is the error in the following code
int x=10,y=20
if(x>10 & y<30)
Printf(“%d”,x+y)
iv)Convert the following code in while loop
for(int i=1;i<10;i++)
{
Printf(“\nPakistan”);
}
v)Write the syntax of for loop
vi)Differentiate between inner and outer loop
vii)Describe user define function
viii)What do you meant by function call?
ix)Write the use of End of file
SECTION II
MS ACCESS
Note: Attempt any one question (8x1=8)
Q#5. Describe different steps involved in database with diagram
Q#6. Define report. Discuss its different types.
SECTION III
C-Language (8x2=16)
Notes: Attemp any two question
Q#7. Explain select case structure with its working.
Q#8. What is language processor? Describe different types of language processor.
Q #9. Write a program in C that displays the following series using while loop.
1,3,5,7,9,11,13,15,17,19,21,23
___________________________________