
Session6
Authored by Nada Asraf
Engineering
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 SELECT QUESTION
45 sec • 1 pt
What will be the result of the following expression? (Select all that apply)
console.log(2 + "2" - 1 + true);
"221"
22
21
NaN
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet?
var x = 10;
var x = 10;
function foo() { var x = 5; console.log(x); }
foo();
console.log(x);
10 , 10
10 , 5
5 , 10
5 , 5
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
var name = "John";
function sayName() { console.log(name); var name = "Jane"; }
sayName();
John
Jane
JohnJane
Undefined
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you convert a string "123" to a number in JavaScript?
parseInt("123")
convertNumber("123")
toNumber("123")
number("123")
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
1
15
10
[1,2,3,4,5]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
...(1)...Function-scoped and .
....(2)....Block-scoped
(1) let , (2) var
(1) var , (2) let
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which document property will return all the img elements?
document.links
document.doctype
document.images
document.documentMode
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?