β
Programming Fundamentals using C/C++
π€Not familiar with GitHub Interface?
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:
Q8) β Write a C/C++ program to calculate GCD of two numbers:
Q9) β Write a C/C++ program to calculate Factorial of a given number:
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.
Q16) β Write a C/C++ program that swaps two numbers using:
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 HERE !!
ββ β
β
β
β
β
β
Give this Repository a STARβ
(If you find this repository helpful)
Thank You!!π