Sie sind auf Seite 1von 2

BCA-103 ] BCA-103 ] [Contd.... [Contd.... [Contd....

1
SECTION - A
Q.1 Short answer type questions (maximum limit 80-100
words). (Attempt any six questions)
i. Define top-down programming approach.
ii. Explain syntax error and logic error.
iii. Define data type and classification in C language.
iv. Explain Logical and Bitwise operators with example to
each.
v. Explain syntax of nested if.
vi. Explain the use of break, continue and goto.
vii. Explain function prototype and its significance.
viii. Explain storage classes.
ix. If an array is declared as A[1...N], and the base address
of array is 1101, write formula to find address of i
indexed element.
x. Define Pointers.
65
=30
Time : 3 Hours ] [ Max.Marks : 70
JAIPUR NATIONAL UNIVERSITY, JAIPUR
Roll No. : _________________________
NAME OF PROGRAMME : BCA
TITLE OF PAPER : PROBLEM SOLVING
THROUGH C PROGRAMMING
CODE OF PAPER : BCA - 103
BCA - 103
School of Distance Education & Learning
Term-End-Examination : JUNE - 2014
Total Printed Pages :
3
Instructions :
The question paper is in two Sections - A & B. SectionA consists of 10 short
answer type questions, each of 5 marks (answer in 80 to 100 words) Students
are required to attempt SIX questions from SectionA. Section B consists of 7
descriptive type questions, each of 10 marks (answer limit 300 words) Students
are required to attempt any FOUR questions from Section - B.
BCA-103 ] BCA-103 ] [Contd.... [Contd.... [Contd....
SECTION - B
Attempt any four questions :
Q.2 Design a flow chart to find if a three digit number entered
by a user is armstrong or not [HINT: A number is Armstrong
if the sum of cube of all digit is equal to the same number].
Q.3 Find output of the following code :
a. Main (){
int x
=10, y = 20, z = 5, i;
i = x < y < z;
printf(%d), i);
}
b. Main (){
int i = 3, j=2, k=0, M;
M=++j && ++i||++k;
printf(%d%d%d%d, i,j,k,M);
}
c. Main (){
char str1[]=Hello;
char str2[] = Hello;
if(str1 == str2)
printf(Equal);
else
printf(Not Equal);
}
d. Main(){
int i = 1;
for (i=0; i = 1; i = 1){
printf(%d, i);
if(i!=1)
break;
}
return 0;
}
2
e. Main (){
int i = 1;
i = 2 + 2 * i ++;
printf(%d, i);
return 0;
}
Q.4 Write a C program to fine factorial of a number using call
by value.
Q.5 Write a C program to find LCM and GCD of two numbers
using function.
Q.6 Define Matrix. Write a C program to find addition of two
matrices of size nxm.
Q.7 Define structure. How can a structure data members be
accessed using structure pointer variable?
Q.8 Write short notes on :
a. putchar ()
b. fseek ()
c. getc ()
d. fread () and fwrite ()
________
3
104
=40
10
25
10
10
10
10
2.54

Das könnte Ihnen auch gefallen