
COMP3421-RetakeAssessment
Authored by COMP 3421
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
1 min • 1 pt
Which of the following is NOT a type of JavaScript loop?
For loop
While loop
do-while loop
do...for
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the purpose of the "this" keyword in JavaScript?
To refer to the global scope
To refer to the parent scope
To refer to the current scope
To refer to the window object
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following JS code?
let x = 5;
let y = 10;
x = y++;
console.log(x);
What is the output of the following JS code?
let x = 5;
let y = 10;
x = y++;
console.log(x);
5
10
11
6
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is a way to declare a function in JavaScript?
function myFunction() { /* body */}
let myFunction = function() { /* body */}
const myFunction = () => { /* body */ }
All of the given options
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of this JS code?
let x = 3, y = 2;
let result = (x > y) ? x : y;
console.log(result);
3
2
"x > y"
"y < x"
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
what is the datatype of 'x' in following code?
const x = 42;
String
Number
Boolean
Undefined
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of following JS code?
let x = 5 + 2 + "7";
console.log(x);
7
14
77
527
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?
Similar Resources on Wayground
15 questions
Vistacreate
Quiz
•
University
15 questions
DIGITAL MARKETING
Quiz
•
University
16 questions
E-Commerce
Quiz
•
University - Professi...
15 questions
8051-MCQ
Quiz
•
University
20 questions
jak dobrze znasz Minecraft?
Quiz
•
1st Grade - Professio...
20 questions
Name The Disney Animation Films
Quiz
•
KG - University
19 questions
DBMS - Fundamentals
Quiz
•
University
15 questions
PICMAKER
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University