Search Header Logo

вебка 50

Authored by Alikhan Aitzhanov

Science

University

Used 3+ times

вебка 50
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between "var" and "let" in JavaScript?

"var" is block-scoped, while "let" is function-scoped

"var" is function-scoped, while "let" is block-scoped

"var" is a constant, while "let" is a variable

There is no difference

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the "useState" hook in React?

To declare a state variable

To declare a function component

To create a class component

To declare a context object

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid way to declare a JavaScript function?

function myFunction() {}

const myFunction = function() {}

() => {}

var myFunction = () => {}

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the JavaScript "spread" operator?

To combine two arrays

To split a string into an array

To clone an object or array

To delete a property from an object

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid CSS position value?

relative

static

absolute

fixed

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the "className" attribute in HTML and React?

To specify a unique identifier for an element

To assign a CSS class to an element

To specify the type of an input element

To specify the value of an input element

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid React prop?

onClick

className

href

style

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?