wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Web Development Pretest for Grade 11

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What does HTML stand for?

a)

HighText Markup Language

b)

HyperText Multi Language

c)

HyperText Markup Link

d)

HyperText Markup Language

2.

Which language is primarily used for styling web pages?

a)

JavaScript

b)

HTML

c)

CSS

d)

PHP

3.

What is the purpose of a database in web development?

a)

To provide user authentication and authorization.

b)

To enhance the visual design of a website.

c)

The purpose of a database in web development is to store and manage data for dynamic web applications.

d)

To host web servers and applications.

4.

What command is used to initialize a new Git repository?

a)

git create

b)

git init

c)

git start

d)

git new

5.

What is Bootstrap used for in web development?

a)

Bootstrap is a programming language for web development.

b)

Bootstrap is primarily used for database management.

c)

Bootstrap is used for developing responsive and mobile-first web applications.

d)

Bootstrap is used for creating static web pages.

6.

How do you create a new branch in Git?

a)

git new branch

b)

git branch and git checkout or git checkout -b

c)

git create

d)

git switch

7.

What is the main function of Laravel in web development?

a)

To act as a front-end framework for building user interfaces.

b)

The main function of Laravel in web development is to facilitate the creation of web applications by providing a robust framework with built-in features.

c)

To provide a content management system for blogs and articles.

d)

To serve as a database management system for web applications.

8.

What is the purpose of using Tailwind CSS?

a)

To provide a framework for backend development.

b)

To create complex animations easily.

c)

To enforce strict design patterns in CSS.

d)

The purpose of using Tailwind CSS is to facilitate rapid UI development with utility-first styling.

9.

How do you connect to a PostgreSQL database in Laravel?

a)

Use the command php artisan db:connect to establish a connection.

b)

Edit the config/database.php file directly without using the .env file.

c)

Set DB_CONNECTION=pgsql in .env and configure DB_HOST, DB_PORT, DB_DATABASE, DB_USERNAME, DB_PASSWORD.

d)

Set DB_CONNECTION=mysql in .env and configure DB_HOST, DB_PORT, DB_DATABASE, DB_USERNAME, DB_PASSWORD.

10.

What is a responsive web design?

a)

A method for creating static web pages.

b)

A design approach that makes web pages render well on various devices and screen sizes.

c)

A technique for improving website loading speed.

d)

A design that only works on desktop computers.

11.

What command is used to commit changes in Git?

a)

git merge

b)

git add

c)

git push

d)

git commit

12.

What is the difference between SQL and NoSQL databases?

a)

SQL databases are non-relational and handle structured data; NoSQL databases are relational and can only manage structured data.

b)

SQL databases require complex queries; NoSQL databases use only simple key-value pairs.

c)

SQL databases are relational and structured; NoSQL databases are non-relational and can handle unstructured data.

d)

SQL databases are designed for unstructured data; NoSQL databases are only for structured data.

13.

How can you make a website mobile-friendly using Bootstrap?

a)

Avoid using any CSS frameworks for responsiveness.

b)

Use Bootstrap's grid system, responsive utility classes, and ensure media elements are responsive.

c)

Use only fixed-width layouts for all devices.

d)

Make all images a fixed size regardless of screen size.

14.

What is the command to push changes to a remote repository in Git?

a)

git clone repository-url

b)

git push origin main

c)

git commit -m 'update'

d)

git fetch origin

15.

What is the role of migrations in Laravel?

a)

Migrations are used to create user authentication in Laravel.

b)

Migrations help in managing application routes in Laravel.

c)

Migrations are responsible for handling file uploads in Laravel.

d)

Migrations in Laravel facilitate version control for database schema changes.

16.

How do you apply utility classes in Tailwind CSS?

a)

Create a separate CSS file for utility classes.

b)

Apply styles using inline CSS only.

c)

Add utility class names directly to HTML elements to apply styles.

d)

Use JavaScript to apply styles dynamically.

17.

What is the purpose of the .env file in a Laravel project?

a)

The .env file stores environment variables for configuring a Laravel application.

b)

The .env file is for managing database migrations.

c)

The .env file contains the application's source code.

d)

The .env file is used for storing user data.

18.

What is the significance of the 'public' directory in a Laravel application?

a)

The 'public' directory is where the application logic is implemented.

b)

The 'public' directory is the web server's document root and contains the entry point for requests and public assets.

c)

The 'public' directory contains configuration files for the application.

d)

The 'public' directory is used for storing database migrations.

19.

How do you retrieve data from a PostgreSQL database using Laravel?

a)

Retrieve data using PHP's built-in functions

b)

Use Eloquent or Query Builder to retrieve data, e.g., Model::all() or DB::table('table_name')->get().

c)

Use raw SQL queries only

d)

Access data directly from the file system

20.

What is the use of the 'composer.json' file in a Laravel project?

a)

To define routes for the application

b)

To manage database migrations

c)

The 'composer.json' file is used to manage dependencies and configurations for a Laravel project.

d)

To store user authentication data