JAVASCRIPT-STRING,ARRAYS,FUNCTIONS

JAVASCRIPT-STRING,ARRAYS,FUNCTIONS

University

75 Qs

quiz-placeholder

Similar activities

MortalKombyte

MortalKombyte

University - Professional Development

76 Qs

C Aptitude-2

C Aptitude-2

University - Professional Development

75 Qs

обьект №4

обьект №4

University

70 Qs

Mobile Application Development - MCQs

Mobile Application Development - MCQs

University

75 Qs

PRETEST 10

PRETEST 10

10th Grade - University

74 Qs

BDA Test - 1

BDA Test - 1

University

80 Qs

JavaScript

JavaScript

University

80 Qs

Java-FIN

Java-FIN

University

80 Qs

JAVASCRIPT-STRING,ARRAYS,FUNCTIONS

JAVASCRIPT-STRING,ARRAYS,FUNCTIONS

Assessment

Quiz

Computers

University

Medium

Created by

anispremkoilraj p

Used 3+ times

FREE Resource

75 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What does the following code snippet do? function add(x, y) { return x + y; }

console.log(add(5, 3));

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

NOT a valid way to pass arguments to a function?

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What will the following code output? function foo() { var x = 10; if (true) { var x = 20; console.log(x); } console.log(x); } foo();

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the result of the following code? function sayName(name) { console.log("Hello, " + name); } var greeting = sayName("John"); console.log(greeting);

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What will be the output of the following code? let arr = [1, 2, 3]; console.log(arr[3]);

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What will be the output of the following code? let arr = [1, 2, 3]; arr.length = 1; console.log(arr[2]);

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What will be the output of the following code? let arr = [1, 2, 3]; arr[5] = 6; console.log(arr.length);

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?