Skip to content

PB2204/C-Programming-Practical-Exam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

C Programming Practical Exam - February 5, 2024

Author: Pabitra Banerjee

Contact:


Number Print Program

Question:

What does this program do?

Explanation:

This C program prompts the user to enter a number and then prints the numbers from 1 to the entered number in ascending order, each on a new line.


Even Number Sum Program

Question:

What does this program do?

Explanation:

This C program calculates the sum of all even numbers from 1 to a user-entered number.


Factorial Calculator Program

Question:

What does this program do?

Explanation:

This C program calculates the factorial of a user-entered number using a while loop.


Number Guessing Game

Question:

What does this program do?

Explanation:

This C program is a simple number guessing game where the user needs to guess a randomly generated number between 1 and 100. The program provides feedback on whether the guess is too high or too low and congratulates the user when the correct number is guessed.


Reverse Number Program

Question:

What does this program do?

Explanation:

This C program calculates the reverse of a user-entered number using a while loop.


Fibonacci Sequence Printer

Question:

What does this program do?

Explanation:

This C program prints the first n terms of the Fibonacci sequence using a for loop.


Product of Odd Numbers Program

Question:

What does this program do?

Explanation:

This C program calculates the product of all odd numbers between 1 and 50 using a for loop.


Square Root Calculation using Newton-Raphson Method

Question:

What does this program do?

Explanation:

This C program calculates the square root of a non-negative number using the Newton-Raphson method.


Instructions for Usage

  1. Clone the repository or download the source code files.
  2. Compile the code for each program using a C compiler (e.g., gcc).
  3. Run the executables.
  4. Follow the on-screen instructions for each program.

Feel free to experiment with different inputs and observe the programs' behavior.

Good luck with your practical exam!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages