CBCS 2024 Problem Solving Using C Programming
SEMESTER-I
PROBLEM SOLVING USING C PROGRAMMING
1. Course Description
Programme: B.Sc. Max. Hours: 60
Course Code: U24/CAP/DSC/101 Hours per week: 4
Course Type: DISCIPLINE SPECIFIC CORE Max. Marks: 100
No. of credits: 4
2. Course Objectives
● To understand the basics and usefulness of algorithms and flowcharts
● To learn a programming language
● To learn problem solving techniques and write C programs to solve the problem
3. Course Outcomes
On completion of the course the student will be able to:
CO1: Illustrate and explain basic computer concepts such as binary number system,
algorithms and flowcharts. (Cognitive level – 2)
CO2: Apply programming principles of C language. (Cognitive level – 3)
CO3: Choose and apply the correct type of branching/looping construct to solve common
problems. (Cognitive level - 5)
CO4: Design C programs that illustrate how derived data types, including arrays, strings, and
functions, are utilized. (Cognitive level – 6)
Department of Computer Science St. Francis College for Women, Hyderabad
CBCS 2024 Problem Solving Using C Programming
4. Course Content
MODULE I: NUMBER SYSTEMS, ALGORITHMS AND FLOWCHARTS (15 Hrs)
Binary Number System – Binary arithmetic, Conversion to/ from Binary Number, Binary Coding
System; Algorithms and Flowcharts – Types of Algorithms, Properties of Good Algorithm,
Pseudocode, Flowcharts; Software – Software in Information Technology, Computer
Programming – Steps, Planning, Procedure, Methods, Testing; C-Language – Benefits, Execution
of program, Development of C-Language.
MODULE II: INTRODUCTION TO C PROGRAMMING (15 Hrs)
Basic Structure of C Programs, Constants, Variable and Data Types, Operators and Expressions,
Managing Input and Output Operations.
MODULE III: DECISION MAKING (15 Hrs)
Branching: If Statements - Simple if, if-else, Nesting of if-else, else if Ladder; Switch Statement,
Conditional Operator, goto Statement; Looping: While Statement, do Statement, for Statement,
Jumps in Loops.
MODULE IV: ARRAYS AND USER-DEFINED FUNCTIONS (15 Hrs)
Arrays: One-Dimensional Arrays, Two-Dimensional Arrays, Character Arrays and Strings -
Declaring, Initializing, Reading and Writing of Strings, Arithmetic Operations on Characters,
Putting Strings Together; Need for User-Defined Functions, Structure of a Multi-Function
Program, Functions – Elements, Definition, Return Values and Their Types, Function Calls,
Function Declaration, Categories of Functions, Recursion
5. References
1. Byron S. Gottfried, Programming with C, 2E, Schaum's Outline Series,1996.
2. Yashwant Kanetkar, Let Us C 19E, BPS Publications,2017.
3. Balaguruswamy, Programming in ANSI C 7E, McGraw Hill Education
4. Ashok N Kamthane, Programming in C, Pearson Publications
5. Brian W. Keringhan, Dennis M Ritchie, C Programming Language 2E, Pearson
Publications.
6. Herbert Schildt, C: The Complete Reference 4E, McGraw Hill Education (India)
Department of Computer Science St. Francis College for Women, Hyderabad
CBCS 2024 Problem Solving Using C Programming
MODEL QUESTION PAPER
PROBLEM SOLVING USING C PROGRAMMING
COURSE CODE: U24/CAP/DSC/101 Max Marks: 60
Credits: 4 Time: 2Hrs
SECTION-A
I: Answer any Four: 4 x 10 = 40 M
1. What are the different symbols used in flow charts? Design a flowchart to find the maximum
of three numbers.
OR
2. Distinguish between pseudocode and algorithms. Write an algorithm to display the
multiplication table of a given number.
3. Explain the following operators used in C programming with examples.
a) Arithmetic Operators b) Logical Operators c) Conditional Operators
OR
4. Write a program in C Language for performing addition and subtraction of two numbers.
5. Differentiate between if else if and switch case. Write a program to read marks in one subject
and print grade.
OR
6. Write a program in C language to print the sum of first 'n' natural numbers using a for loop.
7. What are arrays? Explain a two-dimensional array with an appropriate program.
OR
8. Elaborate the need for recursion. Write a program to print factorial of a number using
recursion.
SECTION-B
II. Answer any Four: 4 x 5 = 20 M
9. Explain the difference between decimal and binary number systems. Convert the numbers
125 and 342 to binary.
10. What are format specifiers? Explain the printing of different data type elements using format
specifiers.
11. What is the need for a goto statement? Explain with an example.
12. Differentiate while loop and do-while loop?
13. Write a program to accept and print a single dimensional array.
14. What are strings? Write a C program to combine two strings.
Department of Computer Science St. Francis College for Women, Hyderabad