bca-103

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. 6×5 =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. Section–A 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 Section–A. 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.

Upload: deepak-tamboli

Post on 21-Jul-2016

5 views

Category:

Documents


0 download

DESCRIPTION

papers for bca

TRANSCRIPT

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

SECTION - AQ.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.

6×5=30

Time : 3 Hours ] [ Max.Marks : 70

JAIPUR NATIONAL UNIVERSITY, JAIPUR

Roll No. : _________________________

NAME OF PROGRAMME : BCATITLE OF PAPER : PROBLEM SOLVING

THROUGH ‘C’ PROGRAMMINGCODE OF PAPER : BCA - 103

BCA - 103

School of Distance Education & LearningTerm-End-Examination : JUNE - 2014

Total Printed Pages : 3

Instructions :The question paper is in two Sections - A & B. Section–A consists of 10 shortanswer type questions, each of 5 marks (answer in 80 to 100 words) Studentsare required to attempt SIX questions from Section–A. Section B consists of 7descriptive type questions, each of 10 marks (answer limit 300 words) Studentsare required to attempt any FOUR questions from Section - B.

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

SECTION - BAttempt any four questions :

Q.2 Design a flow chart to find if a “three digit number” enteredby a user is armstrong or not [HINT: A number is Armstrongif 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

10×4=4010

2×5

10

10

10

10

2.5×4