EXAMEN TO PRACTICE
JAVASCRIPT SKILL
Questions :
Exercice 1 :
Write a JavaScript program to display the current day and time in the following format.
Today is : Tuesday.
Current time is : 10 PM : 30 : 38
Exercice 2 :
Write a JavaScript function to find the area of a triangle where lengths of the three of its sides
are 5, 6, 7.
Exercice 3 :
Write a JavaScript program to calculate multiplication and division of two numbers (input
from user).
Exercice 4 :
Write a JavaScript exercise to create a variable using a user-defined name.
Exercice 5 :
Write a JavaScript program to compute the sum of the two given integers. If the two values
are same, then returns triple their sum.
, Exercice 6 :
Write a JavaScript program to compute the absolute difference between a specified number
and 19. Returns triple their absolute difference if the specified number is greater than 19.
Exercice 7 :
Write a JavaScript program to check two given numbers and return true if one of the number
is 50 or if their sum is 50.
Exercice 8 :
Write a JavaScript program to check from two given integers, whether one is positive and
another one is negative.
Exercice 9 :
Write a JavaScript program to remove a character at the specified position of a given string
and return the new string.
Exercice 10 :
Write a JavaScript program to check whether a given positive number is a multiple of 3 or a
multiple of 7.
Exercice 11 :
Write a JavaScript program to convert a given number to hours and minutes.
Exercice 12 :
Write a JavaScript program to reverse a given string.
Exercice 13 :
Write a JavaScript program to convert the letters of a given string in alphabetical order.
Exercice 14 :
Write a JavaScript program to check from two given integers whether one of them is 8 or
their sum or difference is 8.
Exercice 15 :
Write a JavaScript program to capitalize the first letter of each word of a given string.
Exercice 16 :
Write a JavaScript program to calculate the sum of n + n/2 + n/4 + n/8 + .... where n is a
positive integer and all divisions are integer.
JAVASCRIPT SKILL
Questions :
Exercice 1 :
Write a JavaScript program to display the current day and time in the following format.
Today is : Tuesday.
Current time is : 10 PM : 30 : 38
Exercice 2 :
Write a JavaScript function to find the area of a triangle where lengths of the three of its sides
are 5, 6, 7.
Exercice 3 :
Write a JavaScript program to calculate multiplication and division of two numbers (input
from user).
Exercice 4 :
Write a JavaScript exercise to create a variable using a user-defined name.
Exercice 5 :
Write a JavaScript program to compute the sum of the two given integers. If the two values
are same, then returns triple their sum.
, Exercice 6 :
Write a JavaScript program to compute the absolute difference between a specified number
and 19. Returns triple their absolute difference if the specified number is greater than 19.
Exercice 7 :
Write a JavaScript program to check two given numbers and return true if one of the number
is 50 or if their sum is 50.
Exercice 8 :
Write a JavaScript program to check from two given integers, whether one is positive and
another one is negative.
Exercice 9 :
Write a JavaScript program to remove a character at the specified position of a given string
and return the new string.
Exercice 10 :
Write a JavaScript program to check whether a given positive number is a multiple of 3 or a
multiple of 7.
Exercice 11 :
Write a JavaScript program to convert a given number to hours and minutes.
Exercice 12 :
Write a JavaScript program to reverse a given string.
Exercice 13 :
Write a JavaScript program to convert the letters of a given string in alphabetical order.
Exercice 14 :
Write a JavaScript program to check from two given integers whether one of them is 8 or
their sum or difference is 8.
Exercice 15 :
Write a JavaScript program to capitalize the first letter of each word of a given string.
Exercice 16 :
Write a JavaScript program to calculate the sum of n + n/2 + n/4 + n/8 + .... where n is a
positive integer and all divisions are integer.