Font size
WorksheetsFinal Exam Worksheet (60 Items)
Total questions: 60
Worksheet time: 34mins
What is React mainly used for?
Building databases
Styling websites
Building user interfaces
Running servers
What is a React component?
A built-in browser API
A reusable UI building block
A CSS class
A database entry
Which file extension is common for React components?
.txt
.jsx
.css
.html
Which hook manages state?
useEffect
useRouter
useState
useRender
What is state in React?
Permanent backend data
Temporary data inside component
CSS styles
Database values
What triggers a re-render?
Editing CSS
Changing props or state
Restarting browser
Pressing F12
Props in React are:
Functions
Values from parent to child
Database queries
CSS classes
Which is valid JSX?
return
return div{}
return div()
return
Which function repeats items in JSX?
filter()
map()
reduce()
slice()
A React component must return:
JSON
HTML string
JSX
CSS rules
How to create a React app?
npx create-react-app
npm create vite@latest
node-react-install
npm create-branch
Symbol to insert JS in JSX?
()
{}
[]
<>
Which hook runs after render?
useState
useEffect
useRender
runAfter()
Props stands for:
Properties
Prototypes
Processes
Programs
Virtual DOM is:
Backend server
Copy of real DOM for faster updates
CSS engine
Router
React Native is used for:
Desktop apps
Mobile apps
AI apps
Databases
Which RN component shows text?
<p>
<Text>
<Paragraph>
<Label>
React Native equivalent of <div> ?
<Box>
<Container>
<View>
<Frame>
React Native styling uses:
Inline style/stylesheet styles
Real CSS files
HTML attributes
XML tags
Run RN app on Android:
npm start android
npm run dev
npm expo start
git push origin android
React Native uses:
Browser DOM
Native components
PHP templates
SQL UI
Where to write RN styles?
StyleSheet.create()
css()
reactStyles()
viewStyles()
Does RN use JSX?
No
Yes
Sometimes
Only with plugins
Which is NOT an RN component?
View
TextInput
Button
<table>
React Native supports:
Android
iOS
Both Android & iOS
Only web
Initialize git repo:
git create
git init
git start
git repo
Stage files:
git add
git stage
git push
git copy
Save changes:
git push
git commit -m ""
git upload
git version
What is a branch?
Backup file
Separate development line
GitHub copy
Folder
Create branch:
git create branch
git new feature
git branch feature
git branch
Switch branch:
git move
git checkout <branch_name>
git swap
git jump
Push to GitHub:
git load main
git upload
git push origin main
git publish
Pull updates:
git fetch
git pull
git update
git clone
Pull request is:
Remove repo
Request to merge changes
Create branch
Push code
Merge means:
Delete branch
Join branches
Push changes
Clone repo
Clone repo:
git replicate
git download
git clone
git pull
Check status:
git log
git check
git status
git info
Show commit history:
git history
git logs
git track
git log
Connect to remote:
git remote add origin URL
git push -add
git connect URL
git origin URL
After PR approval:
Deletes repo
Merges code
Creates issue
Clones repo
HTML stands for:
Hyper Trainer Markup Language
HyperText Markup Language
HighText Markdown List
Home Tool Markup
CSS is used for:
Logic
Styling
Database
Deployment
JavaScript is used for:
Backend only
Adding interactivity
Making images
Styling pages
<h1> is:
Small text
Main heading
Footer
Link
Which is a box model property?
margin
display
class
id
Correct CSS selector:
#title
$title
@title
~title
How to write JS function?
function myFunc() {}
func myFunc()
define function
JSfunc {}
NOT a JS data type:
number
string
boolean
paragraph
Add click event:
btn.onPress()
btn.addEventListener("click", ...)
btn.listenClick
btn.doClick
<input> is for:
images
text/inputs
audio
videos
Center text in CSS:
align: center
text-align: center
font-align
style-center
Where JS runs:
Browser
Database
Printer
Monitor
What's wrong in the code?
Missing semicolon
Extra semicolon inside return
Wrong tag
Missing import
What will this return?
1
3
undefined
error
What does this code do?
Prints "Low"
Prints "High"
Error
Nothing
What's wrong?
Missing parentheses
Wrong variables
Too many args
Can't use useState
Which code updates state?
setCount(1)
count++
update(count)
count = 1
What will this display?
105
15
error
undefined
Which function finds an error in React?
reactErrorCheck
console.log
Chrome DevTools
Both B & C
Thank you hope you guys learn something from me :>
Leave a feedback + points
