CoderMantra

Menu
  • Home
  • Quiz
  • How-To
  • Q/A
  • Blog

Tag: practice questions

A program to compute the perimeter and area of a circle with a given radius.

May 18, 2023
| No Comments
| Assignments, Practice Questions, Questions

Here, we have a basic program example to calculate the perimeter and area of a circle using different languages. This program is created in c language, c++, Java, and Python. Program to calculate perimeter and radius of circle in C language Program to calculate perimeter and radius of circle in C++ language Program to calculate…

Read More »

Program to reverse a string entered by user.

May 18, 2023
| No Comments
| Assignments, Practice Questions, Questions

Here, we have a basic program example to reverse a string using different languages. This program is created in c language, c++, Java, and Python. Program to reverse a string in C language Program to reverse a string in C++ language Program to reverse a string in Python language Program to reverse a string in…

Read More »

A program to print name, date of birth, and mobile number.

May 17, 2023
| No Comments
| Assignments, Practice Questions, Questions

Here, we have a basic program example to print name, date of birth, and mobile number using different languages. This program is created in c language, c++, Java, and Python. Program to print name in C Language. Program to print name in C++ Language. Program to print name in Python Language. Program to print name…

Read More »

  • 15 of 15
  • « Previous
  • 1
  • …
  • 13
  • 14
  • 15

