wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Basic Questions

Total questions: 72

Worksheet time: 38mins

Name
Class
Date
1.

Which tag is used to create a hyperlink in HTML?

a)

<a>

b)

<href>

c)

<url>

d)

<link>

2.

What does HTML stand for?

a)

HyperText Markup Language

b)

Home Tool Markup Language

c)

Hyperlinks and Text Markup Language

d)

Hyperlinking Text Management Language

3.

Which tag is used to display an image?

a)

<img>

b)

<pic>

c)

<scr>

d)

<Photo>

4.

Which attribute specifies the destination URL in a link?

a)

href attribute

b)

src attribute

c)

alt attribute

d)

title attribute

5.

Which tag defines a table row?

a)

<tr>

b)

<table>

c)

<td>

d)

<row>

6.

Which property changes the text color in CSS?

a)

color property

b)

background-color property

c)

font-size property

d)

border property

7.

What does CSS stand for?

a)

Cascading Style Sheets

b)

Computer Style Syntax

c)

Creative Style System

d)

Colorful Style Sheet

8.

Which property is used for background color?

a)

background-color

b)

color

c)

font-size

d)

border-style

9.

What is the correct syntax to print something to the console?

a)

console.log("message");

b)

print("message");

c)

echo "message";

d)

System.out.println("message");

10.

What keyword declares a variable that cannot be reassigned?

a)

const

b)

let

c)

var

d)

static

11.

What does HTTP stand for?

a)

HyperText Transfer Protocol

b)

HighText Transfer Protocol

c)

HyperText Transmission Process

d)

Home Tool Transfer Protocol

12.

Which port does HTTPS commonly use?

a)

Port 443

b)

Port 80

c)

Port 21

d)

Port 25

13.

Which protocol is used to send emails?

a)

SMTP (Simple Mail Transfer Protocol)

b)

FTP (File Transfer Protocol)

c)

HTTP (HyperText Transfer Protocol)

d)

POP3 (Post Office Protocol 3)

14.

What is the main purpose of DNS?

a)

To translate domain names into IP addresses

b)

To encrypt internet traffic

c)

To store website content

d)

To manage user passwords

15.

Which language runs in the browser and provides interactivity?

a)

JavaScript

b)

Python

c)

C++

d)

Java

16.

Which input type creates a slider in a form?

a)

type="range"

b)

type="slider"

c)

type="scroll"

d)

type="bar"

17.

What is the purpose of the form tag?

a)

To collect and submit user input

b)

To display images on a webpage

c)

To create hyperlinks to other pages

d)

To style the content of a webpage

18.

Which attribute makes a field mandatory in HTML?

a)

required

b)

mandatory

c)

compulsory

d)

obligatory

19.

Which tag defines a dropdown list?

a)

<select>

b)

<dropdown>

c)

<option>

d)

<list>

20.

Which attribute defines a text field’s placeholder text?

a)

placeholder

b)

value

c)

label

d)

alt

21.

Which CSS property controls the layout grid columns?

a)

grid-template-columns

b)

grid-row-gap

c)

flex-direction

d)

align-items

22.

What is the viewport meta tag used for?

a)

To control how a webpage is displayed on mobile devices

b)

To add a background image to a webpage

c)

To define the language of the webpage

d)

To link external JavaScript files

23.

Which layout system provides flexible boxes?

a)

Flexbox (display: flex)

b)

Grid (display: grid)

c)

Block (display: block)

d)

Inline (display: inline)

24.

What unit makes text responsive to the viewport width?

a)

vw (viewport width unit)

b)

em (relative to font-size of element)

c)

px (pixels)

d)

rem (root element font-size)

25.

Which framework is maintained by Facebook?

a)

React

b)

Angular

c)

Vue.js

d)

Ember.js

26.

Which language is used to style React components?

a)

CSS

b)

CSS-in-JS

c)

Python

d)

HTML

e)

XML

27.

Which command creates a new React app?

a)

npx create-react

b)

npm install react-app myApp

c)

react new myApp

d)

create-react myApp

e)

react-app myApp

28.

Which framework uses TypeScript by default?

a)

Angular

b)

React

c)

Vue.js

d)

Svelte

e)

NestJS

29.

Which of the following is a CSS framework?

a)

Bootstrap

b)

React

c)

Node.js

d)

MongoDB

e)

Tailwind CSS

30.

