How To Exam?

a knowledge trading engine...


Punjab Technical University 2010-6th Sem B.B.A Programming in C/C++ ( ) - Question Paper

Monday, 08 April 2013 05:40Web



Roll No.......................

Total No. of Questions : 13]    [Total No. of Pages : 02

Paper ID [B0145]

(Please fill this Paper ID in OMR Sheet)

BBA (BB - 1002) (S05) (LE) (Sem. - 6th) PROGRAMMING IN C/C++

Time : 03 Hours    Maximum Marks : 75

Instruction to Candidates:

1)    Section - A is Compulsory.

2)    Attempt any Nine questions from Section - B.

Section - A

Q1)    (15 x 2 = 30)

a)    What are the rules for declaring variable in C language? Explain with example.

b)    What is a constant? How it is defined and used?

c)    What is assembly language? Give example.

d)    What are various data types supported by C? Give memory requirement of each.

e)    Compare local and global variables with example.

f)    Define string. What are the main operations on strings defined in C?

g)    What do you mean by function? How it is defined?

h)    Distinguish between while and do-while control statements.

i)    What is an array? How it is declared?

j)    Explain the For statement with example.

k)    How can the size of a structure be determined? Give example.

l)    Differentiate between array and structure.

m)    What is a destructor? How it is defined?

n)    Write down the main differences between C and C++.

o) Define Class. How object and class are related to each other? Give example.

A-48    P.T.O.

Q2) Explain various stages of software.

Q3) Explain the basic data types of C language with example. Also explain their memory requirement.

Q4) Differentiate between structured and object oriented programming.

Q5) Discuss arithmetic and logical operators available in C with the help of examples.

Q6) What is recursion? Explain with the help of an example.

Q7) Write a program in C to multiply two matrices.

Q8) Explain the different ways to pass arguments to a function with the help of suitable example.

Q9) Explain the Nested if and Switch statements of C with example.

Q10)What do you mean by constructor? Discuss various types of constructors with the help of examples.

Q11)Explain various types of files available in C.

Q12)How structure is defined? Write a program to design a structure for 30 students of a class with Rollno, Name and Marks.

Q13)Write short notes on :

(a)    Encapsulation.

(b)    Polymorphism.

A-48    2







Attachment:

( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Punjab Technical University 2010-6th Sem B.B.A Programming in C/C++ ( ) - Question Paper