Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

API, React, Angular, and Git Fundamentals Worksheet

Total questions: 99

Worksheet time: 50mins

Name
Class
Date
1.

Which HTTP method is typically used to retrieve data from an API?

a)

POST

b)

PUT

c)

GET

d)

DELETE

2.

In React, what is used to manage component state?

a)

Props

b)

State

c)

Redux only

d)

JSX

3.

Which hook is used for side effects in React?

a)

useState

b)

useEffect

c)

useContext

d)

useMemo

4.

Angular is based on which language?

a)

Java

b)

JavaScript

c)

TypeScript

d)

Python

5.

REST APIs typically communicate using which format?

a)

XML only

b)

JSON

c)

CSV

d)

YAML

6.

Which status code means Resource Not Found?

a)

200

b)

301

c)

403

d)

404

7.

Which layer handles business logic in a full-stack app?

a)

UI layer

b)

Data layer

c)

Application layer

d)

Presentation layer

8.

What does CORS stand for?

a)

Cross-Origin Resource Sharing

b)

Central Object Resource System

c)

Client-Origin Response Server

d)

Cross-Object Routing Service

9.

Which tool is commonly used for API testing?

a)

Git

b)

Docker

c)

Postman

d)

Jenkins

10.

What is JSX in React?

a)

Java syntax

b)

JSON extension

c)

JavaScript XML

d)

JavaScript XHR

11.

Which Angular feature binds data automatically?

a)

Dependency Injection

b)

Two-way data binding

c)

Routing

d)

Pipes

12.

Which database type is MongoDB?

a)

Relational

b)

Graph

c)

NoSQL

d)

Hierarchical

13.

What is the purpose of middleware?

a)

UI rendering

b)

Request processing

c)

Database storage

d)

CSS styling

14.

Which protocol is most commonly used by REST APIs?

a)

FTP

b)

HTTP/HTTPS

c)

SMTP

d)

TCP

15.

Which command installs dependencies in a React project?

a)

npm run

b)

npm install

c)

npm start

d)

npm build

16.

What does SPA stand for?

a)

Single Page Application

b)

Server Processing App

c)

System Program Access

d)

Secure Page Application

17.

Which component lifecycle method runs after render?

a)

componentDidMount

b)

render

c)

constructor

d)

shouldComponentUpdate

18.

Which Angular CLI command creates a new component?

a)

ng new

b)

ng add

c)

ng generate component

d)

ng build

19.

What is the main role of a backend API?

a)

UI rendering

b)

Styling

c)

Business logic & data handling

d)

Browser storage

20.

Which header is used for authentication tokens?

a)

Content-Type

b)

Authorization

c)

Accept

d)

Cache-Control

21.

Which JavaScript feature supports async API calls?

a)

Callbacks only

b)

Promises

c)

Async/Await

d)

Both B and C

22.

Which response code indicates success?

a)

500

b)

201

c)

403

d)

404

23.

Which framework uses components and hooks?

a)

Angular

b)

Vue

c)

React

d)

Svelte

24.

Which Angular feature handles navigation?

a)

Services

b)

Router

c)

Modules

d)

Pipes

25.

Which data format is lightweight and human-readable?

a)

XML

b)

CSV

c)

JSON

d)

Binary

26.

Git is a ______ version control system.

a)

Centralized

b)

Distributed

c)

Cloud-based

d)

Linear

27.

Which command initializes a Git repository?

a)

git start

b)

git init

c)

git new

d)

git clone

28.

Which command stages files?

a)

git commit

b)

git push

c)

git add

d)

git merge

29.

What does git commit do?

a)

Uploads code

b)

Saves changes locally

c)

Deletes history

d)

Merges branches

30.

Which branch is the default in modern GitHub repos?

a)

master

b)

trunk

c)

main

d)

develop

31.

What is a pull request?

a)

Code deletion

b)

Code merge request

c)

Repo clone

d)

