Agarwal PG College Agarwal PG College
BCA (PART-I) Internal Examination BCA (PART-I) Internal Examination
SUBJECT: PPL SUBJECT: PPL
Time:3Hrs M.M=80 Time:3Hrs M.M=80
Part-1 Part-1
Marks:- 2*10=20 Marks:- 2*10=20
1. Attempt all the questions: (Short answer-type questions) 1. Attempt all the questions: (Short answer-type questions)
1. What is a programming language? 1. What is a programming language?
2. Define syntax and semantics in the context of programming languages. 2. Define syntax and semantics in the context of programming languages.
3. What was the first high-level programming language and when was it 3. What was the first high-level programming language and when was it
developed? developed?
4. Who developed C language and in which year and where? 4. Who developed C language and in which year and where?
5. What is operator precedence? 5. What is operator precedence?
6. What is purpose of null character ("\0")? 6. What is purpose of null character ("\0")?
7. What are the uses of function? 7. What are the uses of function?
8. What is argument in function? 8. What is argument in function?
9. What is scale factor? 9. What is scale factor?
10. Define union. 10. Define union.
Part-2
Marks:- 12*5=60 Part-2
UNIT -I Marks:- 12*5=60
2. (A) Explain the programming language evaluation criteria. UNIT -I
(B) Write short notes on- 2. (A) Explain the programming language evaluation criteria.
(1) High Level languages (C) Write short notes on-
(2) Pseudo Code (3) High Level languages
OR (4) Pseudo Code
(a) What is an algorithm? Write an algorithm to display first 10 terms of OR
Fibonacci series. (a) What is an algorithm? Write an algorithm to display first 10 terms of
(b) What is flowchart? Draw a flowchart for finding the largest number Fibonacci series.
among three numbers. (b) What is flowchart? Draw a flowchart for finding the largest number
among three numbers.
Unit-2 Unit-2
2. (a) What is Constant? How a Constant defined in C? How the Constant is 2. (a) What is Constant? How a Constant defined in C? How the Constant is
differ from Variable? differ from Variable?
Explain with example. Explain with example.
(b) Explain the following statements with example – (b) Explain the following statements with example –
(i) break & continue (i) break & continue
(ii) goto (ii) goto
OR OR
(a) What do you mean by Iteration? Explain various type of loops (a) What do you mean by Iteration? Explain various type of loops
available in C with syntax and examples. available in C with syntax and examples.
(b) Write a C program to compute the sum of the digits of a given integer (b) Write a C program to compute the sum of the digits of a given integer
number. number.
UNIT -3 UNIT -3
3. Define Array. What are the advantages and disadvantages of Array? How 3. Define Array. What are the advantages and disadvantages of Array? How
to declare and initialization of two-dimensional array explain with to declare and initialization of two-dimensional array explain with
example example
OR OR
Explain the following terms Explain the following terms
(a) Function calls (b) Recursion Function (a) Function calls (b) Recursion Function
(c) Return values (e) Function Prototype (f) Parameter passing (c) Return values (e) Function Prototype (f) Parameter passing
UNIT-4 UNIT-4
5. (a) What is Pointer? What are the benefits of the Pointer? How pointer 5. (a) What is Pointer? What are the benefits of the Pointer? How pointer
variables are used in a program? variables are used in a program?
(b) Write a C program to read two integer values and swap the values using (b) Write a C program to read two integer values and swap the values using
function with pointer. function with pointer.
OR OR
(2) What is meant by the following terms? (2) What is meant by the following terms?
(I) Structure and Union (I) Structure and Union
(ii) Array of structures (ii) Array of structures
(b) Write a C program for demonstrating operations on individual (b) Write a C program for demonstrating operations on individual
structure's members using pointer notation. structure's members using pointer notation.