practice questions

  • A program to print name, date of birth, and mobile number.
  • Program to reverse a string entered by user.
  • A program to compute the perimeter and area of a circle with a given radius.
  • A program to calculate the sum of two integers.
  • A program to read an amount (integer value) and break the amount into the smallest possible number of bank notes.
  • Program to compute the sum of the two input values. If the two values are the same, then return triple their sum.
  • Program that checks if a given non-negative number is a multiple of 3 or 7, but not both.
  • A program to check two given integers and returns true if at least one of them is 30 or if their sum is 30.
  • Program to compute the sum of the two given integers. Return 18 if one of the integer values given is in the range 10..20 inclusive.
  • Program to convert Centigrade to Fahrenheit.
  • Program to print the perimeter of a rectangle using its height and width as inputs.
  • A program that takes hours and minutes as input, and calculates the total number of minutes.
  • A program that reads a firstname, lastname and year of birth and displays the names and the year one after another sequentially.
  • A program to perform addition, subtraction, multiplication and division of two numbers.
  • Program to find the third angle of a triangle if two angles are given.
  • A program to accept two integers and check whether they are equal or not.
  • Program to check whether a given number is even or odd.
  • Program to check whether a given number is positive or negative.
  • Program to read the age of a candidate and determine whether he is eligible to cast his/her own vote.
  • Program to find the largest of three numbers.
  • A program to determine eligibility for admission to a professional course based on the following criteria: Eligibility Criteria : Marks in Maths >=65 and Marks in Phy >=55 and Marks in Chem>=50 and Total in all three subject >=190 or Total in Maths and Physics >=140.
  • Program to read the roll no, name and marks of three subjects and calculate the total, percentage and division.
  • Program to read temperature in centigrade and display a suitable message according to the temperature state below: Temp < 0 then Freezing weather Temp 0-10 then Very Cold weather Temp 10-20 then Cold weather Temp 20-30 then Normal in Temp Temp 30-40 then Its Hot Temp >=40 then Its Very Hot
  • Program to check whether a character is an alphabet, digit or special character.
  • Program to check whether an alphabet is a vowel or a consonant.
  • Program to calculate profit and loss on a transaction.
  • Program to calculate and print the electricity bill of a given customer. The customer ID, name, and unit consumed by the user should be captured from the keyboard to display the total amount to be paid to the customer.
  • Program to accept grade and declare the equivalent description.
  • Program to read any day number in integer and display the day name in word format.
  • Program for reading any Month Number and displaying the Month name as a word.
  • A program which computes the area of various geometrical shapes using a menu-driven approach.
  • A Menu-Driven Program to perform a simple calculation.
  • Program to display the first 10 natural numbers.
  • Program to compute the sum of the first 10 natural numbers.
  • Program to display multiplication table for a given integer.
  • Program to display the multiplier table vertically from 1 to n.
  • Program to display the n terms of odd natural numbers and their sum.
  • Program to print Fibonacci series.
  • Program to check whether the number is prime or not.
  • Program to check whether the number is Armstrong or not (for n numbers).
  • Program to check whether the number is Armstrong or not (for a 3 digit numbers).
  • Program to check whether the number is palindrome or not.
  • Program to display a pattern like a right angle triangle using an asterisk.
  • Program to display a pattern like a right angle triangle with numbers.
  • Program to display a right angled triangle with a number which will repeat itself in a row. The pattern is as follows:
  • Program to display a right angled triangle with the number increased by 1. The pattern is as follows :
  • Program to make a pyramid with an asterisk.
  • Program to calculate the factorial of a given number.
  • Program to display the sum of n terms of even natural numbers.
  • Program to print the number in reverse order.
  • Program to find the HCF (Highest Common Factor) of two numbers.
  • Program to find the LCM of any two numbers.
  • Program to print a string in reverse order.
  • Program  to store elements in an array and print them.
  • Program to read n number of values in an array and display them in reverse order.
  • Program to find the sum of all elements in the array.
  • Program to count the total number of duplicate elements in an array.
  • Program to count the frequency of each element of an array.
  • Program to find the maximum and minimum elements in an array.
  • Program to sort elements of an array in ascending order.
  • Program to sort elements of an array in descending order.
  • Program to input a string and print it.
  • Program to find the length of a string without using library functions.
  • Program to print individual characters of a string in reverse order.
  • Program to count the total number of words in a string.
  • Program to copy one string to another string.
  • Program  to count the total number of vowels or consonants in a string.
  • Program to swap two numbers using a function.
  • Program to check if a given number is even or odd using the function.
  • Program to check whether a number is a prime number or not using the function.
  • Program to get the largest element of an array using the function.
  • Program to create and store information in a text file.
  • Program to read an existing file.
  • Program to write multiple lines to a text file.
  • Program to merge two files and write them to another file.
  • Program to add two numbers using pointers.
  • Program to add numbers using call by reference.
  • Program to find the maximum number between two numbers using a pointer.
  • Program to swap elements using call by reference.
  • Program to create a database with Mysql.
  • Program to create a table with Mysql.
  • Program to insert record into a table with Mysql.
  • Program to access data of the database and print them.
  • Program to update record into a table with Mysql.
  • Program to delete record from table with Mysql .
  • Create a Registration Page using PHP.
  • Create a Login Page Using PHP
  • Create Forgot Password and Reset Password Functionality Using PHP.
  • Connect to Xampp server using PHP.
  • Create a database using PHP.
  • Program to Create table in php.
  • Program to Insert data using PHP in mysql.
  • Program to update data fuction using PHP in mysql.
  • Program to delete data from table using PHP in mysql.
  • Program to Access Data From database in PHP.
  • Program to upload a file using php.
  • How to create your own module and import them in your index.js file in node Js?
  • How to Manage session in node js using express and cookie parser?
  • Create a code for form validation using java script in node js.
  • How to Create a Registration form in node js?
  • How to Create a login page with session in node js.?
  • How to render variables in your ejs page?
  • Explain routing with a simple example in node js.
  • How to create a connection with mongoose in node js. ?
  • How to create database from node js on mongoose. ?
  • How to create table from node js in mongoose?
  • How to insert data In table from node js in mongose?
  • How to update data in table from node js in mongoose.
  • How to delete data from table from node js in mongoose?
  • Create a file using file system in node js. Perform  read, update,delete and rename functions on the file.
  • How to access function in your ejs page.
  • How to send e-mail using node js?
  • How to Create steps for forgot password link in node js ?
  • How to Create http module to transfer data over the Hyper Text Transfer Protocol?
  • How to upload a file using Node js.?
About CoderMantra

Coder Mantra is a unique e-learning website, offers a tutorial of different popular programming languages with examples. The code on this popular tutorial website is tested and executed.

Latest Posts
Best Freelancing Skills in 2026 (High Demand, Future-Proof Options) April 15, 2026
How to Get First Client in Freelancing (No Experience, Step-by-Step Guide) April 14, 2026
How to Write Freelance Proposals That Get Clients (Beginner’s Guide 2026) April 13, 2026
How to Create a Freelancing Profile: That Gets Clients (Step-by-Step Guide for Beginners) April 12, 2026
Contact Us

info@codermantra.com

admin@codermantra.com

© 2020 Coder Mantra . All Rights Reserved
About | Privacy Policy | Terms | Contact