Issue tracker

32.

Which command downloads a repository?

a)

git pull

b)

git fetch

c)

git clone

d)

git push

33.

What does git pull do?

a)

Upload code

b)

Fetch + merge

c)

Create branch

d)

Delete branch

34.

What is branching used for?

a)

Backup

b)

Parallel development

c)

Code formatting

d)

Deployment

35.

Which command creates a new branch?

a)

git branch

b)

git checkout

c)

git init

d)

git reset

36.

What does git merge do?

a)

Delete commits

b)

Combine branches

c)

Rename branch

d)

Push code

37.

Which file is used to ignore files in Git?

a)

ignore.txt

b)

gitignore

c)

.gitignore

d)

exclude.git

38.

Which GitHub feature enables code review?

a)

Issues

b)

Actions

c)

Pull Requests

d)

Wikis

39.

What causes a merge conflict?

a)

Same file edited differently

b)

New file added

c)

Code compiled

d)

Repo cloned

40.

Which command shows commit history?

a)

git log

b)

git status

c)

git show

d)

git diff

41.

What does git status show?

a)

Repo size

b)

Branch history

c)

Working directory state

d)

Commit messages

42.

GitHub is primarily used for?

a)

CI/CD

b)

Code hosting & collaboration

c)

Containerization

d)

Cloud storage

43.

Which workflow uses feature branches?

a)

Git Flow

b)

Linear Flow

c)

Monolithic Flow

d)

Waterfall

44.

What does origin refer to?

a)

Local repo

b)

Main branch

c)

Remote repository

d)

Fork

45.

Which command uploads code to GitHub?

a)

git push

b)

git pull

c)

git fetch

d)

git merge

46.

What is a fork?

a)

Branch

b)

Copy of repository

c)

Merge conflict

d)

Commit

47.

Which command switches branches?

a)

git move

b)

git checkout

c)

git branch

d)

git switch

48.

Which Git object stores snapshots?

a)

Blob

b)

Commit

c)

Tree

d)

Tag

49.

Which command compares changes?

a)

git log

b)

git diff

c)

git show

d)

git status

50.

Docker is used for?

a)

Virtual machines

b)

Containerization

c)

Compilation

d)

Networking only

51.

What is a Dockerfile?

a)

Container

b)

Image

c)

Script to build image

d)

Volume

52.

Which command builds a Docker image?

a)

docker run

b)

docker pull

c)

docker build

d)

docker start

53.

What is a Docker image?

a)

Running instance

b)

Template for containers

c)

Network

d)

Volume

54.

What is a Docker container?

a)

OS

b)

VM

c)

Running image

d)

Repository

55.

Which file defines container instructions?

a)

compose.yml

b)

Dockerfile

c)

image.json

d)

config.yml

56.

Which command runs a container?

a)

docker exec

b)

docker start

c)

docker run

d)

docker build

57.

What does Docker Hub store?

a)

Containers

b)

Images

c)

Logs

d)

Volumes

58.

What is container isolation achieved through?

a)

Hypervisor

b)

Kernel namespaces

c)

BIOS

d)

Firmware

59.

Which Docker command lists images?

a)

docker ps

b)

docker images

c)

docker ls

d)

docker show

60.

Which file manages multi-container apps?

a)

Dockerfile

b)

docker-compose.yml

c)

config.yml

d)

manifest.json

61.

What does EXPOSE do?

a)

Publishes port

b)

Documents port

c)

Opens firewall

d)

Runs container

62.

Which command stops a container?

a)

docker kill

b)

docker stop

c)

docker pause

d)

All of the above

63.

What is a container registry?

a)

Image storage

b)

Log server

c)

VM manager

d)

CI tool

64.

Docker containers share which resource?

a)

Hardware

b)

Kernel

c)

RAM only

d)

Disk only

65.

Which Docker object persists data?

a)

Image

b)

Volume

c)

Network

d)

Layer

66.

