Skip to content
EndsemNov 20242024 patternFE

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

  1. 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.
  2. Neat diagrams must be drawn wherever necessary.
  3. Assume suitable data, if necessary.

Questions

  1. Q1

    1. a)

      Define an algorithm and write an algorithm for addition of two numbers.

      [3]
    2. b)

      Explain brief history of 'C' programming.

      [3]
    3. c)

      Define an identifier in C. Explain rules of naming an identifier.

      [4]
    4. d)

      Explain data types in C.

      [4]
  2. Q2

    1. a)

      Draw a flowchart for division of two numbers.

      [3]
    2. b)

      Explain tokens in C programming.

      [3]
    3. c)

      Explain different storage classes in C.

      [4]
    4. d)

      Define a constant in C. What are the different types of constants in C?

      [4]
  3. Q3

    1. a)

      Define an operator and operand in C programming. Give a suitable example.

      [3]
    2. b)

      What is a conditional operator in C? Explain with a suitable example.

      [3]
    3. c)

      Explain relational operators in 'C'.

      [4]
    4. d)

      What is the use of assignment operators? Explain different assignment operators.

      [4]
  4. Q4

    1. a)

      Explain different arithmetic operators with suitable example.

      [3]
    2. b)

      What are the different logical operators in 'C'?

      [3]
    3. c)

      Explain bitwise operators in 'C'.

      [4]
    4. d)

      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

      [4]
  5. Q5

    1. a)

      Explain different conditional/branching statements in C programming.

      [4]
    2. b)

      Explain while loop with syntax, Flowchart and give a suitable example.

      [5]
    3. c)

      This part has equations that don’t show as text. Open the PDF to read it.

      [5]
  6. Q6

    1. a)

      Explain use of break and continue statement in C programming with a suitable example.

      [4]
    2. b)

      Explain for loop with syntax, flowchart and give a suitable example.

      [5]
    3. c)

      Write program to check whether a number is even or odd.

      [5]
  7. Q7

    1. a)

      Explain one dimensional array with a suitable example.

      [4]
    2. b)

      What are the different ways of initialization of arrays in C programming?

      [5]
    3. c)

      Write a program in 'C' for addition of two matrices.

      [5]
  8. Q8

    1. a)

      What are the properties of arrays in C?

      [4]
    2. b)

      What are the different ways of string initialization?

      [5]
    3. c)

      Write a program to count number of characters in a string using a looping statement.

      [5]
  9. Q9

    1. a)

      Explain user defined function definition with syntax and give a suitable example.

      [4]
    2. b)

      What is a recursion? Explain it with a suitable example.

      [5]
    3. c)

      Write a program for leap year using function.

      [5]
  10. Q10

    1. a)

      Explain structure declaration and initialization.

      [4]
    2. b)

      Explain function declaration, function definition and function call. Give a suitable example.

      [5]
    3. c)

      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

      [5]