[go: up one dir, main page]

0% found this document useful (0 votes)
30 views3 pages

Question Bank - C Programming

The document outlines the curriculum for the Programming with C course (B24CI0104) for the academic year 2024-25, covering topics such as algorithms, flowcharts, data types, operators, control statements, arrays, structures, strings, pointers, functions, and file operations. Each unit includes definitions, examples, and C programming exercises to reinforce learning. The course aims to provide a comprehensive understanding of programming concepts and practical skills in C language.

Uploaded by

vermashubham1420
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)
30 views3 pages

Question Bank - C Programming

The document outlines the curriculum for the Programming with C course (B24CI0104) for the academic year 2024-25, covering topics such as algorithms, flowcharts, data types, operators, control statements, arrays, structures, strings, pointers, functions, and file operations. Each unit includes definitions, examples, and C programming exercises to reinforce learning. The course aims to provide a comprehensive understanding of programming concepts and practical skills in C language.

Uploaded by

vermashubham1420
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/ 3

School of Computing and Information Technology

Course (Subject): Programming with C


Course Code: B24CI0104
Academic Year 2024-25

Academic Year 2024-25


UNIT 1&2
Algorithm
 Definition
 Advantage of writing algorithm
Flowchart- Definition
 Notations used to write a flow chart
 Area of rectangle
 find the area of a triangle when all three sides are given.
 Area of Triangle
 Area of Circle
 Simple interest
 Provide examples of algorithms used in C programming along with their properties and
advantages. Develop a algorithm to Convert degrees in Fahrenheit to Celsius.
 Write a C program to find the largest of 3 numbers.
 Illustrate different data types available in C Language.
 Explain formatted input and output statement with examples
 various operators in C
 Develop a C program to design a simple calculator which performs arithmetic operations.
 List the various operators in C. Explain the logical operators, increment, decrement and bitwise
operators with an example.
 Develop a program to demonstrate arithmetic and assignment operators in C with examples
 Apply the rules to be followed to evaluate the following expression
2*((a%5) *(4+(b-3)/(c+2))), where a=8, b=15, and c=4.
 Given int a = 10, b = 5, evaluate the expression (a > b) ? (a - b) : (b - a) and explain the result
based on the condition
x - y || (x - y * z) + p && q - r % 4 assuming x = 20, y = 5, z = 4, p = 10, q = 15, r = 18
Conditional statements
 What is the difference between an if-else statement and a switch statement in C
 Explain the switch statement in C with syntax and an example program.
 Explain the break and continue statements in C with example programs.
 Explain while loop, in C with example programs.
 Explain do-while, in C with example programs.
 Explain for loop, in C with example programs.
 Explain differences between while, do-while and for loop in C with example programs.
UNIT 3&4
School of Computing and Information Technology
Course (Subject): Programming with C
Course Code: B24CI0104
Academic Year 2024-25

(1) Arrays*
- one dimensional array concept with a program(declaration, initialisation, accessing)
-⁠ 2 dimensional array concept with a program.(declaration, initialisation, accessing)
-⁠ searching techniques:
—linear search
—binary search
-⁠ sorting technique:
—Bubble sort
-⁠ Matrix Multiplication (product)
-⁠ Matrix addition & Matrix subtraction
-⁠ global n local variables difference

(2) structure and union*


-⁠ structure definition & syntax
-⁠ structure declaration , initialisation and accessing with a program (2 methods).
-⁠ structure lab programs(8th & 9th program —DOB & HRA )
-⁠ Unions definition & syntax
-⁠ union declaration , initialisation and accessing with a program (2 methods).
-⁠ C program using structure & union to display total memory size occupied by the data types .(with
sizeof()).
-⁠ difference between Structure n Union.

(3) Strings *
- Strings definition with syntax
- ⁠ strings declarations , initialisation(2 methods - character array & string literal ), accessing with
program.
- ⁠ string handling functions (manipulation)- list n explain (table)-
strlen,strlwr,strupr,strrev,strcmp,strcat,strcpy- with C programs for each.
-⁠ what is palindrome
-⁠ C program to check if a string is palindrome or not ,using built-in library functions.
-⁠ C program to check if a string is palindrome or not ,without using built-in library functions.
-⁠ strings lab programs(6th & 7th -character & string )

(4) Pointers*
-⁠ pointer definition & syntax
-⁠ pointer declaration, initialisation & accessing with a program.
-⁠ pointer assignment definition with a program
School of Computing and Information Technology
Course (Subject): Programming with C
Course Code: B24CI0104
Academic Year 2024-25

-⁠ pointer to pointer ( double pointers) definition with program.


-⁠ pointer programs(all 3 which are solved in class).

(5) Functions*
-⁠ function definition
-⁠ Types of functions (predefined & user defined —explain n write the C code for both)
- ⁠ Elements of functions( function declaration/prototype,function calling, function definition, also
Return statement ) explain all 3 with syntax.
-⁠ Types of User defined functions/ Categories of functions(all 4 with C codes)
—function with No argument & No return value.
—function with No argument & return value.
—function with argument & No return value.
—function with argument & return value.

(6) File Operations *


-⁠ file definition & syntax
-⁠ Types of files (text & binary files)
-⁠ operations on files(create,opening,closing, read n write)
-⁠ basic file functions with syntax(fopen, fclose, fprintf,fscanf)
-⁠ file opening modes ( text file modes & binary file modes)
-⁠ advantages and disadvantages of using files.
-⁠ files lab program- 10th ( files Data 1 and Data 2……

You might also like