wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Final Exam Worksheet (60 Items)

Total questions: 60

Worksheet time: 34mins

Name
Class
Date
1.

What is React mainly used for?

a)

Building databases

b)

Styling websites

c)

Building user interfaces

d)

Running servers

2.

What is a React component?

a)

A built-in browser API

b)

A reusable UI building block

c)

A CSS class

d)

A database entry

3.

Which file extension is common for React components?

a)

.txt

b)

.jsx

c)

.css

d)

.html

4.

Which hook manages state?

a)

useEffect

b)

useRouter

c)

useState

d)

useRender

5.

What is state in React?

a)

Permanent backend data

b)

Temporary data inside component

c)

CSS styles

d)

Database values

6.

What triggers a re-render?

a)

Editing CSS

b)

Changing props or state

c)

Restarting browser

d)

Pressing F12

7.

Props in React are:

a)

Functions

b)

Values from parent to child

c)

Database queries

d)

CSS classes

8.

Which is valid JSX?

a)

return

b)

return div{}

c)

return div()

d)

return

()

9.

Which function repeats items in JSX?

a)

filter()

b)

map()

c)

reduce()

d)

slice()

10.

A React component must return:

a)

JSON

b)

HTML string

c)

JSX

d)

CSS rules

11.

How to create a React app?

a)

npx create-react-app

b)

npm create vite@latest

c)

node-react-install

d)

npm create-branch

12.

Symbol to insert JS in JSX?

a)

()

b)

{}

c)

[]

d)

<>

13.

Which hook runs after render?

a)

useState

b)

useEffect

c)

useRender

d)

runAfter()

14.

Props stands for:

a)

Properties

b)

Prototypes

c)

Processes

d)

Programs

15.

Virtual DOM is:

a)

Backend server

b)

Copy of real DOM for faster updates

c)

CSS engine

d)

Router

16.

React Native is used for:

a)

Desktop apps

b)

Mobile apps

c)

AI apps

d)

Databases

17.

Which RN component shows text?

a)

<p>

b)

<Text>

c)

<Paragraph>

d)

<Label>

18.

React Native equivalent of <div> ?

a)

<Box>

b)

<Container>

c)

<View>

d)

<Frame>

19.

React Native styling uses:

a)

Inline style/stylesheet styles

b)

Real CSS files

c)

HTML attributes

d)

XML tags

20.

Run RN app on Android:

a)

npm start android

b)

npm run dev

c)

npm expo start

d)

git push origin android

21.

React Native uses:

a)

Browser DOM

b)

Native components

c)

PHP templates

d)

SQL UI

22.

Where to write RN styles?

a)

StyleSheet.create()

b)

css()

c)

reactStyles()

d)

viewStyles()

23.

Does RN use JSX?

a)

No

b)

Yes

c)

Sometimes

d)

Only with plugins

24.

Which is NOT an RN component?

a)

View

b)

TextInput

c)

Button

d)

<table>

25.

React Native supports:

a)

Android

b)

iOS

c)

Both Android & iOS

d)

Only web

26.

Initialize git repo:

a)

git create

b)

git init

c)

git start

d)

git repo

27.

Stage files:

a)

git add

b)

git stage

c)

git push

d)

git copy

28.

Save changes:

a)

git push

b)

git commit -m ""

c)

git upload

d)

git version

29.

What is a branch?

a)

Backup file

b)

Separate development line

c)

GitHub copy

d)

Folder

30.

Create branch:

a)

git create branch

b)

git new feature

c)

git branch feature

d)

git branch

31.

Switch branch:

a)

git move

b)

git checkout <branch_name>

c)

git swap

d)

git jump

32.

Push to GitHub:

a)

git load main

b)

git upload

c)

git push origin main

d)

git publish

33.

Pull updates:

a)

git fetch

b)

git pull

c)

git update

d)

git clone

34.

Pull request is:

a)

Remove repo

b)

Request to merge changes

c)

Create branch

d)

Push code

35.

Merge means:

a)

Delete branch

b)

Join branches

c)

Push changes

d)

Clone repo

36.

Clone repo:

a)

git replicate

b)

git download

c)

git clone

d)

git pull

37.

Check status:

a)

git log

b)

git check

c)

git status

d)

git info

38.

Show commit history:

a)

git history

b)

git logs

c)

git track

d)

git log

39.

Connect to remote:

a)

git remote add origin URL

b)

git push -add

c)

git connect URL

d)

git origin URL

40.

After PR approval:

a)

Deletes repo

b)

Merges code

c)

Creates issue

d)

Clones repo

41.

HTML stands for:

a)

Hyper Trainer Markup Language

b)

HyperText Markup Language

c)

HighText Markdown List

d)

Home Tool Markup

42.

CSS is used for:

a)

Logic

b)

Styling

c)

Database

d)

Deployment

43.

JavaScript is used for:

a)

Backend only

b)

Adding interactivity

c)

Making images

d)

Styling pages

44.

<h1> is:

a)

Small text

b)

Main heading

c)

Footer

d)

Link

45.

Which is a box model property?

a)

margin

b)

display

c)

class

d)

id

46.

Correct CSS selector:

a)

#title

b)

$title

c)

@title

d)

~title

47.

How to write JS function?

a)

function myFunc() {}

b)

func myFunc()

c)

define function

d)

JSfunc {}

48.

NOT a JS data type:

a)

number

b)

string

c)

boolean

d)

paragraph

49.

Add click event:

a)

btn.onPress()

b)

btn.addEventListener("click", ...)

c)

btn.listenClick

d)

btn.doClick

50.

<input> is for:

a)

images

b)

text/inputs

c)

audio

d)

videos

51.

Center text in CSS:

a)

align: center

b)

text-align: center

c)

font-align

d)

style-center

52.

Where JS runs:

a)

Browser

b)

Database

c)

Printer

d)

Monitor

53.

What's wrong in the code?

a)

Missing semicolon

b)

Extra semicolon inside return

c)

Wrong tag

d)

Missing import

54.

What will this return?

a)

1

b)

3

c)

undefined

d)

error

55.

What does this code do?

a)

Prints "Low"

b)

Prints "High"

c)

Error

d)

Nothing

56.

What's wrong?

a)

Missing parentheses

b)

Wrong variables

c)

Too many args

d)

Can't use useState

57.

Which code updates state?

a)

setCount(1)

b)

count++

c)

update(count)

d)

count = 1

58.

What will this display?

a)

105

b)

15

c)

error

d)

undefined

59.

Which function finds an error in React?

a)

reactErrorCheck

b)

console.log

c)

Chrome DevTools

d)

Both B & C

60.

Thank you hope you guys learn something from me :>
Leave a feedback + points

4 lines