
HTML_CSS_JAVASCRIPT
Authored by Cauvery Raju
Other
University - Professional Development
Used 4+ 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
In which of the given scenarios would the Switch case be unsuitable?
A conditional has to be designed whereupon Green Signal a machine has to be turned on and upon Red Signal the machine would be turned off.
A conditional has to be designed in which if a number is equal to 10, then “The number is 10” is printed on the console” or else “The number is not 10” is printed on the console
A conditional has to be designed in such a way that is the number is less than 100, then “The number is less than three digits” or else “The number is more than two digits”
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the last number printed when the code below is run?
var n=2;
for (var i=n; i < 12;i=i+n){
console.log(i);
}
6
10
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following statements about the window object are true?
It is a type of a local object in the browser
It is a type of a global object in the browser
To print the window object, we can write: console.log(window);
To print the window object, we can write: console.log(this)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the return type of the following function?
function f(x) {
return x * x;
};
undefined
string
number
function
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the data type of the variable x in this code?
var x = function(){
return 4*4;
};
number
undefined
function
boolean
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Uncaught ReferenceError : title is not defined
“The Lords of the Rings”
Uncaught ReferenceError : title is not defined
Uncaught ReferenceError : title is not defined
“The Lords of the Rings”,
Uncaught ReferenceError : title is not defined
“The Lords of the Rings”,
“The Lords of the Rings”
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
101 Tech
101 null
101 undefined
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?