0% found this document useful (0 votes)
27 views

BCA (Serfi.-1.t) U: Roll No. Total No. of Questions: 071 (Total No. of Pages: 02 ('t3+ 3ze Al I Su/7 - Eet-R 4ycc, @ta

1) The document contains questions related to programming in C for an exam. It has two sections - Section A with 10 short answer questions and Section B with 4 long answer questions. 2) The questions cover various topics in C programming including data types, loops, arrays, strings, functions, pointers, matrices and classes. 3) The document provides instructions to candidates regarding the exam structure and guidelines for attempting questions.

Uploaded by

Basant Singh
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

BCA (Serfi.-1.t) U: Roll No. Total No. of Questions: 071 (Total No. of Pages: 02 ('t3+ 3ze Al I Su/7 - Eet-R 4ycc, @ta

1) The document contains questions related to programming in C for an exam. It has two sections - Section A with 10 short answer questions and Section B with 4 long answer questions. 2) The questions cover various topics in C programming including data types, loops, arrays, strings, functions, pointers, matrices and classes. 3) The document provides instructions to candidates regarding the exam structure and guidelines for attempting questions.

Uploaded by

Basant Singh
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Roll No.

Total No. of Questions: 071


[Total No. of Pages: 02
('t3+^3ze al I su/7|eet-r 4ycc, @ta

u
BCA (Serfi.-1.t)

PROGRAMMING IN C
SUBJECTCODE: BC - 104(N2)
PaperID : [B020al
lNote : Pleasefill subjectcodeand paperlD on Oi\lRl

l\{aximumMarks:60

T i m e : 0 3H o u r s
Instruction to Candidates:
1) Section- A is Compulsory.
2), Attempt any Four questionsfrom Section- B.
Section- A
QI)

Q0x2:20)
a) What do you understandby programming paradigm?Name various
progralnmingparadigni.
b) Differentiatebetweenstrlen() and sizgo( ) with suitableexamples.
c) Write any two advantagesof pointers?
Give suitableexample.
d) What is typedefdeclaration?
e) What are the three constructsthat govern statementflow?
0

Give the functionof sizeof operator?

g) What doesthe file iostream.hconsistsof ?


h) How to open or close af/'e?
t)

How is a staticvariabledifferent from a staticfunction?

j)

Identi$ the error in the following C statement.


int x[8], i;
for(i:0; i 1: $;++i)
x[i] : i;
Will the effor be defected?lf so when?

J-32e[812e]

PTO.

Section- B
(4x10:40)
Q2) (a) Explainbasicdatatypesavailablein C rviththehelpof example.
(b) Write a functionin C to f-u-rd
the sumof the fbllowirrgseries:
| + 2 + 3 + 4 + 5 + 6 + 7 + .......up to n tenns.
Q3) (a) Compareall the threeloopsavailablein C.
(b) Explain tl-revariouscharacterinput/outputfunctionswith the help of
suitableexamples.
Q4) (a) Write a programin C to sort in ascendingorder integerelementsof one
dimensionalarray.
(b) Differentiatebetweenpassby value and passby referencewith the help
of example.
two strings.
QS) (a) Write a programto concatenate
(b) Explain the conceptof passinganay to functions.
Q6) (a) Explain the relationshipofone dimensionalarraywith pointers.
(b) Write a programin C to bubblesort the given 10 numbers.
Q7) (a) Write a programusing C to computetransposeof a matrix.
(b) What is a class?How the objects are created?Explain with help of
examples.

EEEE

J-329

You might also like