
Javascript Basics-1
Authored by SUNDARESAN K
Other
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Javascript is an _______ language?
Object-Oriented
Object-Based
Procedural
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following keywords is used to define a variable in Javascript?
var
let
Both A and B
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following methods is used to access HTML elements using Javascript?
getElementbyId()
getElementsByClassName()
Both A and B
None of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Upon encountering empty statements, what does the Javascript Interpreter do?
Throws an error
Ignores the statements
Gives a warning
None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following methods can be used to display data in some form using Javascript?
document.write()
console.log()
window.alert()
All of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct output for the following JavaScript code:varx=5,y=1
var obj ={ x:10}
with(obj)
{
alert(y)
}
1
Error
10
5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The "function" and " var" are known as:
Keywords
Data types
Declaration statements
Prototypes
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?