Loading...
QUIZ

Certification Test

 
Que No. 1 ) What is the primary purpose of JavaScript in web development?

A.) Styling
B.) Interactivity
C.) Database management
D.) Server-side rendering


Que No. 2 ) Which keyword is used to declare a variable in JavaScript?

A.) var
B.) variable
C.) int
D.) declare


Que No. 3 ) How do you write a comment in JavaScript?

A.) //This is a comment
B.) !--This is a comment--
C.) 'This is a comment'
D.) /This is a comment/


Que No. 4 ) Which of the following is not a JavaScript data type?

A.) Number
B.) Boolean
C.) Float
D.) String


Que No. 5 ) What is the result of "5" + 2 in JavaScript?

A.) "52"
B.) 7
C.) "7"
D.) Error


Que No. 6 ) How do you declare a constant variable in JavaScript?

A.) const
B.) let
C.) var
D.) constant


Que No. 7 ) Which operator is used to compare equality without considering the data type?

A.) ==
B.) ===
C.) !=
D.) !==


Que No. 8 ) What is the purpose of the typeof operator in JavaScript?

A.) To check if a variable is defined
B.) To determine the data type of a value
C.) To create a new variable
D.) To check if a variable is null


Que No. 9 ) Which built-in function can be used to print content to the console in JavaScript?

A.) console.log()
B.) print()
C.) display()
D.) write()


Que No. 10 ) How do you write a function in JavaScript?

A.) functionmyFunction() {}
B.) defmyFunction() {}
C.) funcmyFunction() {}
D.) fnmyFunction() {}