0% found this document useful (0 votes)
16 views2 pages

14 Proble Solving Techniques Using C F+R CBCS 2014 15 and Onwards

This document is an examination paper for the B.G.A. Degree in Computer Science, specifically for the course BCA-I03T: Problem Solving Techniques using C, held in November/December 2018. It consists of two sections: Section A requires answers to 10 short questions, while Section B consists of 5 longer questions that involve programming and theoretical explanations. The total duration of the exam is 3 hours, with a maximum score of 70 marks.

Uploaded by

Himanshu Bhayal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views2 pages

14 Proble Solving Techniques Using C F+R CBCS 2014 15 and Onwards

This document is an examination paper for the B.G.A. Degree in Computer Science, specifically for the course BCA-I03T: Problem Solving Techniques using C, held in November/December 2018. It consists of two sections: Section A requires answers to 10 short questions, while Section B consists of 5 longer questions that involve programming and theoretical explanations. The total duration of the exam is 3 hours, with a maximum score of 70 marks.

Uploaded by

Himanshu Bhayal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

-I

I
i

I ilfiil ililt il lllll lllll llll llll ss - 676


th
I Semester B.G.A. Degree Examination, November/December 2018
(CBCS) (F+R) (2014 - 15 & Onwards)
COMPUTER SCIENCE
BCA-I03T : Problem Solving Techniques using C

Time : 3 Hours Max. Marks : 70

lnstruetion : Answer all Sections"

SECTION _ A

l. Answer any 10 questions. (10x2=20)


1) Who developeet C programming ? Write down the default value of char
datatype.
2) Define an algorithm" Write down any two disadvantages of an algorithm.
3) What is qualifier ? List the qualifiers applied to the primitive datatypes'
4) What is the output of following eode :

# define mul (a, b) a-b


void main 0
{
intx=5,y=3,r;
r=mul(x+y,x-y);
printf(" r = ak d", t);
)
5) Differentiate between break and exit statements'
6) Explain ternary operator with an example"
7) Write down any two disadvantages of an arraY.
B) Explain function prototyPe.
e) What is the difference between gets 0 and scanf$ input functions ?

10) Define implicit and explicit type casting.


11) Define strueture and union"
12) What is use of rnallocfl and calloefl funetions ?
P.T.0.
$$ - 676 I lrilil! illt! ilt ililt ltill ilil ilt

SECTION _ B

ll. Answer any 5 questions. (5x10=50)


13) a) Explain characteristics of C.
5
b) Develop an algorithm to find smallest of ttrree numbers. 5
14) a) lf x = 50 and y = 20 then perform :

i) x&y ii) xly and iii) xny 5


b) Explain unformatted l/O functions. 5
,

15) a) Write a program to demonstrate call by valure and call by reference. 5


b) Explain while and do-whilg control structures. 5
16) a) lf city [] = "BENGALURU" then write the output using following functions :
i) printf("%s", city);
ii) printf("7oSs", city);
iii) printf("7o1 0.6s", city);
iv) printf("o/o - 10.6s", city);
v) printf("7o10"0s", city); s
b) Write a program to caleulato
NCR = NllR!.(N - n)l using function. s
17) a) Write a prograrn to dernonstrate structure" s
b) Write a note on storage classes" s
18) a) what is macro ? Explain rnacro definition wlth example. 5
b) Explain any five strlng operations with example. 5
19) a) Write a program to display fibonacci series using recursive function. 5
b) write a program to eopy contents of a file into another. 5
20) a) write a program to concatenate two strings using pointers.
5
b) Explain file access methods in e . 5

You might also like