Which base image is commonly used?

a)

ubuntu

b)

windows

c)

macos

d)

android

67.

What is image layering?

a)

Network stacking

b)

File system layers

c)

CPU sharing

d)

Memory pooling

68.

Which command removes images?

a)

docker delete

b)

docker rm

c)

docker rmi

d)

docker clean

69.

Containers are ______ than VMs.

a)

Heavier

b)

Slower

c)

Faster & lightweight

d)

Less portable

70.

Kubernetes is used for?

a)

Version control

b)

Container orchestration

c)

UI design

d)

API testing

71.

Smallest deployable unit in Kubernetes?

a)

Node

b)

Container

c)

Pod

d)

Cluster

72.

What manages pods?

a)

Node

b)

ReplicaSet

c)

Container

d)

Volume

73.

What is a Kubernetes cluster?

a)

Single node

b)

Set of containers

c)

Group of nodes

d)

Image registry

74.

Which component schedules pods?

a)

kubelet

b)

kube-proxy

c)

scheduler

d)

controller

75.

What is Helm?

a)

Load balancer

b)

Package manager

c)

CI tool

d)

Registry

76.

Helm uses which files?

a)

Charts

b)

Scripts

c)

Pods

d)

Images

77.

What does kubelet do?

a)

API server

b)

Runs containers

c)

Scheduler

d)

Storage

78.

Which object exposes pods externally?

a)

Pod

b)

Service

c)

Volume

d)

Namespace

79.

What is horizontal scaling?

a)

Bigger machine

b)

More pods

c)

More memory

d)

More storage

80.

Which command deploys apps?

a)

kubectl run

b)

kubectl deploy

c)

kubectl apply

d)

kubectl push

81.

What is etcd?

a)

Storage

b)

Database for cluster state

c)

Network plugin

d)

Scheduler

82.

Kubernetes YAML files define?

a)

Code

b)

Infrastructure

c)

UI

d)

Logs

83.

Which object manages rolling updates?

a)

Pod

b)

Deployment

c)

Service

d)

Volume

84.

What is a namespace?

a)

Storage

b)

Logical isolation

c)

Network

d)

Container

85.

Which tool interacts with Kubernetes?

a)

docker

b)

kubectl

c)

helm only

d)

git

86.

What does autoscaling do?

a)

Restarts pods

b)

Scales based on load

c)

Deletes services

d)

Updates images

87.

Which object stores config data?

a)

Secret

b)

ConfigMap

c)

Volume

d)

Node

88.

Secrets store?

a)

Logs

b)

Passwords

c)

Images

d)

YAML

89.

Which network model does Kubernetes use?

a)

NAT

b)

Flat networking

c)

VPN

d)

Proxy only

90.

Which service type exposes externally?

a)

ClusterIP

b)

NodePort

c)

LoadBalancer

d)

Both B and C

91.

What is rolling deployment?

a)

Stop all pods

b)

Gradual update

c)

Restart cluster

d)

Delete nodes

92.

What does a node contain?

a)

Images

b)

Pods

c)

Charts

d)

Volumes only

93.

Which component handles API requests?

a)

Controller

b)

API Server

c)

Scheduler

d)

Kubelet

94.

Kubernetes supports which scaling type?

a)

Vertical

b)

Horizontal

c)

Auto

d)

All of the above

95.

What is a DaemonSet?

a)

One pod per node

b)

One pod per cluster

c)

One service

d)

One image

96.

Which tool templates Kubernetes YAML?

a)

Docker

b)

Git

c)

Helm

d)

Jenkins

97.

What is high availability?

a)

More RAM

b)

No downtime

c)

Faster CPU

d)

Bigger cluster

98.

Kubernetes is cloud-______.

a)

Dependent

b)

Native

c)

Locked

d)

Specific

99.

Kubernetes was originally developed by?

a)

Amazon

b)

Microsoft

c)

Google

d)

Docker