What is the purpose of cookies?

a)

To store user data and preferences in the browser

b)

To increase the speed of the internet connection

c)

To protect the computer from viruses

d)

To display advertisements on websites

e)

To remember login sessions in browser

31.

What does API stand for?

a)

Application Programming Interface

b)

Advanced Programming Instruction

c)

Automated Process Integration

d)

Applied Protocol Interface

e)

A set of functions that allow software interaction

32.

What does SEO stand for?

a)

Search Engine Optimization

b)

Social Engagement Optimization

c)

Software Engineering Operations

d)

Search Engine Operation

33.

Which of the following ensures secure data transmission?

a)

HTTPS

b)

HTTP

c)

FTP

d)

Telnet

34.

Which HTTP method is used to submit form data?

a)

POST

b)

GET

c)

PUT

d)

DELETE

35.

What does JSON stand for?

a)

JavaScript Object Notation

b)

Java Source Object Notation

c)

JavaScript Oriented Notation

d)

Java Serialized Object Notation

36.

Which HTML5 element is semantic?

a)

<article>

b)

<div>

c)

<span>

d)

<bold>

37.

Which tool is used to manage JavaScript packages?

a)

npm (Node Package Manager)

b)

Git

c)

Python pip

d)

Composer

38.

Which file type is used for cascading style sheets?

a)

.css

b)

.js

c)

.html

d)

.xml

39.

Which attribute is used to open a link in a new tab?

a)

target="_blank"

b)

href="_blank"

c)

newtab="true"

d)

open="new"

40.

Which database is NoSQL?

a)

MongoDB

b)

MySQL

c)

Oracle

d)

PostgreSQL

41.

What does CDN stand for?

a)

Content Delivery Network

b)

Central Data Node

c)

Computer Device Network

d)

Content Data Notation

42.

Which HTTP response code means “Not Found”?

a)

404

b)

200

c)

500

d)

301

43.

Which file type usually contains website metadata?

a)

.html (inside tag)

b)

.jpg (image file)

c)

.mp3 (audio file)

d)

.exe (executable file)

44.

What is the main purpose of a web browser?

a)

To retrieve, interpret, and display web content

b)

To create and edit documents

c)

To manage computer hardware resources

d)

To compile programming code

45.

Which of the following best describes a client–server model?

a)

The client requests resources, and the server provides them

b)

The server requests resources, and the client provides them

c)

Both client and server request resources from each other simultaneously

d)

Clients and servers operate independently without any communication

46.

What is a web server responsible for?

a)

Hosting and delivering web content to clients

b)

Managing database transactions

c)

Designing user interfaces

d)

Compiling programming code

47.

Which of the following is the main function of the URL?

a)

To specify the address of a web resource

b)

To display images on a webpage

c)

To encrypt website data

d)

To manage user accounts

48.

What is the function of a web framework?

a)

To simplify web development by providing tools and structure

b)

To design computer hardware components

c)

To manage operating system processes

d)

To create mobile applications only

49.

What does “responsive design” mean?

a)

A design that adapts to different screen sizes and devices

b)

A design that only works on desktop computers

c)

A design that ignores user input

d)

A design that uses only fixed-width layouts

50.

What is the main difference between static and dynamic websites?

a)

Static sites show fixed content; dynamic sites generate content in real time

b)

Static sites are always interactive; dynamic sites are not

c)

Dynamic sites cannot display images; static sites can

d)

Static sites require a database; dynamic sites do not

51.

What is the function of a database in web development?

a)

To store, organize, and retrieve data

b)

To design the user interface of a website

c)

To create animations for web pages

d)

To manage website hosting services

52.

Which of the following defines “front-end development”?

a)

Development of the user interface and user experience

b)

Designing server-side logic and database management

c)

Managing network infrastructure and security protocols

d)

Writing automated test scripts for backend services

53.

Which of the following are examples of server-side technologies?

a)

Node.js, PHP, Python (Django/Flask), Ruby on Rails, ASP.NET

b)

HTML, CSS, JavaScript (Vanilla)

c)

React, Angular, Vue.js

d)

Bootstrap, Tailwind CSS, Materialize

54.

Which two of the following describe RESTful APIs?

a)

They are stateless and resource-based.

b)

They require a persistent connection.

c)

They use SOAP for communication.

d)

They are always stateful.

55.

Which of the following statements about HTTPS are correct?

a)

