0% found this document useful (0 votes)
72 views4 pages

Bca 1 Sem Basic Programming in C 1002 p16 Apr 2018

This document contains a practice test for a Basic Programming in C course. It has 7 multiple choice questions and 7 short answer questions in the first section. The second and third sections contain additional questions about C programming concepts like data types, operators, functions, arrays, loops, and more. Students are instructed to attempt questions from different groups. The document provides a comprehensive review of key topics in a C programming course.

Uploaded by

Tukaram Satpute
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)
72 views4 pages

Bca 1 Sem Basic Programming in C 1002 p16 Apr 2018

This document contains a practice test for a Basic Programming in C course. It has 7 multiple choice questions and 7 short answer questions in the first section. The second and third sections contain additional questions about C programming concepts like data types, operators, functions, arrays, loops, and more. Students are instructed to attempt questions from different groups. The document provides a comprehensive review of key topics in a C programming course.

Uploaded by

Tukaram Satpute
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/ 4

http://www.sppuonline.

com

Total No. of Questions :7] SEAT No. :


P1003 [5319]-1002
[Total No. of Pages :4

F.Y.B.C.A.
SCIENCE
BCA - 102: Basic Programming in ‘c’
(2016 Pattern) (Semester-I)

Time : 3Hours] [Max. Marks :70


Instructions to the candidates :
1) Question No.1 (A and B) are compulsory.
2) Attempt any two questions from Group-I.
3) Attempt any two questions from Group-II.
4) Figures to the right indicate full Marks.

Q1) A) Choose Correct Option. [7]


a) The operator? : is a ____ operator.
i) unary ii) binary

iii) ternary iv) none of these.

b) The Prototype of a function is used to ____

i) define a function ii) declare a function


iii) delete a function iv) all of these.

c) Which of the following is not an arithmetic operator.

i) a * = 10 ii) a/ = 10

iii) a ! = 10 iv) a % = 10
d) The value obtained in the function is given back to main by using
keyword___
i) return ii) static

iii) new iv) volatile

[5319]-1002 1 P.T.O.

http://www.sppuonline.com
http://www.sppuonline.com

e) Size of an array can be evaluated by (assuming array declaration int


a [10];) __________
i) size of (a) ii) size of (*a)

iii) size of (a[10]) iv) size of (a) * 10

f) ___ of the following is unconditional control statement.

i) do - while ii) goto


iii) for iv) if - else

g) The function ‘getch’ is define in _______header file.

i) < conio.h > ii) < stdio.h >

iii) < math.h > iv) < cty pe-h >

B) Answer the following. [7]

a) What is the use of printf statement?

b) Define function.
c) What is escape sequence for null character?

d) What is the use of puts ().

e) Define array. Give example.

f) What is type casting.


g) What does associativity specify?

GROUP - I

Q2) Attempt the following.


a) Explain basic data types in ‘c’ language. [5]

b) Give advantages and disadvantages of algorithm. [5]

c) Draw a flowchart to find maximum of three numbers. [4]

[5319]-1002 2

http://www.sppuonline.com
http://www.sppuonline.com

Q3) Attempt the following.

a) Describe the structure of ‘c’ program with the help of diagram. [4]

b) Explain bitwise operator in detail. [4]

c) Write an algorithm to check if the given number is prime or not [3]

d) Explain enumerated data type with syntax. [3]

Q4) Attempt the following.


a) What is recursion? Explain with example. [4]

b) Trace the output with justification. [4]

int main ()

{ int arr [] = {}
printf (“% d”, size of (arr) ) ;

return o ;

c) Give the difference between entry controlled loop and exit controlled
loop. [3]
d) Explain switch-case statement with an example. [3]

GROUP-II
Q5) Attempt the following.

a) Explain “for” loop with syntax & example. [5]

b) Write a “c” program to reverse the given number. [5]

c) Explain different storage classes. [4]

[5319]-1002 3

http://www.sppuonline.com
http://www.sppuonline.com

Q6) Attempt the following.


a) What is escape sequence? Explain with examples. [4]

b) Explain with an example row and column major representation of two-


dimensional array. [4]

c) Explain call by reference with example. [3]

d) Explain the following functions with an example. [3]


i) getchar ( )

ii) Putchar ( )

iii) getch ( )

Q7) Attempt the following.

a) Define a flow chart & explain its symbols. [4]

b) Explain features of ‘c’ language. [4]

c) Write an algorithm to convert temperature from celcius to Fahrenheit.[3]


d) Explain different types of constants with an example. [3]

T T T

[5319]-1002 4

http://www.sppuonline.com

You might also like