Fundamentals of Programming Languages (FPL) SPPU Endsem Question Paper Nov 2024
All 10 questions from this SPPU endsem paper, as printed. Read them here or open the PDF.
- Pattern
- 2024 pattern
- Exam
- Endsem
- Session
- Nov 2024
- Max. marks
- 70
- Time
- 2 ½ Hours
- Semester
- I
- Paper code
- [6351]-118
Printed for: F.E.
Instructions to the candidates
- Solve Q.1 or Q.2, Q.3 or Q.4, Q.5 or Q.6, Q.7 or Q.8, Q.9 or Q10.
- Neat diagrams must be drawn wherever necessary.
- Assume suitable data, if necessary.
Questions
Q1
- a)[3]
Define an algorithm and write an algorithm for addition of two numbers.
- b)[3]
Explain brief history of 'C' programming.
- c)[4]
Define an identifier in C. Explain rules of naming an identifier.
- d)[4]
Explain data types in C.
OR- a)
Q2
- a)[3]
Draw a flowchart for division of two numbers.
- b)[3]
Explain tokens in C programming.
- c)[4]
Explain different storage classes in C.
- d)[4]
Define a constant in C. What are the different types of constants in C?
- a)
Q3
- a)[3]
Define an operator and operand in C programming. Give a suitable example.
- b)[3]
What is a conditional operator in C? Explain with a suitable example.
- c)[4]
Explain relational operators in 'C'.
- d)[4]
What is the use of assignment operators? Explain different assignment operators.
OR- a)
Q4
- a)[3]
Explain different arithmetic operators with suitable example.
- b)[3]
What are the different logical operators in 'C'?
- c)[4]
Explain bitwise operators in 'C'.
- d)[4]
What do you mean by operator precedence? Specify the precedence of arithmetic operators. P.T.O. SPPU QUESTION PAPER www.mysppu.in Page 1 MySPPU · Fundamentals of Programming Languages Page 1 of 2 2
- a)
Q5
- a)[4]
Explain different conditional/branching statements in C programming.
- b)[5]
Explain while loop with syntax, Flowchart and give a suitable example.
- c)[5]
This part has equations that don’t show as text. Open the PDF to read it.
OR- a)
Q6
- a)[4]
Explain use of break and continue statement in C programming with a suitable example.
- b)[5]
Explain for loop with syntax, flowchart and give a suitable example.
- c)[5]
Write program to check whether a number is even or odd.
- a)
Q7
- a)[4]
Explain one dimensional array with a suitable example.
- b)[5]
What are the different ways of initialization of arrays in C programming?
- c)[5]
Write a program in 'C' for addition of two matrices.
OR- a)
Q8
- a)[4]
What are the properties of arrays in C?
- b)[5]
What are the different ways of string initialization?
- c)[5]
Write a program to count number of characters in a string using a looping statement.
- a)
Q9
- a)[4]
Explain user defined function definition with syntax and give a suitable example.
- b)[5]
What is a recursion? Explain it with a suitable example.
- c)[5]
Write a program for leap year using function.
OR- a)
Q10
- a)[4]
Explain structure declaration and initialization.
- b)[5]
Explain function declaration, function definition and function call. Give a suitable example.
- c)[5]
Write a program for prime number using function. SPPU QUESTION PAPER www.mysppu.in Page 2 MySPPU · Fundamentals of Programming Languages Page 2 of 2
- a)