COMPUTER PROGRAMMING most important questions, Exercises of Computer Programming

Is for engineering students who are in 3rd semester Specifically for diploma and Btech students

Typology: Exercises

2025/2026

Available from 12/11/2025

aryanshu-kar
aryanshu-kar 🇮🇳

4 documents

1 / 6

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
C – Programming Theory
1. Compare between compiler and interpreter.
(3M)
2. Define flowchart and algorithm. Draw a
flowchart
(i) to find biggest among three numbers,
(ii) to find factorials of a number,
(iii) area and perimeter of a circle. (4M)
3. Explain the memory hierarchy in a computer
system.
4. Why is C called a mid-level programming
language? (3M)
5. What is operator and what are different types of
operators – explain them.
6. What are unary, binary & ternary operators with
examples.
7. What is data type & different types of it. (3M)
pf3
pf4
pf5

Partial preview of the text

Download COMPUTER PROGRAMMING most important questions and more Exercises Computer Programming in PDF only on Docsity!

C – Programming Theory

  1. Compare between compiler and interpreter. (3M)
  2. Define flowchart and algorithm. Draw a flowchart (i) to find biggest among three numbers, (ii) to find factorials of a number, (iii) area and perimeter of a circle. (4M)
  3. Explain the memory hierarchy in a computer system.
  4. Why is C called a mid-level programming language? (3M)
  5. What is operator and what are different types of operators – explain them.
  6. What are unary, binary & ternary operators with examples.
  7. What is data type & different types of it. (3M)
  1. What are the differences between (i) break and continue, (ii) while and do-while loop, (iii) for, while & do-while. (3M each) (iv) Array & pointer.
  2. State the importance of header files in C language. (3M) Write syntax & appropriate flowchart for (i) if statement, (ii) nested if-else (iii)for loop (iv) while loop (v) do while
  3. What are the different conditional branching statements. ( 2 M)
  4. What are formatted and non-formatted input, output functions with example. (3M)

(c) Define user-defined function & library function. (d) What is recursive function with example. (e) What are the differences between call by value and call by reference. (f) How the function prototype are declared. (2M) (g) Explain different storage classes in C. (8M) (h) How to declare 1D array, 2D array & pointer variable.

  1. Define object and class & write difference between them. Define encapsulation, inheritance and polymorphism.
  2. Write a program to find sum of digit of a given integer.
  3. Write a program to find factorial of a positive integer.
  4. Write a program to find the sum of first 10 natural numbers using for loop.
  5. Write a program to find roots of a quadratic equation.
  6. Write a program to find GCD and LCM of two numbers.
  1. Write a program to check a given number is even number or odd number.
  2. Write a program to check whether a given number is prime or not.
  3. Write a program to test whether a given character is a vowel or not.
  4. Write a program to find largest among three numbers.
  5. Write a program to interchange (swapping) the numerical value of two variables.
  6. Write a program to change the temperature Fahrenheit to Centigrade (or C → F).
  7. Write a program to find area or circumference of a circle.
  8. Write a C program to find the average of N numbers using array.
  9. Write a C program to add ten numbers using array.
  10. Write a C program to find the biggest of N numbers using array