0% found this document useful (0 votes)
8 views

C Syllabus

The document is a syllabus for a C programming course, covering topics such as programming fundamentals, decision-making statements, loops, arrays, strings, functions, structures, pointers, dynamic memory management, and file handling. It includes a model question paper with sections for short answer and essay questions, as well as a problem-solving lab section with programming exercises. Reference books for further reading are also provided.

Uploaded by

jsssdpavankumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

C Syllabus

The document is a syllabus for a C programming course, covering topics such as programming fundamentals, decision-making statements, loops, arrays, strings, functions, structures, pointers, dynamic memory management, and file handling. It includes a model question paper with sections for short answer and essay questions, as well as a problem-solving lab section with programming exercises. Reference books for further reading are also provided.

Uploaded by

jsssdpavankumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Syllabus

UNIT I

Introduction: Introduction to programing, Compiler and interpreter, Concepts of Machine


level, Assembly level and high-level programming, Flowcharts and Algorithms
Fundamentals of C: History of C, Features of C, Structure of C program, C Tokens-variables
and keywords and identifiers, Constants and Data types, Rules for constructing variable
names, Operators, Input /output statements in C-Formatted and Unformatted I/O.

UNIT II

Decision making statements: if, if else, Nested if, else- if ladder, switch statements Control. Loop
statements: while loop, for loop and do-while loop. Jump Control statements: break, continue and
goto. Arrays: One Dimensional arrays - Declaration, Initialization and Memory representation; Two
Dimensional arrays -Declaration, Initialization and Memory representation.

UNIT III

Strings: Declaring & initializing string variables; String handling functions, Character handling
functions. Functions: Function Prototype, definition and calling. Return statement. Nesting of
functions. Categories of functions. Recursion, Parameter Passing by address & by value. Local and
Global variables. Storage classes: automatic, external, static and register.

UNIT IV

Structures: Basics of structure, structure members, accessing structure members, nested structures,
array of structures, structure and functions, structures and pointers. Unions - Union definition;
difference between Structures and Unions. Pointers: Pointer data types, Pointer declaration,
initialization, accessing values using pointers. Pointer arithmetic. Pointers and arrays, pointers and
functions. Dynamic Memory Management: Introduction, Functions-malloc, calloc, realloc, free.

UNIT V

Files: Introduction to Files – Using Files in C – Reading Data from Files – Writing Data to Files –
Detecting the End-of-file -Accepting Command Line Arguments.

REFERENCE BOOKS:

1. E Balagurusamy – Programming in ANSIC – Tata McGraw-Hill publications.

2. Brain W Kernighan and Dennis M Ritchie - The ‘C’ Programming language” - Pearsonpublications.
3. Ashok N Kamthane: Programming with ANSI and Turbo C, Pearson Edition Publications

4. YashavantKanetkar - Let Us ‘C’ – BPB Publications.


Model Question paper
SECTION-A

Answer FIVE of the following questions. 5 x 4 = 20 M

1. Define algorithm? What are the features of Algorithm?

2. Explain Variables in ‘C’.

3. Explain the difference between while and do-while.

4. Explain about the Jumping Statements?

5. Explain recursion given an example?

6. What is pointer? How to declare a pointer with example.

7. Differences between structure and union.

8. Explain about file modes?

SECTION-B

Answer ALL of the following questions. 5 x 8 = 40 M

9. A) Explain basic structure of C

(OR)

B) Explain different operators available in C

10. A) Explain different decision making statements.

(OR)

B) Explain two-dimensional array with an example?

11. A) Write different string handling functions.

(OR)

B) Explain about the call by value and call by address?

12. A) Write a Procedure to create Structure.

(OR)

B) Explain Dynamic memory allocation with example.

13. A) Explain about the file management?

(OR)
B) How to read the data from the file? Explain?

Question Bank

4 MARKS (Short Answer Questions)

Unit-I

1. Define algorithm? What are the features of Algorithm?

2. Explain different programming languages.

3. Explain Variables in ‘C’.

4. Explain Input/output Functions in ‘C

Unit-II

1. Explain while loop with an example.

2. Explain the difference between while and do-while.

3. Explain about the Jumping Statements?

Unit-III

1. What is String? How to declare & initialization of string variable?

2. Explain recursion given an example?

3. Explain Local & Global variables?

Unit-IV

1. What is pointer? How to declare a pointer with example.

2. Differences between structure and union.

3. Explain about nested structure?

Unit-V

1. Explain fopen() ,fclose() functions in files.

2. Explain about file modes?

3. What are command line arguments give an example?


8 MARKS (Essay Questions)

Unit-I

1. Explain different operators available in C

2. Explain different data types available in C

3. Explain the structure of C

4. Explain flow chart with example.

Unit-II

1. Explain different looping statements.

2. Explain different decision making statements.

3. Define array? Explain one dimensional array with an example?

4. Explain two dimensional array with an example?

Unit-III

1. Write different string handling functions.

2. Explain different categories of functions?

3. Explain about the call by value and call by address?

Unit-IV

1. Write a procedure to create structure.

2. Explain about the array of structure with example?

3. Explain Dynamic memory allocation with example.

Unit-V

1. Explain about the file management?

2. How to read the data from the file? Explain?

3. How to write the data into the file? Explain?


PROBLEM SOLVING USING C LAB

1. Write a program to find biggest among three numbers.

2. Write a program to calculate simple & compound interest

3. Write a program to swap two numbers using third variable and without using thirdvariable.

4. Write a program to perform arithmetic operations using switch case.

5. Write a program to print RAINBOW colors using switch case.

6. Write a program to find roots of a quadratic equation.

7. Write a program to print the result of a student by using the following conditions.

1. if marks in any subject is <35 then the result is fail

2. if average marks between 35 and 50 then the result is third class

3. if average is between 50 and 60 then the result is second class

4. if average is 60 and above then the result is first class

8. Write a program to find whether the given number is Prime or not

9. Write a program to find display 1 to 1000 Armstrong numbers.

10. Write a program to find whether the given number palindrome or not

11. Write a program to find whether the given number is perfect or not.

12. Write a program to print Fibonacci series

13. Write a program to find sum of first N natural numbers.

14. Write a c program to find the sum of individual digits of a positive integer.

15. Write a program to sort Array Elements

16. Write a program to Search an Element in Array

17. Write a program to perform Matrix Addition

18. Write program to perform Matrix Multiplication

19. Write a program whether the input matrix is Transpose or not

20. Write a program to perform all String functions

21. Write a program to find number of vowels, consonants and words in a given string.

22. Write a program to find whether the given string is palindrome or not.
23. Write a program to find factorial of given number using recursion.

24. Write a program to pass the array element to the function. Use the call by valuemethod and call
by reference.

25. Write a program to define a structure and initialize its member variables.

26. Write a program to print no of student information using nested structure.

27. Write a program to declare pointer to structure and display the contents ofthe structure.

28. Write a program to print the command line argument.

29. Write a program to read the data from file.

30. Write a program to write the data into the file.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy