WorksheetsAPI, React, Angular, and Git Fundamentals Worksheet
Total questions: 99
Worksheet time: 50mins
Which HTTP method is typically used to retrieve data from an API?
POST
PUT
GET
DELETE
In React, what is used to manage component state?
Props
State
Redux only
JSX
Which hook is used for side effects in React?
useState
useEffect
useContext
useMemo
Angular is based on which language?
Java
JavaScript
TypeScript
Python
REST APIs typically communicate using which format?
XML only
JSON
CSV
YAML
Which status code means Resource Not Found?
200
301
403
404
Which layer handles business logic in a full-stack app?
UI layer
Data layer
Application layer
Presentation layer
What does CORS stand for?
Cross-Origin Resource Sharing
Central Object Resource System
Client-Origin Response Server
Cross-Object Routing Service
Which tool is commonly used for API testing?
Git
Docker
Postman
Jenkins
What is JSX in React?
Java syntax
JSON extension
JavaScript XML
JavaScript XHR
Which Angular feature binds data automatically?
Dependency Injection
Two-way data binding
Routing
Pipes
Which database type is MongoDB?
Relational
Graph
NoSQL
Hierarchical
What is the purpose of middleware?
UI rendering
Request processing
Database storage
CSS styling
Which protocol is most commonly used by REST APIs?
FTP
HTTP/HTTPS
SMTP
TCP
Which command installs dependencies in a React project?
npm run
npm install
npm start
npm build
What does SPA stand for?
Single Page Application
Server Processing App
System Program Access
Secure Page Application
Which component lifecycle method runs after render?
componentDidMount
render
constructor
shouldComponentUpdate
Which Angular CLI command creates a new component?
ng new
ng add
ng generate component
ng build
What is the main role of a backend API?
UI rendering
Styling
Business logic & data handling
Browser storage
Which header is used for authentication tokens?
Content-Type
Authorization
Accept
Cache-Control
Which JavaScript feature supports async API calls?
Callbacks only
Promises
Async/Await
Both B and C
Which response code indicates success?
500
201
403
404
Which framework uses components and hooks?
Angular
Vue
React
Svelte
Which Angular feature handles navigation?
Services
Router
Modules
Pipes
Which data format is lightweight and human-readable?
XML
CSV
JSON
Binary
Git is a ______ version control system.
Centralized
Distributed
Cloud-based
Linear
Which command initializes a Git repository?
git start
git init
git new
git clone
Which command stages files?
git commit
git push
git add
git merge
What does git commit do?
Uploads code
Saves changes locally
Deletes history
Merges branches
Which branch is the default in modern GitHub repos?
master
trunk
main
develop
What is a pull request?
Code deletion
Code merge request
Repo clone
Issue tracker
Which command downloads a repository?
git pull
git fetch
git clone
git push
What does git pull do?
Upload code
Fetch + merge
Create branch
Delete branch
What is branching used for?
Backup
Parallel development
Code formatting
Deployment
Which command creates a new branch?
git branch
git checkout
git init
git reset
What does git merge do?
Delete commits
Combine branches
Rename branch
Push code
Which file is used to ignore files in Git?
ignore.txt
gitignore
.gitignore
exclude.git
Which GitHub feature enables code review?
Issues
Actions
Pull Requests
Wikis
What causes a merge conflict?
Same file edited differently
New file added
Code compiled
Repo cloned
Which command shows commit history?
git log
git status
git show
git diff
What does git status show?
Repo size
Branch history
Working directory state
Commit messages
GitHub is primarily used for?
CI/CD
Code hosting & collaboration
Containerization
Cloud storage
Which workflow uses feature branches?
Git Flow
Linear Flow
Monolithic Flow
Waterfall
What does origin refer to?
Local repo
Main branch
Remote repository
Fork
Which command uploads code to GitHub?
git push
git pull
git fetch
git merge
What is a fork?
Branch
Copy of repository
Merge conflict
Commit
Which command switches branches?
git move
git checkout
git branch
git switch
Which Git object stores snapshots?
Blob
Commit
Tree
Tag
Which command compares changes?
git log
git diff
git show
git status
Docker is used for?
Virtual machines
Containerization
Compilation
Networking only
What is a Dockerfile?
Container
Image
Script to build image
Volume
Which command builds a Docker image?
docker run
docker pull
docker build
docker start
What is a Docker image?
Running instance
Template for containers
Network
Volume
What is a Docker container?
OS
VM
Running image
Repository
Which file defines container instructions?
compose.yml
Dockerfile
image.json
config.yml
Which command runs a container?
docker exec
docker start
docker run
docker build
What does Docker Hub store?
Containers
Images
Logs
Volumes
What is container isolation achieved through?
Hypervisor
Kernel namespaces
BIOS
Firmware
Which Docker command lists images?
docker ps
docker images
docker ls
docker show
Which file manages multi-container apps?
Dockerfile
docker-compose.yml
config.yml
manifest.json
What does EXPOSE do?
Publishes port
Documents port
Opens firewall
Runs container
Which command stops a container?
docker kill
docker stop
docker pause
All of the above
What is a container registry?
Image storage
Log server
VM manager
CI tool
Docker containers share which resource?
Hardware
Kernel
RAM only
Disk only
Which Docker object persists data?
Image
Volume
Network
Layer
Which base image is commonly used?
ubuntu
windows
macos
android
What is image layering?
Network stacking
File system layers
CPU sharing
Memory pooling
Which command removes images?
docker delete
docker rm
docker rmi
docker clean
Containers are ______ than VMs.
Heavier
Slower
Faster & lightweight
Less portable
Kubernetes is used for?
Version control
Container orchestration
UI design
API testing
Smallest deployable unit in Kubernetes?
Node
Container
Pod
Cluster
What manages pods?
Node
ReplicaSet
Container
Volume
What is a Kubernetes cluster?
Single node
Set of containers
Group of nodes
Image registry
Which component schedules pods?
kubelet
kube-proxy
scheduler
controller
What is Helm?
Load balancer
Package manager
CI tool
Registry
Helm uses which files?
Charts
Scripts
Pods
Images
What does kubelet do?
API server
Runs containers
Scheduler
Storage
Which object exposes pods externally?
Pod
Service
Volume
Namespace
What is horizontal scaling?
Bigger machine
More pods
More memory
More storage
Which command deploys apps?
kubectl run
kubectl deploy
kubectl apply
kubectl push
What is etcd?
Storage
Database for cluster state
Network plugin
Scheduler
Kubernetes YAML files define?
Code
Infrastructure
UI
Logs
Which object manages rolling updates?
Pod
Deployment
Service
Volume
What is a namespace?
Storage
Logical isolation
Network
Container
Which tool interacts with Kubernetes?
docker
kubectl
helm only
git
What does autoscaling do?
Restarts pods
Scales based on load
Deletes services
Updates images
Which object stores config data?
Secret
ConfigMap
Volume
Node
Secrets store?
Logs
Passwords
Images
YAML
Which network model does Kubernetes use?
NAT
Flat networking
VPN
Proxy only
Which service type exposes externally?
ClusterIP
NodePort
LoadBalancer
Both B and C
What is rolling deployment?
Stop all pods
Gradual update
Restart cluster
Delete nodes
What does a node contain?
Images
Pods
Charts
Volumes only
Which component handles API requests?
Controller
API Server
Scheduler
Kubelet
Kubernetes supports which scaling type?
Vertical
Horizontal
Auto
All of the above
What is a DaemonSet?
One pod per node
One pod per cluster
One service
One image
Which tool templates Kubernetes YAML?
Docker
Git
Helm
Jenkins
What is high availability?
More RAM
No downtime
Faster CPU
Bigger cluster
Kubernetes is cloud-______.
Dependent
Native
Locked
Specific
Kubernetes was originally developed by?
Amazon
Microsoft
Docker
