N Nexsus

Programming Fundamentals — Minor 2 2023 question paper

MMMUT Information Technology previous year question paper for Programming Fundamentals, semester 2, Minor 2 2023. All 8 questions are listed below, each with a written answer on Nexsus.

Paper details

  • Subject: Programming Fundamentals
  • Branch: Information Technology
  • Semester: 2
  • Exam: Minor 2 2023
  • Questions: 8

Questions asked in Programming Fundamentals Minor 2 2023

  1. Q1(a). (i) Differentiate between Static & Dynamic Memory allocation. (ii) Differentiate between Structure & Union. [3 marks]
  2. Q1(b). Write a C function select(list) to sort the list of N numbers using bubble sort. [2 marks]
  3. Q1(c). What is recursion ? Explain their different types with example in each type. [2 marks]
  4. Q2(a). What are different types of files that can be handled in C? Discuss all six operation modes- r, w, x, r+, w+, a+ in which a file can be opened. Also discuss the syntax and use of ftell() & fseek(). [3 marks]
  5. Q2(b). Create a single linked list whose elements can be retrieved in LIFO order using a user-defined function display(link *st) where st is a pointer holding the starting address of created list. [2 marks]
  6. Q2(c). What are command line arguments? Write C code that performs addition of all numbers that are passed to it through command line. [2 marks]
  7. QQ1. Attempt any two parts of the following . Q1(a) is compulsory.
  8. QQ2. Attempt any two parts of the following . Q2(a) is compulsory.