Introduction to C Programming — Minor 2 2020 question paper
MMMUT Electrical Engineering previous year question paper for Introduction to C Programming (BCS-01), semester 1, Minor 2 2020. All 8 questions are listed below, each with a written answer on Nexsus.
Paper details
Subject: Introduction to C Programming (BCS-01)
Branch: Electrical Engineering
Semester: 1
Exam: Minor 2 2020
Questions: 8
Questions asked in Introduction to C Programming Minor 2 2020
Q1(a). What is array? Explain the declaration and initialization of one dimensional and two dimensional array with an example. [3 marks]
Q1(b). How string is declared and initialized? Write a C program to reverse the string without using built-in function strrev(). [2 marks]
Q1(c). Explain nested structure and self referential structure with example. [2 marks]
Q2(a). Write a C function to find the largest and smallest in a given list of integers of size n using call by reference: void minmax( int list[ ], int n, int *min, int *max); [3 marks]
Q2(b). What is static memory allocation and dynamic memory allocation? Write the syntax of malloc(), calloc(), realloc() and free(). [2 marks]
Q2(c). Explain at least four file handling operations available in C language giving their syntax. [2 marks]
QQ.1. Attempt any Two parts of the following. Q. 1(a) is compulsory. (Units-III)
QQ.2. Attempt any Two parts of the following. Q. 2(a) is compulsory. (Units-IV)