Introduction to C Programming — Major (End Semester) 2024 question paper
MMMUT Computer Science and Engineering previous year question paper for Introduction to C Programming (BCS-110), semester 1, Major (End Semester) 2024. All 24 questions are listed below, each with a written answer on Nexsus.
Paper details
Subject: Introduction to C Programming (BCS-110)
Branch: Computer Science and Engineering
Semester: 1
Exam: Major (End Semester) 2024
Questions: 24
Questions asked in Introduction to C Programming Major (End Semester) 2024
Q1. Attempt any Five parts of the following.
Q1(a). Define the algorithm and flowchart with suitable examples. [2 marks]
Q1(b). Explain the different data types used in C language. Define variable declaration and variable definition. [2 marks]
Q1(c). Explain the union data type with suitable examples. [2 marks]
Q1(d). Describe the command line arguments. [2 marks]
Q1(e). What is pointer? What operators are used in C pointers? [2 marks]
Q1(f). Describe the role of preprocessor, compiler, linker, and loader in execution of a program. [2 marks]
Q1(g). Describe the arguments, parameters, and function return types. [2 marks]
Q2. Attempt any Two parts of the following.
Q2(a). Write a program in C to add natural numbers up to 10 using goto statement. Define return statement and exit() with suitable examples. [5 marks]
Q2(b). Describes the tokens, literals, identifiers, constants and variables in detail. What are the storage classes? Explain. [5 marks]
Q2(c). Write program to compare four numbers and print them. Write program for Fibonacci series and sum up to 10 terms. [5 marks]
Q3. Attempt any Two parts of the following.
Q3(a). Write programs in C for binary search, and insertion sort. [5 marks]
Q3(b). Write a program in C that count the frequency of repeated elements of an array and print the array without repetition of elements. [5 marks]
Q3(c). Write a program in C to swap two numbers using pointer to function concept. Differentiate between puts(), printf(), get() and scan() functions. [5 marks]
Q4. Attempt any Two parts of the following.
Q4(a). Write a program in C to print the details of those students who have marks greater than 75% of given 100 students using pointer to structure. Number of students and details are input through the keyboard. Students details contain student name, roll no, and percentage. [5 marks]
Q4(b). Explain and differentiate the structure and union in detail with suitable examples [5 marks]
Q4(c). Write a program in C that passes an array in a function. The function print the array elements. What operations we can perform with pointers? [5 marks]
Q5. Attempt any Two parts of the following.
Q5(a). Write a program in C to add natural numbers up to 10 using command line arguments. Explain the argument count and argument vector used in command line arguments. [5 marks]
Q5(b). Describe the graphics drivers, graphics modes, and inigraphy, and ator() functions. [5 marks]
Q5(c). Write a program in C that implement the calloc(), realloc() and free() functions. Explain the static and dynamic memory allocation with examples. [5 marks]