COMP3421-RetakeAssessment

COMP3421-RetakeAssessment

University

20 Qs

quiz-placeholder

Similar activities

AI CA-2 Knowledge and Reasoning in Artificial Intelligence

AI CA-2 Knowledge and Reasoning in Artificial Intelligence

University

20 Qs

IT ERA MIDTERM EXAM P2

IT ERA MIDTERM EXAM P2

University

15 Qs

Chad and the Little Horse : Vocabulary

Chad and the Little Horse : Vocabulary

KG - University

15 Qs

Introduction to Database

Introduction to Database

University

18 Qs

Key Term Review: Elements of Art

Key Term Review: Elements of Art

9th Grade - University

20 Qs

Blockchain Quiz

Blockchain Quiz

University

20 Qs

Robots and Autonomous Technologies (3.7A & 3.7B)

Robots and Autonomous Technologies (3.7A & 3.7B)

University

15 Qs

Advanced Operations with Excel Quiz

Advanced Operations with Excel Quiz

University

20 Qs

COMP3421-RetakeAssessment

COMP3421-RetakeAssessment

Assessment

Quiz

Computers

University

Medium

Created by

COMP 3421

Used 1+ times

FREE Resource

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

  1. What is the output of the following JS code?

  2. let x = 5;

  3. let y = 10;

  4. x = y++;

  5. 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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?