Problem Solving Using C - question bank
Problem Solving Using C - question bank
Course Objectives:
Course Outcomes:
1. Design Algorithms and Draw Flowcharts to model solving real world problems. List various
data types and operators and develop programs to evaluate arithmetic expressions and
mathematical functions.
2. Analyse various data types and operators and develop programs to evaluate arithmetic
expressions and solving mathematical functions using library functions.
3. Identify and analyse the suitable control statements and apply logical reasoning to implement
the solution for any mathematical and logical problem
4. Analyse different data structures such as arrays (1D and 2D) and its derived data structures
to handle list of data such as string (text) processing.
5. Compare and Apply different categories of user defined functions to solve problems and to
implement the concept of procedural and modular programming
6. Explore pointers in implementing programs, especially in memory management and file
handling for faster execution of programs
Problem Solving Using C - B21DA0103
Text Books:
1. V. Rajaraman, Neeharika Adabala, “Fundamentals of Computers”, 6th Edition, PHI, 2015.
(Chapter 1)
2. R.F Dromey, “How to Solve it by Computer” Pearson, Fourteenth Impression, 2013.
(Chapter 1 & 2)
3. E. Balaguruswamy, “Programming In ANSI C”, 3rd edition, McGraw Hill Education, 2006.
(Chapter
1 to 12).
References Books:
1. Mahapatra, “Thinking in C”, PHI Publications, 1998.
2. Yashwant Kanetkar, “Let Us C”, 13th Edition, PHP, 2013.
3. Ashok N. Kamthane, “Programming with ANSI and Turbo C”, Pearson Education, 6th
Impression, 2009.
4. Anami, Angadi, and Manvi, “Computer Concepts and C Programming – A Holistic
approach”, PHI - 2008.
Problem Solving Using C - B21DA0103
Question Bank
Unit 1
Unit 2
1. Discuss the types of Looping Statement with help of example.
2. Explain increment and decrement operators in C with examples. 4
3. Write briefly about different types of operators. Write a program for a
calculator using arithmetic operator.
4. Bring out the difference between ‘=’ and ‘==’ in C with an example. 4
5. Explain Different Selection Statement with help of example.
6. Describe Nested If-else statement with suitable example.
7. With syntax, explain entry controlled and exit controlled loops. 7
8. Demonstrate the usage of a switch statement with an example.
9. Write a short note on break and Goto Statement.
10.When is a SWITCH statement can be better than an IF statement? Justify
with an example. 4
11.Differentiate between While Loop and Do-While Loop. 10 Marks
12.Write a C program to largest of 3 numbers using nested if else structure. 4
13.Describe else if Ladder with suitable examples.
14.Draw a flowchart to check whether the given number is odd or even. 4
Marks
15.In a programming language a Datatype refers to the type of data stored in
a memory location and the type of operations that can be performed on
those data. Discuss in detail various datatypes supported by C
programming language with examples.
16.Explain the basic structure of C program with an example. 7
17.Operators are used in programs to manipulate data and variables. Explain
in detail various built-in operators supported by C.
18.Tokens are smallest individual units of C program which can not be further
sub divided. Write about any three types of tokens available in C with
example. 4
19.Explain in detail the working of For Loop statement with syntax and
example
20.With syntax , explain the following structured constructs in C with example
i) simple “if” ii) do-while loop
21.Illustrate the following with example i) Arithmetic expression ii)
Relational expression iii) Logical expression 5
22.Write a C program to calculate the electricity consumption charge by
reading no of units of electricity consumption for first 200 units – 50
paise / unit from 201-400 units– 65 paise / unit from 401-600 units– 80
paise / unit Above 600 units– one rupee/ unit 5
Problem Solving Using C - B21DA0103