HTTPS encrypts data and ensures secure communication using SSL/TLS.

b)

HTTPS is a protocol used only for sending emails.

c)

HTTPS does not provide any encryption for data transmission.

d)

HTTPS is less secure than HTTP.

56.

Which two of the following are key principles of responsive web design?

a)

Fluid grids and flexible images.

b)

Fixed-width layouts and static images.

c)

Single column layouts only.

d)

Non-scalable fonts and absolute positioning.

57.

Which of the following statements about cookies and sessions are correct?

a)

Cookies store small data on the client side; sessions store data on the server side.

b)

Cookies store data on the server side; sessions store data on the client side.

c)

Both cookies and sessions store data only on the client side.

d)

Cookies and sessions are both used only for storing passwords.

58.

Which two of the following are considered best practices for web accessibility (WCAG)?

a)

Provide alt text for images and use proper heading structure.

b)

Use images without descriptions and avoid headings.

c)

Rely solely on color to convey information.

d)

Disable keyboard navigation for users.

59.

Which two of the following statements about Single Page Applications (SPA) are true?

a)

SPAs load a single HTML page and update content dynamically; they often use client-side routing.

b)

SPAs require a full page reload for every user interaction.

c)

SPAs do not use JavaScript for rendering content.

d)

SPAs cannot use client-side routing at all.

60.

Which two of the following are advantages of using Content Delivery Networks (CDNs)?

a)

Faster content delivery and reduced server load.

b)

Increased server downtime and higher latency.

c)

Limited scalability and slower content distribution.

d)

Decreased security and unreliable data transfer.

61.

Which of the following statements about API authentication are correct?

a)

OAuth allows secure access without sharing passwords; API keys or tokens are used for verification.

b)

OAuth requires sharing passwords with third-party apps; API keys are never used for authentication.

c)

API authentication never uses tokens; only passwords are valid.

d)

OAuth is only used for email authentication; API keys are obsolete.

62.

Which two of the following are common security vulnerabilities in web development?

a)

Cross-Site Scripting (XSS) and SQL Injection.

b)

Responsive Web Design and CSS Animations.

c)

RESTful APIs and JSON Parsing.

d)

Bootstrap and Material UI.

63.

Select the characteristics of RESTful architecture from the following options:

a)

Stateless communication

b)

Tightly coupled components

c)

Requires XML for data transfer

d)

Single-layered architecture

64.

The following technologies are commonly used in serverless computing:

a)

AWS Lambda, Azure Functions, Google Cloud Functions

b)

Apache Hadoop, Spark, MapReduce

c)

MySQL, PostgreSQL, Oracle DB

d)

Docker, Kubernetes, OpenShift

65.

Select the examples of web application security threats from the following options.

a)

SQL injection, Cross-site scripting, and CSRF

b)

Responsive web design and SEO optimization

c)

Cloud storage and CDN usage

d)

User interface customization and analytics tracking

66.

The protocols typically used in secure web communications are:

a)

HTTP and FTP

b)

SMTP and POP3

c)

SSL/TLS and HTTPS

d)

IMAP and SNMP

67.

Select the essential principles of RESTful API design from the following options.

a)

Statelessness, client-server architecture, cacheability, uniform interface

b)

Stateful communication, tight coupling, no caching, proprietary protocols

c)

Monolithic architecture, session persistence, custom interfaces, synchronous only

d)

Single endpoint, no resource identification, no HTTP methods, encrypted only

68.

Select the tools that are commonly used in Continuous Integration / Continuous Deployment (CI/CD).

a)

Jenkins

b)

Microsoft Word

c)

Photoshop

d)

Eclipse

69.

The following are features of Progressive Web Applications (PWAs):

a)

Offline support, push notifications, and home screen installation

b)

Require native app store download

c)

Only work on desktop browsers

d)

Lack support for service workers

70.

Select the benefits of microservices architecture from the following options:

a)

Improved scalability and flexibility

b)

Monolithic codebase

c)

Single point of failure

d)

Difficult to deploy independently

71.

Key functions of HTTP headers include:

a)

Transmitting metadata between client and server

b)

Encrypting all web traffic by default

c)

Storing website cookies permanently

d)

Rendering web page content

72.

Core benefits of containerization (e.g., Docker) include:

a)

Portability and consistency across environments

b)

Increased hardware requirements

c)

Reduced application security

d)

Slower deployment times