Kostas Diakogiannis
Quiz by , created more than 1 year ago

Junior Certificate Web Developing Quiz on Intro JS Self assesment Quiz, created by Kostas Diakogiannis on 02/09/2018.

28
1
0
Kostas Diakogiannis
Created by Kostas Diakogiannis about 6 years ago
Kostas Diakogiannis
Copied by Kostas Diakogiannis about 6 years ago
Close

Intro JS Self assesment Quiz

Question 1 of 7

1

In which type of applications can JavaScript be used specifically?

Select one of the following:

  • Web, only frontend

  • Web in general. Frontend and Backend.

  • Web, mobile, desktop and IoT applications.

  • Only web and mobile.

Explanation

Question 2 of 7

1

What is console used for?

Select one of the following:

  • To print the result of a JS Math operation there.

  • To hide/show HTML elements from the page.

  • To store variables and their values there.

  • To display a selected piece of JS code there.

Explanation

Question 3 of 7

1

What will this print to the console?

console.log( '10'/2);

Select one of the following:

  • '5'

  • 5

  • '10/2'

  • Error! Cannot divide string with a number!

Explanation

Question 4 of 7

1

What does the following statement prints to the console?

console.log(23 + '3');

Select one of the following:

  • '233'

  • '323'

  • 26

  • '26'

  • Error. Cannot add a number and a string!

Explanation

Question 5 of 7

1

What does the following statement prints to the console?

console.log(30 + 20 + 10 + '5' + 10);

Select one of the following:

  • error!

  • 615

  • 75

  • 60510

Explanation

Question 6 of 7

1

What does the following code prints to the console?

var result = (25 + '10') / 10;
console.log(typeof result);

Select one of the following:

  • "string"

  • "number"

  • Error!

  • undefined

Explanation

Question 7 of 7

1

Select the correct phrase that is true regarding JS variables.

Select one of the following:

  • JavaScript variables are case insensitive. That means we don't have to worry if a variable's name is written in uppercase or lowercase.

  • We can use variables in our scripts even if we have defined them later in our script (in a line more below).

  • A variable can't hold as it's own value, another variable.

  • We are not allowed to re-assign a new value into a variable that already holds one. We are not allowed to update a variable's value.

Explanation