0% found this document useful (0 votes)
12 views

C Language Programming Question Bank

The document is a question bank for C and C++ programming assignments from the Tatyasaheb Kore Institute of Engineering and Technology's Mechanical Engineering Department. It includes six assignments covering topics such as algorithms, data types, operators, arrays, structures, and user-defined functions, with specific questions and programming tasks for each assignment. Reference books for further reading are also provided.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

C Language Programming Question Bank

The document is a question bank for C and C++ programming assignments from the Tatyasaheb Kore Institute of Engineering and Technology's Mechanical Engineering Department. It includes six assignments covering topics such as algorithms, data types, operators, arrays, structures, and user-defined functions, with specific questions and programming tasks for each assignment. Reference books for further reading are also provided.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

TATYASAHEB KORE INSTITUTE OF ENGINEERING AND TECHNOLOGY,

WARANANAGAR

Department of Mechanical Engineering

QUESTION BANK

C and C ++ COMPUTER LANGUAGE PROGRAMMING

ASSIGNMENT NO. 1: INTRODUCTION TO PROGRAMING LANGUAGE

Write answers of following questions in short

1. Define algorithm. Write characteristics of algorithm.


2. Differentiate between algorithm and flowchart.
3. What do you mean by programming system design techniques? Explain.
4. Differentiate among high level, low level and middle level language.
5. Differentiate among compiler, assembler and interpreter.
6. Write an algorithm to find sum of two numbers.
7. Define flowchart. What are the necessary steps to draw a flowchart?
8. Draw a flowchart to find whether the number is even or odd.
9. Draw a flowchart to find greatest number among three numbers.
10. Write an algorithm and draw flowchart to find factorial of a number.

ASSIGNMENT NO. 2 DATA TYPES IN C

Write answers of following questions in short

1. What do you mean by C character set, C variable, C constants? Explain in detail.


2. What do you mean by C keywords, identifier and literals? Explain with example.
3. Write the basic structure of C program and explain each and every keyword.
4. What do you mean by data types? How many data types does C language consist?
5. Explain all data types with their range and example.
6. What do you mean by type conversion? Explain its types.
7. Explain integer and float conversion with example.
8. Define storage classes in C. Write importance of storage classes.
9. Explain all storage classes in C with example.

ASSIGNMENT NO. 3 OPERATORS AND CONTROL STATEMENTS

Write answers of following questions in short

1. Define operator in C. What role an operator plays in C program?


2. Explain all types of operator available in C with example.
3. Write a program to swap two numbers without using third variable.
4. Write a program to swap two numbers using third variable.
5. What are decision control statements in C? Explain all with example.
6. Write a program to find a number is even or odd.
7. Write a program to find year is leap year or not.
8. Write a program to find greatest number among three numbers using nested if else.
9. Write a program to print sum of digits of a number using modulus operator.
10. Write a program to print reverse of a number.
11. Write a program that shows concept of switch case.

12. Write a program to find percentage, total marks and status(first division/second
division/third division/fail) of a student by taking five subjects with the help of nested
if-else.

13 . What are loop control structures? Explain ‘for loop’, ‘while loop’ and ‘do-while loop’ with
their syntax.

14. Explain ‘break’, ‘continue’ and ‘goto’ statement with example and their use.

Write any four programs from following list

1. Write a program to print series of number divisible by 3 from 1 to 100 using for loop.
2. Write a program to find factorial of a number using for loop.
3. Write a program to print Fibonacci series.
4. Write a program to find a number is prime number or not.
5. Write a program to print pyramid of star using nested for loop.
*
**
***
****
*****
6. Write a program to print table of a number given by user.
7. Write a program to find a number is Armstrong number or not.
8. Write a program to print series of number from 1 to 100 those are divisible by 5 and 7
both.

ASSIGNMENT NO. 4 ARRAY

Write answers of following questions in short

1. Define array. Explain the basic concept of array.


2. How to initialize array? Explain with example and write its uses.
3. Write a program to print number from 1 to 10 using array and fins sum of them.
4. Write a program to find maximum and minimum number from an array of 10 elements.
5. Define 2-D array with its syntax and explain how to initialize 2-D array.
6. How 1-D and 2-D array elements are stored in memory/ Explain with example.
7. What are strings? Explain with example.
8. What are string handlings functions? Explain all with their uses.
9. Write a program to addition of two 2-D array.
10. Write a program to multiplication of two 2-D array.
11. Write a program to find length of a given string using strlen() function.
ASSIGNMENT NO. 5 STRUCTURES

Write answers of following questions in short

1. Define structure and explain how it differs from other data types..
2. How to initialize and access member of structure? Explain with example.
3. Write a program that shows concept of structure.
4. How to declare structure? Write uses of structure.
5. What do you mean by array of structure? Explain with example.
6. Write a program that shows the concept of array of structure.
7. What are macros? Explain with example.
8. Explain #if, #elseif, #undef and #pragma directive with example.
9. Define C processor and write features of C processors.

ASSIGNMENT NO. 6 USER DEFINED FUNCTIONS

Write answers of following questions in short

1. Explain the needs of User-Defined Function.


2. What is Modular Programming? Explain its characteristics.
3. Define following terms:
Function, Recursion
4. What is the purpose of external/global variable? What is its scope?

5. Explain scope and lifetime of variables.


6. Explain User-Defined Function in detail.
7. Explain different categories of function with example.
8. Explain Recursion in detail with example.
9. Explain Call by value and call by reference with example.

REFERENCE BOOKS

‘Let Us C’ by Yashavant Kanetkar, BPB Publications; 15th edition (13 July 2016), Pages: 572
‘ANSI C Programming Language’, Dennis M. Ritchie, Prentice Hall Software Series, 2nd Edition,
217

You might also like