Skip to content

anuj-das-10/Programming-Fundamentals-using-C-CPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

✅ Programming Fundamentals using C/C++

Programming-Fundamentals-using-C-CPP

🤔Not familiar with GitHub Interface?



📜Practical Questions

Q1)   Write a C/C++ program to reverse a given number.

Q2)   Write a C/C++ program to print the sum and product of digits of an integer.

Q3)   Write a C/C++ to compute the sum of the first n terms of the following series.

S = 1 + 1/2 + 1/3 + 1/4 + . . . + n

Q4)   Write a C/C++ program to compute the sum of the first n terms of the series.

S = 1 - 2 + 3 - 4 + 5 . . . n

Q5)   Write a function that checks whether a given string is palindrome or not.

Q6)   Write a function to find whether a given number is prime or not. Use the same function to generate all the prime numbers less than 100.

Q7)   Write a C/C++ program to display Fibanocci Series:

(i) Using Iteration

(ii) Using Recursion

Q8)   Write a C/C++ program to calculate GCD of two numbers:

(i) Using Iteration

(ii) Using Recursion

Q9)   Write a C/C++ program to calculate Factorial of a given number:

(i) Using Iteration

(ii) Using Recursion

Q10)   Write a C/C++ program to print a triangle of asterisks(*) as follows (take number of lines from user as input):

*
* * *
* * * * *
* * * * * * *

Q11)   Write a C/C++ program to compute the factors of a given number.

Q12)   Write a C/C++ program that swaps two numbers using pointers.

Q13)   Write a C++ program that create a class and to perform swapping of two numbers without using third (temporary) variable.

Q14)   Write a C++ program to create a structure Student containing fields for roll number, name, class, year and total marks. Create 5 students and display their records.

Q15)   Write a C/C++ program that performs read and write operations in a file.

(i) Read

(ii) Write

Q16)   Write a C/C++ program that swaps two numbers using:

(i) Call by value

(ii) Call by reference

Q17)   Write a C/C++ prgram to check whether the given number is Armstrong number or not.

Q18)   Write a C/C++ program to find the sum of two matrices.

Q19)   Write a C/C++ program to find the difference of two matrices.

Q20)   Write a C/C++ program to find the product of two matrices.

Q21)   Write a C/C++ program to find the transpose of a matrix.

Q22)   Write a C/C++ program to find the length of a given string.

Q23)   Write a C/C++ program to concatenate two given strings.

Q24)   Write a C/C++ program to compare two given strings.

Q25)   Write a C/C++ program to convert all characters of given string to uppercase.

Q26)   Write a C/C++ program to count the number of vowels, semi-vowels and consonants in a given string.

Q27)   Write a C/C++ program to reverse a given string.

Q28)   Write a C/C++ program to convert a given decimal number to its equivalent binary number.

Q29)   Write a C/C++ program to convert a given binary number/string to its equivalent decimal number.

Q30)   Write a C/C++ program to reverse a given array.

Q31)   Write a C/C++ program to find the maximum and minimum value in a given array.

Q32)   Write a C/C++ program to find the position of given element in an array.

Q33)   Write a C/C++ program to find the position of all the occurrences of the given element in an array.

Q34)   Write a C++ program to demonstrate the concept of passing object as an arguments and returning object from that function.

Q35)   Write a menu driven C/C++ program using switch-case statement that acts as a basic calculator.

Q36)   Write a C++ program to demonstrate the concept of function overloading.(Compile time Polymorphism)

Q37)   Write a C++ program to demonstrate the concept of operator overloading.(Compile time Polymorphism)

Q38)   Write a C++ program to demonstrate the concept of multi-level inheritance.

Q39)   Write a C++ program to demonstrate the concept of multiple inheritance.

Q40)   Write a C++ program to demonstrate the concept of hierarchical inheritance.

Q41)   Write a C++ program to demonstrate the concept of hybrid inheritance.

Q42)   Write a C++ program to demonstrate the use of virtual function.(Runtime time Polymorphism)





🤖Join Community!

- Stuck at any question?
- Confusions regarding any solution provided?
- Want to discuss something regarding above topics?
- Want to connect with other students?

  • join JOIN HERE !!

     discord



🔁Connect With Me!



Give this Repository a STAR⭐

(If you find this repository helpful)
Thank You!!💞

Made with 💖 by Anuj Das

Releases

No releases published

Packages

No packages published