Toggle navigation
Home
India
States
Languages
Politics
Historical Monuments
Freedom Fighters
Independence Day
Scientists
Transportations
Imports and Exports
Agriculture
Army
Indian Presidents
World
Major Countries
Geographical Info
Richest Persons
Inspired Persons
Scientists
Wonders
Currency
Sports
Emblems
Tutorials
HTML
CSS
C-Language
Java
Java Script
PHP
Python
SQL
React Native
Pricing
Contests
Explore
JavaScript
</> JS Tutorial
Introduction
Variables
If or Else Conditions
Switch
Loops
Arrays
Strings
Functions
50 Programmes
01 - 50
Practicals
ATM
Powerbill
JavaScript - Questions
1 - 50 Tasks
1.
Write a program to add and subtract two numbers?
2.
Write a program to multiply and divide two numbers and print them in the form of equation (4*3=12 8/4=2)?
3.
Write a program to find the square and cube of a given number?
4.
Write a program to find the square root of a given number (use sqrt () function)?
5.
Write a program to find the area and perimeter of a square?
6.
Write a program to find the simple interest and compound interest?
7.
The total mechanical energy of a particle is given by e=mgh+(1/2) mv^2?
8.
Given the coordinates of two points (x1,y1) and (x2,y2). Write a program to find the distance between these two points?
9.
Write a program to find smallest of given two numbers?
10.
Write a program to find biggest of given three numbers?
11.
Write a program to calculate the monthly income of a person using the following commission schedule:
(use ‘if-else-if’ statement).
Monthly sales income.
>=Rs. 50,000Rs. 375+16% Sales.
>=Rs. 50,000 but>=Rs. 40,000 Rs. 370+14% Sales
>=Rs. 40,000 but>=Rs. 30,000 Rs. 325+12% Sales
>=Rs. 30,000 but>=Rs. 20,000 Rs. 300+9% Sales
>=Rs. 20,000 but>=Rs. 10,000 Rs. 250+5% Sales
>=Rs. 10,000/- Rs. 200+3% Sales
12.
Write a program to read a 3 digit number and find whether the middle digit is numerically equal to the sum of the other Two digits and prints an appropriate response?
13.
A company insures its drivers in the following cases
1. If the driver is married
2. If the driver is unmarried, male and above 30 years of age
3. If the driver is unmarried, female and above 25 years of age
In all other cases, the driver is not insured. If the marital status, sex, age of the driver are the inputs,
write a program to determine whether the driver is insured or not.
(use ‘nested-if’).
14.
Write a program to print the uppercase letter of a given lowercase?
15.
Write a program to read a vowel character and print any appropriate word by using “Switch case”?
16.
Write a program to find whether the given numbers existing in an array or not?
17.
Write a program to find the sum of ‘n’ natural numbers?
18.
Write a program to find the sum of ‘n’ distinct numbers?
19.
Write a program to find the sum of even ‘n’ natural numbers?
20.
Write a program to display the numbers sequentially from 1 to 99 with 5 numbers on each line?
21.
Write a program to display the numbers sequentially from 1 to 99 with 5 numbers on each column?
22.
Write a program to find the total number of +ve numbers, -ve numbers and zeros out of a given 10 real numbers?
23.
Write a program to print the numbers which are divisible by both 3 and 7 from 1 to 100?
24.
Write a program to find the given number is Automorphic or not?
25.
Write a program to find the given number is Armstrong or not?
26.
Write a program to find the given number is Palindrome or not?
27.
Write a program to find the sum and product of the individual digits of a given number?
28.
Write a program to accept maximum of 6 digits numbers and find out the sum of even digits of that number and Multiplication of odd digits of that number
29.
Write a program to find the number of digits of a given number
30.
Write a program to print the reverse of a given number
31.
Write a program to find the factorial of the given number
32.
Write a program to print Fibonacci series for a given number
33.
Write a program to convert the given number in Roman letter?
34.
Write a program to print the Floyd’s triangle?
1
2 3
4 5 6
7 8 9 10
35.
Write a program to print the following triangle?
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
36.
Write a program to print the following triangle?
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
37.
Write a program to print the following triangle?
1
1 1
1 2 1
1 2 3 1
1 2 3 4 1
1 2 3 4 5 1
38.
Write a program to print the following triangle?
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1
39.
Write a program to print the following triangle?
1 1 1 1 1
2 2 2 2
3 3 3
4 4
5
40.
Write a program to print the following triangle?
5 4 3 2 1
5 4 3 2
5 4 3
5 4
5
41.
Write a program to print the following triangle?
5
5 4
5 4 3
5 4 3 2
5 4 3 2 1
42.
Write a program to print the following triangle?
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
43.
Write a program to compute the series.
1 + 3 + 5 + 7 + 9 + ………..+ n
44.
Write a program to compute the series.
1 + 4 + 9 + 16 + ……..+ n
45.
Write a program to compute the series.
1 + 3 + 6 + 10 + ………..+ n
46.
Write a program to compute the series.
1 + 4 + 8 + 11+ …………..+n
47.
Write a program to compute the series.
1! + 2! + 3! + 4!+ ……….+ n
48.
Write a program to compute the series.
1!/1 + 2!/2 + 3!/3 + 4!/4+ ……….+ n!/n
49.
Write a program to compute the series.
1.0 + 1.1 + 1.2 + 1.3 + ……… + 2.5
50.
Write a program to check whether the given string is palindrome or not?
<< Previous
Next >>