This document outlines a programming assignment for a first semester Introduction to C Programming course. The assignment covers key topics in C including the history and advantages of C, input/output functions like scanf() and printf(), static and external variables, pass by value vs pass by reference, macros, and file handling functions like fopen() and fclose(). Students are asked to answer 6 questions, providing explanations and examples for 10 marks each, for a total of 60 marks.
This document outlines a programming assignment for a first semester Introduction to C Programming course. The assignment covers key topics in C including the history and advantages of C, input/output functions like scanf() and printf(), static and external variables, pass by value vs pass by reference, macros, and file handling functions like fopen() and fclose(). Students are asked to answer 6 questions, providing explanations and examples for 10 marks each, for a total of 60 marks.
This document outlines a programming assignment for a first semester Introduction to C Programming course. The assignment covers key topics in C including the history and advantages of C, input/output functions like scanf() and printf(), static and external variables, pass by value vs pass by reference, macros, and file handling functions like fopen() and fclose(). Students are asked to answer 6 questions, providing explanations and examples for 10 marks each, for a total of 60 marks.
SEMESTER FIRST SUBJECT CODE & NAME MCA1020- PROGRAMMING IN C CREDIT 4 BK ID B1639 MAX. MARKS 60
Answer all questions Q. No. Question Marks Total Marks 1 Explain the history of C language. What are the advantages of C language? 5+5 10 2 Write short notes on: a) scanf() b) printf() 5+5 10 3 Describe about static and external variables. 5+5 10 4 Distinguish between pass by value and pass by reference with the help of an example.
5+5 10 5 Define macro. How we can declare a macro statement? Explain with an example. 3+2+5 10 6 What is the use of fopen () and fclose () function? List and explain different modes for opening a file. 4+4+2 10