
IFSD Quiz 02
Authored by Sudhakar N
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is JavaScript?
A style sheet language for HTML
A server-side programming language
A scripting language for client-side web development
A markup language for XML
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to declare a variable in JavaScript?
int
string
var
let
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the "typeof" operator in JavaScript do?
Checks if a variable is defined
Returns the type of a variable
Converts a variable to a string
Rounds a number to the nearest integer
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to comment a single-line code in JavaScript?
/* comment */
// comment
<!-- comment -->
' comment
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to display a message in the browser's console?
console.log()
alert()
document.write()
print()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? let x = 5; console.log(x++);
4
6
5
3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is used to make a decision in JavaScript?
for
if
while
do...while
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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?