Organisation : SRM Valliammai Engineering College
Department : Electronics and Communication Engineering
Subject & Code : 1901006 & Programming in C
Semester : 1st
Year : 2020-21
Document Type : Question Bank
Website : https://srmvalliammai.ac.in/
SRM Valliammai ECE Question Bank
SRM Valliammai Engineering College, Electronics and Communication Engineering, Programming in C 2020-21 Semester 1 Question Bank
Related / Similar Question Bank : SRM Valliammai Engineering Graphics Question Bank
Programming in C Question Bank
Unit I – Basics of C Programming
Syllabus:
Introduction to algorithm: Flowchart-Pseudo code- Introduction to programming paradigms- C programming: Data Types -Keywords-Variables and Constants– Operators and Expressions: Expressions -precedence,-associativity-Input/Output statements-Decision making and looping: Branching statement, Iterative statement – Compilation process.
Part – A:
1. Define an Algorithm BTL -1 Remember
2. What are the characteristic of an algorithm? BTL -1 Remember
3. Distinguish between an algorithm and a flowchart BTL -2 Understand
4. List the various symbols used to draw flowchart. BTL -1 Remember
5. Write a pseudo code to find maximum of three numbers. BTL -1 Remember
6. List the various keywords used to write pseudo code. BTL -1 Remember
7. Discuss the concept of the programming paradigm. BTL -2 Understand
8. What is meant by a data type? Give its classifications. BTL –1 Remember
9. Analyze why keywords are not to be used as identifiers. BTL -4 Analyze
10. Differentiate between variable and constant. BTL -4 Analyze
11. Show the use of ternary or conditional operator.BTL -3 Apply
12. Assess an expression. BTL -6 Create
13. Summarize the various types of C operators. BTL-5 Evaluate
14. Analyze Operators precedence. BTL -4 Analyze
15. Generalize the types of I/O statements available in „C?. BTL -6 Create
16. Show the difference between while and do-while. BTL -3 Apply
17. Differentiate switch and nested-if statement. BTL -2 Understand
18. Invent what type of loop and how?
#include <stdio.h>
int main () {
for( ; ; ) {
printf(“This loop will run forever.\n”);
}
return 0;
} BTL -5 Evaluate
19. Show the general form of a typical decision making structure found in C programming language. BTL -3 Apply
20. Discuss the compilation process BTL -2 Understand
Part – B:
1. Explain how to design an algorithm with an example.\ (13) BTL -1 Remember
2. Draw a flowchart to find the max of three numbers and explain in detail. (13) BTL -3 Apply
3. Explain with an example how to write a pseudo code and discuss the advantages of Pseudo code. (13) BTL -4 Analyze
4. Describe the structure of a C program with an example. (13) BTL -1 Remember
5. Illustrate about the various data types in „C? and write a C program to find the sum of 10 non-negative numbers entered by the user. (13) BTL-3 Apply
6. Explain the following:
i. Keywords (4)
ii. C character set (4)
iii. Constants (5) BTL -5 Evaluate
7. (i)Explain the different types of operators used in „C? with necessary program. (8) (ii)Write a C program to check the integer is Palindrome or not. (5) BTL -1 Remember
8. Discuss in detail about operator precedence and expressions with an example. (13) BTL -2 Understand
9.Write a C program for the following :
(i). To check whether a given year is leap or not. (5)
(ii). To find the roots of a quadratic equation. (8) BTL -2 Understand
10. Develop a C program for the following :
(i). To find the area and circumference of a circle with radius r. (6)
(ii). To find the sum of first 100integers. (7) BTL -6 Create
11. Write a C program for the following :
(i). To find the sum of the digits of a number. (123 =>1+2+3=6.) (7)
(ii). To find the sum of all odd / even numbers between 1 and100. (6) BTL -4 Analyze
12. Write a C program for the following :
(i). To generate the first n numbers in a Fibonacci series. (7)
(ii). To find the factorial of a given number. (6) BTL -1 Remember
13. Write a menu driven program in C to perform various arithmetic operations. (13) BTL -4 Analyze
14. Explain in detail the operation of various looping statements in C with suitable examples. (13) BTL -2 Understand
Download Question Bank
Programming in C Question Bank : https://www.pdfquestion.in/uploads/pdf2020/37063-c.pdf