QB-B24CI0104 C Prog
QB-B24CI0104 C Prog
1. Design an algorithm and flowchart to check if a number is even or odd without using the modulus operator.
3. A datatype is a special c construct used to allocate sufficient memory space for the data. What are the basic
data types in C? List them and explain their sizes and ranges.
4. Most programming languages have a structure, including the C language. Discuss the structure of a C
program and explain the purpose of each section with an example.
5. What is Token? What are the different types of tokens available in C language.
6. Conditional Statements in C programming are used to make decisions based on the conditions. Explain the
syntax and flowchart of if and if-else statements. write a C program for the following: i) Check whether given
number is even or odd ii) Find the largest of two numbers
7. Define type conversion? Explain different types of type conversion with an example.
9. Flowcharts are essential and most popular tools when learning a programming language, including C. List
out the various symbols to represent flowchart.Create a flowchart for a C program that checks if a number is
positive, negative, or zero. The program should: Input: A number n. Output: Display whether the number is
"Positive", "Negative", or "Zero".
10. Explain the break and continue statements in C with example programs.
11. What is the difference between an if-else statement and a switch statement in C? Develop a program
using a switch statement to print the name of the day based on an integer input (1 for Monday, 2 for Tuesday,
etc.).
12. Explain the switch statement in C with syntax and an example program.
13. Define an algorithm and explain its purpose in programming. Provide an example to illustrate how an
algorithm helps in solving a problem.
School of Computing and Information Technology
Course (Subject): Programming with C
Course Code: B24CI0104
Academic Year 2024-25
Question Bank-01(ECE/EEE)
14. Explain the role of algorithms in C programming. Provide examples of algorithms used in C
programming along with their properties and advantages. Develop a algorithm to Convert degrees in
Fahrenheit to Celsius.
15. Given int a = 10, b = 5, evaluate the expression (a > b) ? (a - b) : (b - a) and explain the result based on
the condition.
16. An operator is a symbol that operates on a value or a variable. List the various operators in C. Explain the
logical operators, increment, decrement and bitwise operators with an example.
17. Develop a program to demonstrate arithmetic and assignment operators in C with examples.
19. What is the purpose of the goto statement in C? Provide an example to demonstrate its usage.
20. Conditional Statements in C programming are used to make decisions based on the conditions. Develop a
C program along with flowchart and algorithm to find the largest of three numbers using if-else statement.
21. Develop a C program that asks the user to input two numbers and then prints the sum, difference, product,
and quotient of the two numbers.
Expected Output:
Sum: 10
Difference: 2
Product: 24
Quotient: 4