wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Javascript-react-redux

Total questions: 15

Worksheet time: 15mins

Name
Class
Date
1.

Which of the following is the correct data flow sequence of Reuxflux concept?

a)

A

b)

B

c)

C

d)

D

2.

.............. helps react for keeping their data unidirectional.

a)

JSX

b)

State

c)

Virtual DOM

d)

Props

3.

Which prototype function cannot be used in a pure function

a)

Slice

b)

Concat

c)

Push

d)

Map

4.

What will happend when you don't specify the second parameter in an Effect

a)

It gets never triggered

b)

It gets triggered on every render

c)

It gets triggered only on first render

d)

Gives as Exception

5.

const [x, y] = useState(0) -> what is the y

a)

Setter function

b)

Getter function (state variable)

6.

What is the output

a)

[[1, 2, 3, 4, 5]]

b)

[1, 2, 3, 4, 5]

c)

1

d)

[1]

7.

What is the output

a)

10, 10

b)

10, 11

c)

11, 11

d)

11, 12

8.

What is the output

a)

[]

b)

[null, null, null]

c)

[undefined, undefined, undefined]

d)

[ 3 x empty ]

9.

console.log(typeof typeof 1)

a)

"number"

b)

"string"

c)

"object"

d)

"undefined"

10.

What is the event.target when clicking the button?

a)

Outer <div>

b)

Inner <div>

c)

<button>

d)

All elements together

11.

What is the output

a)

"Lydia"

b)

"myName"

c)

undefined

d)

ReferenceError

12.

What is the output

a)

{ default: function default(), name: "Lydia" }

b)

{ default: function default() }

c)

{ default: "Hello world", name: "Lydia" }own

d)

Global object of module.js

13.

What is the output

a)

[1, 2, 3, 4, 5]

b)

[1, 2, 3, 5]

c)

[1, 2, 3, 4]

d)

Error

14.

What is the output

a)

We have to buy bananas!

b)

We don't have to buy bananas

c)

undefined

d)

1

15.

What is the output

a)

1, 2, 3

b)

{1: 1} {2: 2} {3: 3}

c)

{ 1: undefined } undefined undefined

d)

undefined undefined undefined